Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Sdashiki

macrumors 68040
Original poster
Aug 11, 2005
3,529
11
Behind the lens
Been getting my feet wet with some CSS...

I have an image element up top, and a horizontal CSS menu directly after.

Why can I not align these two things, as seen in the following screenshot?

cssmenu.jpg
 
Boom, always the tweaker...

had to make the BODY css tag be text-align:center...

seems doing it to individual <div>, isnt workin...

:D

edit: seems it looks fine now in Dreamweaver, but FF and IE, same problem...sigh...and I cant always seem to get the top image and the menu bar to line up one on top of the other, sometimes there is a gap...
 
put the closing div align tag at the end just before body.

or

in the css for navbar put

margin: 0 auto;

i think you would have to put a class on the image and also apple margin auto to it. maybe you should just put the whole thing in a wrapper?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.