View Full Version : Move a table over little?
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:
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.
04-25-2006, 11:24 PM
<table style="margin-:0 30px 20px 5px;">
04-25-2006, 11:28 PM
You could use.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.