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?
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.
If you're using CSS, you would use margins. Not sure if you're just using a basic <table>.
If you're using a table, it would be "cellspacing." But note that, that attribute is deprecated.
* 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)
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
and you wanted some space between them, you could simply apply a bottom margin to the image in the css file :
<img src="image_file_name" alt="">
<p>Some text below the image</p>
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)