Div Vertical Align

jwalker80

New Member
Hi,

Does anyone know a good way to center content vertically within a div? e.g. vertical align... Also having it browser compliant and if possible making it validate... now there's a big ask!
 

zkiller

Super Moderator
Staff member
<div> tag is a static tag and as such can't perform the dynamic task of validating a users browser. you would need to use a scripting language for that bit.

i don't know if it is possible to use percentages to position a dhtml layer on the screen or not. if not, then it is not possible to do so and have it look the same on everyones screens, as the center will vary based on both the browser and resolution of the users picking.
 

zkiller

Super Moderator
Staff member
why not just stick your content into a table and have it center the content vertically for you? just a thought. :)
 
Top