|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
vertical align in css, without using tables
Hi,
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 site: http://www.jarra.nl/_TEST/test4.htm the css file: http://www.jarra.nl/_TEST/test4.css 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, jarra
__________________
http://www.jarra.nl |
|
#2
|
||||
|
||||
|
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...
__________________
Support requests via PM will be ignored! |
|
#3
|
||||
|
||||
|
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.
__________________
Spidermonkey Tutorial http://www.aoeex.com/gmap.php - Put yourself on the map |
|
#4
|
|||
|
|||
|
thanks a lot for you're help.
managed to solve the mozilla problem as well... |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > vertical align in css, without using tables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|