Ar 12/11/10 23:21, ysgrifennodd Peter Bradley :
I'm going to have to play now to see if a border overlays a background
image or /vice versa/. Just as I was thinking about calling it a day
for today!
Yup. If you have a background colour and a dotted or dashed border, you
can see the colour behind it.
W3C says:
"Authors may specify the background of an element (i.e., its rendering
surface) as either a color or an image. In terms of the box model
<http://www.w3.org/TR/CSS2/box.html#box-model>, "background" refers to
the background of the content
<http://www.w3.org/TR/CSS2/box.html#box-content-area>, padding
<http://www.w3.org/TR/CSS2/box.html#box-padding-area> and border
<http://www.w3.org/TR/CSS2/box.html#box-border-area> areas. Border
colors and styles are set with the border properties
<http://www.w3.org/TR/CSS2/box.html#border-properties>. Margins are
always transparent."
[http://www.w3.org/TR/CSS2/colors.html]
Interesting. You learn something every day.
Cheers
Peter
--
http://www.peredur.net
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/