| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2008
Posts: 3
|
Created menu bar now need to center it
Hi Just started using HTML and CSS and with a bit of help from some tutorials I've managed to create a menu bar. I now want to be able to center this menu bar so that even if the user resizes their window, the menu bar is still centered. Here's my HTML Code:
Here's my CSS Code:
My understanding is that it's due to the floats that the menu is always on the left. Also, once I am able to centre this, i want to be able to place an image above the menu bar that is also centered with the buttons, so if the user resizes their window the image is still directly above the buttons. Any ideas on how to achieve these two goals - thanks |
|
|
|
|
|
#9 (permalink) | |
|
Now with added sarcasm.
|
Quote:
As mentioned above, use a different unit of measure. Also pay attention to punctuation - any designer will tell you stories of frustration that came down to something as simple as missing a colon as is the case above ... it should read width: 20px; for instance. I made 100 posts and all I got is this stupid signature.
|
|
|
![]() |