Reply to Re: Tiling of background image.

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация