Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Basic query

Reply
Thread Tools

Basic query

 
 
Brian Tozer
Guest
Posts: n/a
 
      10-04-2003
In the following situation why would there be a narrow band of the
background colour appearing above the graphic, and a wider/thicker/taller
band appearing below it.
I know how to handle the situation with CSS but would like to know why this
situation exists.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
</head>

<body>
<table width="100%">
<tr>
<td bgcolor="red">
<img src="foo.gif">
</td>
</tr>
</table>
</body>
</html>

Thanks
Brian Tozer


 
Reply With Quote
 
 
 
 
Hywel Jenkins
Guest
Posts: n/a
 
      10-04-2003
In article <blnd25$a9s$(E-Mail Removed)>, http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> In the following situation why would there be a narrow band of the
> background colour appearing above the graphic, and a wider/thicker/taller
> band appearing below it.
> I know how to handle the situation with CSS but would like to know why this
> situation exists.
>
> <td bgcolor="red">
> <img src="foo.gif">
> </td>


There's whitespace. Try this:
<td bgcolor="red"><img src="foo.gif"></td>

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
 
Reply With Quote
 
 
 
 
Brian Tozer
Guest
Posts: n/a
 
      10-05-2003
"Hywel Jenkins" wrote
> (E-Mail Removed) says...


> > In the following situation why would there be a narrow band of the
> > background colour appearing above the graphic, and a

wider/thicker/taller
> > band appearing below it.
> > I know how to handle the situation with CSS but would like to know why

this
> > situation exists.
> >
> > <td bgcolor="red">
> > <img src="foo.gif">
> > </td>


> There's whitespace. Try this:
> <td bgcolor="red"><img src="foo.gif"></td>


Aha! Many thanks.
I now have what looks like a few pixel width of border of the background
colour showing above and below the graphic, which I have been unable to
eliminate.
I have implemented what must be overkill to try and eliminate this border.
To no avail.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<style type="text/css">
<!--
body {
margin: 0px;
padding: 0px;
}

..noborder {
border: 0px;
margin: 0px;
padding: 0px;
}

..table1 {
width: 500px;
background-color: red;
border: 0px;
padding: 0px;
margin: 0px;
}

-->
</style>
</head>

<body>
<table class="table1">
<tr>
<td class="noborder"><div class="noborder"><img class="noborder"
src="foo.gif" width="410" height="54"></div></td>
</tr>
</table>
</body>
</html>

Thanks
Brian Tozer


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TurboTax Basic vs. Taxcut Basic? Sharp Dressed Man Computer Support 1 01-12-2009 12:52 PM
What is the difference between Visual Basic.NET and Visual Basic 6? Jimmy Dean Computer Support 3 07-25-2005 07:05 AM
Re: Python interpreter in Basic or a Python-2-Basic translator. rrr@ronadam.com Python 0 05-02-2005 01:48 PM
Python interpreter in Basic or a Python-2-Basic translator. Engineer Python 6 05-01-2005 10:16 PM
Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET Jaime MCSD 2 09-20-2003 05:16 AM



Advertisments