I cant get my table at the very top of the page..

liunx

Guest
Ok, im using dreamweaver and i cant align my table to the VERY top of the page...theres about a half inch gap...Can i fix this also...I have a picture in one of the cells and its centered...I want it at the VERY top of the cell...If i hit align i can click top but it still doesnt work...what can i do?<br />
-ronnie<!--content-->If you can view the html coding...<br />
<br />
Add this to your starting BODY tag...<br />
topmargin="0" marginheight="0"<br />
<br />
And add this to your TD tag holding the image...<br />
valign="top"<!--content-->Thanks a lot man...It worked Great!<br />
-Ronnie<!--content-->Originally posted by <htmlite> <br />
Add this to your starting BODY tag...<br />
topmargin="0" marginheight="0"<br />
<br />
You can also do this with CCS like so:<br />
<br />
Put this in the head of you document or in you style sheet if you have one!<br />
<br />
<head><br />
<br />
<style type="text/css"><br />
body {<br />
margin: 0;<br />
}<br />
</style><br />
<br />
</head><!--content-->Originally posted by karinne <br />
body {<br />
margin: 0px;<br />
}<br />
You should enter a measurement value with that.<!--content-->when you set it to 0 you don't need the px ;)<br />
<br />
EDIT: I was trying to find where I actually saw that statement and here it is! It's on the W3C site section CSS (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/syndata.html#length-units">http://www.w3.org/TR/REC-CSS2/syndata.html#length-units</a><!-- m -->) and it says "After the '0' length, the unit identifier is optional."<br />
<br />
:rocker:<!--content-->Although it is optional, it is often better to include the units just in case you change it back to some non-zero value later on.<!--content-->
 
Back
Top