Customisation of the top navigation
-
Hi all,
Im trying to match the top nav on the blog to that of the wesite the blog is for. The look Im trying to acheive is the same as this site http://www.instyleweddingcars.co.uk/index.html but whatever Ive tried the menu just messes up as can be seen on the blog http://instyleweddingcars.wordpress.com/ when the mouse goes over. I was wondering if one of the experts on here could point me in the right direction. I mean can this actually be done
this is the code Im trying currently
div#menu {
background-image:url(‘http://instyleweddingcars.files.wordpress.com/2009/12/top-nav-bg.jpg’);
height:44px;
width:920px;
}div#menu li {
float:left;
height:37px;
padding:7px 15px;
}div#menu a {
display:block;
float:left;
text-decoration:none;
text-transform:uppercase;
font-family:tahoma, Verdana, Geneva, sans-serif;
font-size:11px;
font-weight:bold;
color:#FFFFFF;
height:37px;
padding:7px 15px;
}div#menu ul {
list-style:none;
line-height:normal;
height:37px;
margin:0;
padding:7px 15px;
}div#menu a:hover {
color:#000;
background-image:url(‘http://instyleweddingcars.files.wordpress.com/2009/12/top-nav-bg-over.jpg’);
background-repeat:repeat-x;
height:37px;
padding:7px 15px;
}thanks in advance
The blog I need help with is: (visible only to logged in users)
-
Try this
div#menu { background-image:url('http://instyleweddingcars.files.wordpress.com/2009/12/top-nav-bg.jpg'); height:44px; width:920px; } div#menu ul { display:inline; list-style:none; line-height:normal; margin:0; padding:0; } div#menu ul li { float:left; height:44px; width:auto; overflow:hidden; margin:0; } div#menu ul li a { display:block; float:left; text-decoration:none; text-transform:uppercase; font-family:tahoma, Verdana, Geneva, sans-serif; font-size:11px; font-weight:bold; color:#FFFFFF; height:37px; padding:7px 15px; } div#menu ul li a:hover { color:#000; background-image:url('http://instyleweddingcars.files.wordpress.com/2009/12/top-nav-bg-over.jpg'); background-repeat:repeat-x; height:37px; padding:7px 15px; } -
just an observation, you don’t need to write your selectors like this
div#menu {...}This should suffice:
#menu {...}
- The topic ‘Customisation of the top navigation’ is closed to new replies.