WebsiteBaker Support (2.8.x) > Templates, Menus & Design

The top right menu don't display Home as default,....

<< < (2/2)

midiweb:
it works actualy good but the line is left aligned but "Home " ist now default. Why that? I don't know.

so it's:


--- Code: ---Home, Terms, Contact, Sitemap, About
--- End code ---

instead right aligned


--- Code: ---                                                                                          Home, Terms, Contact, Sitemap, About
--- End code ---

But you helped me also. Why not change the marging and/or the padding of the line to align it on the right

I try at once

BerndJM:
Why that:
with float: right the order of your items is
... - third - second - first
and with float: left the order is
first - second - third
Maybe you have a look in a CSS Docu what float means.

Forget it, with margin and/or padding
give your #nav a text-align: right; that should do the trick

Regards Bernd

midiweb:
hi, I tried this trick but it works unfortunetly not.


--- Code: ---text-align: right;
--- End code ---

I understand clearly "Float".

Here the code for the navigation top menu.
I uncommented some tags intentionnaly.


--- Code: ---body
{
    background-color: #fdfffc;
    font-family: Verdana, Geneva, Arial, helvetica, sans-serif;
    font-size: 10pt;
    padding: 0px;
    margin-top: 20px;
}

#nav
{
    width: 980px;
    height: 25px;
    /*border-bottom: 1px solid black;*/
    /*color: white;*/
    background-color:#990000;
    /*opacity: 0.8;
    -moz-opacity: 0.8;
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=80);*/
    position: relative;
    top: 0px;
    margin-left: 0px;    
    /*left: 50%;*/    
    margin-top: 0px;
    margin-bottom:0px;
    padding: 0px;
    text-align:right;

}

#nav li
{
    /*display: block;*/
    float: left;
    height: 20px;
    width: auto;
    /*text-align: center;*/
    line-height: 25px;
}

#nav li a
{

    /*display: block;*/
    padding-left: 12px;
    padding-right: 12px;
    color: white;
    text-decoration: none;
    font: normal normal normal 10px/20px "Lucida Grande", Lucida, Verdana, sans-serif;
}



#nav li a:hover
{
    background-color:;
    color: grey;
}


--- End code ---

midiweb:
I found the solution:

you have to write in the main css code here :


--- Code: ---display:inline;
--- End code ---
and

--- Code: ---text-align : right;
--- End code ---

The navigation part in css:


--- Code: ---#nav {
width : 980px;
height : 25px;
border-top : 5px solid black;
background-color : #c59856;
position : relative;
top : 0;
margin : 0;
margin-top : 0;
margin-bottom : 0;
padding-left : 0;
text-align : right;
}
#nav li {
display : inline;
height : 20px;

}
#nav li a {
padding-left : 19px;
padding-right : 12px;
color : white;
text-decoration : none;
font : normal normal normal 10px/20px "Lucida Grande", Lucida, Verdana, sans-serif;
}
#nav li a:hover
{
    color: #050100;
}


--- End code ---

and finally I recommend to test your css with the validator css by www.w3.org.

Bye.

Navigation

[0] Message Index

[*] Previous page

Go to full version