PDA

View Full Version : best way to create blank space



kade119
08 Mar 2007, 08:56 PM
should I use css to create blank space? or clear tables?

Wickham
09 Mar 2007, 01:31 AM
You don't tell us the situation.

If you mean a clear space across the whole screen between one element like a table or div and another then the usual method is to add or increase the margin-top:-

<table style="margin-top: 30px;">................</table>

or same with a div, h1 heading, p tag etc;

If you mean a space within a div or table cell then use &nbsp; which is a text character but a blank one (a "hard" space rather than none at all so it comes with a standard width and height).