Jump to content

Recommended Posts

Hi all,

 

Ok here is my problem.  I am using a page that calls a .css file for all the text and stuff and it also has an include statement to call a head.htm file for the links and the logo.  What I want to do is display a background image in the header section (head.htm) and a grey background in the main area.  When I try to include the image in the header and and the grey background color in the main page I get the background image from the header all the way down the page.

 

How can I do this with out having either an all grey page or a page with the header image all the way down the page?

 

Thanks much in advance.

 

RSprinkel

Link to comment
https://forums.phpfreaks.com/topic/78327-header-help/
Share on other sites

too stop the background image from repeating; do this:

 

background:url('headerImageName.jpg') no-repeat

 

and if you set an objects background color; it will continuously fill that object. the only way around this is to create a background image for your main area with a graduate fill.

Link to comment
https://forums.phpfreaks.com/topic/78327-header-help/#findComment-396406
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.