|
Posted by Bergamot on 12/04/07 13:58
Shelly wrote:
>
> www.sheldonlg.com/css.htm
>
> The problem is this. Without the <div "index-01" ></div>, the green
> background image from the #navWrapper does not tile. It shouldn't.
It shouldn't *not* tile? I think you misstated what you perceive to be
the problem.
Regardless, your HTML is invalid, so you can't expect any browser to
give you what you want.
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.sheldonlg.com%2Fcss.htm
Fix your errors and try again.
- Your stylesheet needs to be inside the <head>
- <style> is missing the required type attribute
- You haven't closed all your divs
BTW, you should be using a strict doctype, not transitional.
> #index-01 {
> height:132px;
> background-image: url(http://www.thenursebook.com/images/index_01.gif);
> }
>
> If I remove the height: 132px; then it doesn't tile, but the image doesn't
> appear either.
Your html:
<div id="index-01"></div>
It's an empty element, which means it has no height, so there is no
space for a background. As it should be.
You seem to be hacking away at CSS without any comprehension of how it
is *supposed* to work. Get a book, or read the specs at w3c.org.
--
Berg
[Back to original message]
|