Results 1 to 2 of 2

Thread: best way to create blank space

  1. #1
    Join Date
    Mar 2007
    Posts
    131

    best way to create blank space

    should I use css to create blank space? or clear tables?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    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).
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Blank Web Page is displayed when a Link on the main page is clicked
    By Balasubramaniam in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 15 Mar 2006, 03:47 AM
  2. Space Tour? Rocketships?
    By extravirgin in forum The Lounge
    Replies: 0
    Last Post: 27 Feb 2006, 11:50 PM
  3. Blank spots displaying within Graphic - mystery
    By terepan in forum Graphic Design
    Replies: 0
    Last Post: 13 Feb 2006, 07:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •