Hi, I know this is not really a Linux question. Maybe someone knows, I don't know where to ask. I am using Bluefish.
I made a web page with 6 boxes at the top.
Code:
<ul>
<li><a href="index.html">主页<p>Home</p></a></li>
<li><a href="chinese.html">中国家庭<p>Chinese</p></a></li>
<li><a href="english.html">英国互惠生<p>English</p></a></li>
<li><a href="german.html">德国互惠生<p>German</p></a></li>
<li><a href="spanish.html">联系我们<p>Spanish</p></a></li>
<li><a href="references.html">联系我们<p>References</p></a></li>
</ul>
These are governed by mystyle.css
the option 'float' does not have a parameter 'center' only left or right.
I would like the boxes to appear in the centre.
Code:
ul
{
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
}
li
{
float:left;
margin:5px
}
a:link,a:visited
{
display:block;
width:150px;
font-weight:bold;
color:#FFFFFF;
background-color:#98bf21;
text-align:center;
padding:2px;
text-decoration:none;
text-transform:uppercase;
}
a:hover,a:active
{
background-color:#7A991A;
}
body
{
background-image:url('mypicrl.jpg');
background-repeat:no-repeat;
background-size:100% ;
background-color:#cccccc;
}
I tried putting <div> just under <body>
Code:
<div class="container">
with
Code:
<style type="text/css">
.container (width 900px; margin-left: auto; margin-right: auto;)
</style>
But my boxes still stay on the left of the page.
I would like the whole page centred, and then the top boxes with it.
Any tips??