April 5th, 2004, 08:15 AM
vertical align in css, without using tables
i'm making a site, and want the links in my navigation bar to be centered hoizontally and vertically.
the vertical align centering doen't work.
does anyone have an idea how to fix it..?
the css file:
oh, and if you notice any problems by viewing this page in other browsers than ie6, please let me know as well.
thanks a lot,
April 5th, 2004, 08:24 AM
Unfortunately, it's not possible to vertically align stuff using just css.
This is one place where you actually have to use a table with it's default valign="middle" attirbute in the <td> where you put your div/text/whatever...
April 5th, 2004, 10:06 AM
CSS does have a vertial-align property, but from what I've read and my experience with it, it doesn't work very well. One thing you can do is just set the top margin and/or padding on the element.
Also, your site does have some display problems in mozilla. Attached is a picture of what it looks like.
Recycle your old CD's, don't just trash them
If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
April 5th, 2004, 02:50 PM
thanks a lot for you're help.
managed to solve the mozilla problem as well...