|
Posted by Shelly on 12/04/07 14:14
Bergamot wrote:
> 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.
It shouldn't tile.
> 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>
I made a mistake in placing it here in the file I prepared for this group.
In the actual, it is in the <head>
> - <style> is missing the required type attribute
OK
> - You haven't closed all your divs
I caught that one about an hour ago.
>
> 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>
The #index-01 has a background-image. It does display.
>
> It's an empty element, which means it has no height, so there is no
> space for a background. As it should be.
Please expand.
>
> 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.
I didn't write this CSS and I am a php, not a CSS or html, person. I really
am just hacking away because I was asked to "fix" this and I am doing the
best I can without taking the extensive time to develop a whole new area of
expertise.
Navigation:
[Reply to this message]
|