03-19-2009, 02:49 AM
|
#23 (permalink)
|
|
The Contributor
Join Date: Feb 2009
Posts: 65
Thanks: 0
|
HTML Code:
<div id="layer1" style="position:absolute; top:50; left:50; width:1024; height:100; z-index:1; padding:5px; border:#e0e0e0 1px dashed; background-color:#EEEEEE; text-align: center;">
Test
</div>
Will align the text center.
Or if you need the div centered use
HTML Code:
<body style="margin: 0 auto;">
<div id="layer1" style="position:absolute; top:50; left:50; width:1024; height:100; z-index:1; padding:5px; border:#e0e0e0 1px dashed; background-color:#EEEEEE;">
Test
</div>
</body>
And yes I know, it's not one anyone could have guessed.
|
|
|
|