Afficher un message
Vieux 01/03/2008, 14h56   #7
Jonathan N. Little
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Is this possible with CSS?

shapper wrote:

> .Grid thead th
> {
> background: url(Images/GridHeaderBackground.jpg) repeat-x;
> padding: 1px;
> }


Here is your fundamental problem, the padding *includes* not *excludes*
the background.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">
<title>blocks</title>

<style type="text/css">
body { background-color: #faa; }
.test {
margin: 20px; padding: 10px; border: 1px solid #00f;
background-color: #afa;
}
</style>
</head>
<body>
<div class="test">
The canvas color will be pink. Now the test block's background is
green. Notice that the margin does not include the test's background,
but the padding does. Now you cannot use margins on table cells.
</div>
</body>
</html>

It s to understand what you are doing. See:
http://www.w3.org/TR/CSS21/box.html#box-dimensions

Now that said from your mock up image:

http://www.wikifortio.com/504226/Test.jpg

I have no idea what white line you are talking about.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  Réponse avec citation
 
Page generated in 0,04915 seconds with 9 queries