You are here: Re: putting a banner at the top of a page « HTML « IT news, forums, messages
Re: putting a banner at the top of a page

Posted by Beauregard T. Shagnasty on 01/22/70 11:39

John Salerno wrote:

> Mark Parnell wrote:
>> Deciding to do something for the good of humanity, John Salerno
>> <johnjsal@NOSPAMgmail.com> declared in alt.html:
>>> Beauregard T. Shagnasty wrote:
>>>> #banner {
>>>> background: url("images/bannerbg.gif") #yourcolor repeat-y;
>>>> color: #fff; /* text color contrasts with background */
>>>> text-align: right;
>>>> }
>>> But will that mean that my header would only be 600px wide?
>>
>> No. The *image* is only 600px wide, which is why you set the background
>> colour to be the same as the right side of the image - anyone with a
>> browser canvas wider than 600px will see the solid colour to the right
>> of the image.
>
> But I don't think I want my background color to be dependent on my
> header. In fact, I'd like a contrast between the two, such as a dark
> blue header and lighter colored body.

...which is why I said to set the background color of the *<div>*
containing the banner/header code.

--
-bts
-Warning: I brake for lawn deer

 

Navigation:

[Reply to this 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

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