|
Posted by Jonathan N. Little on 10/13/68 11:59
UKuser wrote:
<SNIP>
You have such an incoherent hodge-podge of code here, who knows! Maybe
you should look at the spec and look at the syntax and go though the
properties.
http://www.w3.org/TR/CSS21/cover.html
So let's just take one example of your code, 'border' here:
> #centered{
> width:300px;
> height:100px;
> background-color:red;
> border: 1px 1px 1px 1px;
> border-style:solid;
"The 'border' property is a shorthand property for setting the same
width, color, and style for all four borders of a box. Unlike the
shorthand 'margin' and 'padding' properties, the 'border' property
cannot set different values on the four borders. To do so, one or more
of the other border properties must be used."
use:
border-width: 1px;
border-style: solid;
border-color: black;
or:
border: 1px solid black;
if your want to set the individual sides of the border differently you
cannot use the shorthand 'border' but separate side or properties
border-top: 1px solid black;
border-left: 2px solid blue;
border-top: 10px dotted red;
border-left: 5px solid cyan; /* insanely ugly */
or:
border-width: 1px 2px 10px 5px;
border-style: solid solid dotted solid;
border-color: black blue red cyan;
but not:
> border: 1px 1px 1px 1px;
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|