www.webdeveloper.com
Results 1 to 7 of 7

Thread: spacer in DWeaver

  1. #1
    Join Date
    Dec 2006
    Posts
    18

    spacer in DWeaver

    Im trying to enter a spacer (gif transparent) in a coloured cell, as an image. But the background color changes, turns to white when the gif is placed!
    What am i doing wrong?

  2. #2
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    Transparent gifs should never be used as "spacers" - this practice should have died out nearly 10 years ago. If you want a space, use a margin.

  3. #3
    Join Date
    Dec 2006
    Posts
    18
    a margin?

  4. #4
    Join Date
    Nov 2004
    Location
    Pittsburgh, PA
    Posts
    1
    If you're using CSS, you would use margins. Not sure if you're just using a basic <table>.

  5. #5
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    If you're using a table, it would be "cellspacing." But note that, that attribute is deprecated.

    KDLA
    FYI
    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

  6. #6
    Join Date
    Dec 2006
    Posts
    18
    deprecated means?

  7. #7
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    Deprecated

    The recommended way to write a web page these days is to use html markup to describe the content (using appropriate html tags such as <h> for headings, <p> for paragraphs, <ul> for unordered lists including menus, etc), and then style this using css to give it the visual look you want.

    Referencing your first question, if you had, say, an image followed by a paragraph of text
    Code:
    <img src="image_file_name" alt="">
    <p>Some text below the image</p>
    and you wanted some space between them, you could simply apply a bottom margin to the image in the css file :
    Code:
    img {
      margin-bottom: 20px;
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles