Re: Page Test
by "Jens Brueckmann" <lists(at)j-a-b.net>
|
Date: |
Mon, 04 Oct 2004 22:46:18 +0200 |
To: |
"Travis Chillemi" <tmchille(at)ouray.cudenver.edu> |
References: |
cudenver |
|
todo: View
Thread,
Original
|
|
On Mon, 04 Oct 2004 13:49:30 -0600, Travis Chillemi
<tmchille(at)ouray.cudenver.edu> wrote:
> I think I have all of the kinks worked out, but would like one more
> review before I start dumping content into this site:
>
> http://citt.cudenver.edu/websites/cap
Hi Travis,
there are still a couple of mistakes in your CSS, the most severe being in
the .content selector. You specified a keyword and a value for the
orientation of the background image:
background: #F0F0E4 url(../graphics/watermark.jpg) no-repeat center 0px;
This is not allowed, as the specification clearly states: "Keywords
cannot be combined with percentage values or length values" [1].
Accordingly, when you view your page in Opera you will notice that this
whole CSS-rule is ignored, leaving the visitor with red text on red
background.
Change your rule to something like:
.content {
background: #F0F0E4 url('watermark.jpg') no-repeat center;
padding-bottom: 15px;
}
and all is well :-)
btw, a construction like
<td>
<div>
[some content]
</div>
</td>
does not make much sense to me. Why would you not put any classes and IDs
into the <td> tag and omit the <div>?
Apart from that, nice work!
Cheers,
jens
[1] http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-position
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA