|
Posted by John Salerno on 11/22/33 11:39
Beauregard T. Shagnasty wrote:
> 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.
>
Ah, that makes more sense! :)
Navigation:
[Reply to this message]
|