View Full Version : how to position tables with css?


gennykins
06-19-2006, 08:23 PM
this seems pretty simple to me and i've searched but haven't found much. on my myspace profile i have made a background that is just a picture in the bottom left corner, and i want to have the tables smaller (in width) and to the right of the picture (about 370 pixels from the very left of the page). i tried the code from a few threads below:

<style type="text/css">
table {float:left; padding-left:0; margin-left:0;}
table table table {margin-bottom:5px;}
table table table table {margin-bottom:0;}
table table table {width:350px ;}
</style>

and it works for the most part except for it isn't over enough... and i tried lots of things like adding different margins and changing the numbers and the width size and using absolute positioning but everything ends up not working. it won't go to the right any more! and there's also a huge space in between the two sides of the profile... i want all the tables closer together. can anyone help me??

thaaaanks!


ohhh ps: just an unimportant question.. why does it go
"table
table table
table table table"
etc etc?

gennykins
06-19-2006, 08:25 PM
ooops i meant that it was float:right and margin-right:0 and padding-right:0 instead of left!!