Previous Message
Next Message

Table to CSS question.

Sent by Zoe M. Gillenwater on 29 October 2004 14:02


Terry Riegel wrote:

> I code this little snip all the time. Is there a way to do the same 
> thing with CSS and a div or even some nested divs?
>
>
> <table width="100%" height="100%">
>  <tr>
>   <td valign="center" align="center">
>    This content is centered vertically and horizontally :)
>   </td>
>  </tr>
> </table>


Check the wiki:
http://css-discuss.incutio.com/?page=CenteringBlockElement

Horizontal centering is easy using auto margins; vertical is more 
difficult but doable.

Zoe

-- 
Zoe M. Gillenwater
Design Specialist
Highway Safety Research Center
http://www.hsrc.unc.edu

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: