Reply to Re: Add a background image to a div

Your name:

Reply:


Posted by richard on 11/04/07 03:09

On Sun, 04 Nov 2007 00:58:51 GMT, Adrienne Boswell wrote:

> Gazing into my crystal ball I observed Cristian <crisjunc@gmail.com>
> writing in news:1194134939.825448.36200@50g2000hsm.googlegroups.com:
>
>> Hello!
>>
>> I have an image in a DIV#logo that is contained within a DIV.
>>
>><BODY>
>> <DIV ID="container">
>>
>> <DIV ID="logo">
>> <IMG SRC="url">
>> </DIV>
>>
>><-- other DIVs and content here -->
>>
>> </DIV>
>><BODY>
>>
>> I want to set an image background to the DIV#logo. This is the code I
>> am using:
>>
>> div#logo {
>> background: url(url.jpg) red;
>> }
>>
>> But the background image won't show up. I can see the red background
>> color. I've taken the image in the HTML away, I've added padding to
>> DIV#logo to see if the background image appears, but nothing happens.
>>
>> I hope someone can help me.
>>
>> Thanks in advance!
>>
>>
>
> Is url.jpg a real image? A URL would be helpful.

Why? Can't you supply your own image and a bit of similar coding locally?
Now I'll just bet that you were at this stage once and had the similar
problems right? Or did you become an expert without reading the manual?

[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

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