...

View Full Version : Move a table over little?



Cheeseboy
04-25-2006, 03:56 AM
Hi, I made a table and want it to be moved over to the right a little bit. I used the cellspacing to move it away from the wall but it makes the rows look bad so I was wondering if there is an easier way to move my table over a little? If so could you plz list the code thanks:thumbsup:

Arbitrator
04-25-2006, 08:13 AM
You can add blank border space space outside a table by using CSS margins: http://www.w3schools.com/css/css_margin.asp

You can add blank border space inside table cells by using CSS padding: http://www.w3schools.com/css/css_padding.asp


The margins would be applied to the table itself; the padding would be applied to the table cells. If neither of those are suitable, you can use CSS position: relative; to set the position relative to its normal location. With that specified, if you want to move the table closer to the right, say by 100 pixels, you could use left: 100px; or right: -100px;. Positioning properties would also be applied to the table itself.

oldcrazylegs
04-25-2006, 11:24 PM
<table style="margin-left:20px;">

or

<table style="margin-:0 30px 20px 5px;">

Dan Williamson
04-25-2006, 11:28 PM
You could use.


margin-left: 5px;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum