...

View Full Version : positioning?



michael180
12-15-2006, 08:25 PM
Hello,
I need to position the nav bar on the gray bottom image. Is that even possible? Any suggestions. The image is located here -http://www.moderntimes.com/tmp/egr.jpg-
Thanks

_Aerospace_Eng_
12-15-2006, 08:37 PM
Set the gray bottom image as a background for your navigation.

michael180
12-15-2006, 09:03 PM
Yes, I tried that here's the CSS for the navcontainer-

#navcontainer {
width: 600px;
background: url("bottom_strip.gif");
margin-top: 1px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
padding: 0 0 0 75px;
}

But it doesn't have any affect?

_Aerospace_Eng_
12-15-2006, 09:11 PM
Its trying to but the width you set is not as wide as the image and the height is also not set to the height of the image. Try this

/* ZDnet Emulation, for horizontal list from http://css.maxdesign.com.au/listamatic/*/

#navcontainer
{
background: url("bottom_strip.gif");
border-top: 1px solid #fff;
border-bottom: 1px solid #000
margin-top: 1px;
height:40px;
}
#navlist
{
list-style: none outside none;
margin: 0;
padding: 10px 0 0 0;
}

michael180
12-15-2006, 11:31 PM
Hi Aero, now I can get the nav bar over the bottom image, but I can't seem to get the nav bar centered, the development page is here

http://www.moderntimes.com/tmp/

Thanks

_Aerospace_Eng_
12-15-2006, 11:53 PM
Thats because you floated your lis. Do you really need that drop down stuff? If so then you'll have to read this
http://www.cssplay.co.uk/menus/centered.html
Good luck.

michael180
12-16-2006, 12:11 AM
If I eliminate the drop down stuff, how can I position it? I hate to keep bothering you, but as I look at my various books, and the stuff on the net, I just get more confused, so thanks so much for what you have given me.

Michael

_Aerospace_Eng_
12-16-2006, 12:24 AM
If you eliminate the drop down stuff you can make your li display:inline instead of float:left; then use text-align:center; on the ul which will center the links.

michael180
12-16-2006, 12:51 AM
Okay Aero that seems to work properly. I really do appreciate your help. I just wonder if I will ever really understand CSS? I just don't want to go back to tables. Thanks.
Michael

_Aerospace_Eng_
12-16-2006, 01:07 AM
It takes time. Its taken me 6 years to get where I'm at now. Things that help are taking a tabled layout and trying to convert it to a layout without tables. The more you do the better you get at it. Eventually things become repetitive.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum