Jump to content

Banner get truncated when I resize the browser


Slybin

Recommended Posts

Hi all,
I'm helping the local chapter of Trout Unlimited with their web site and I was able to fix all of the problems with the help of w3schools.
Now I have a problem with the header, I'm replacing the background with a png image of 1080px by 200px and the banner get truncated if I resize the browser.
The header consist of a background, 2 logos, some text and also the menu bar is superposed on the header.
The old banner was a simple backgroud that was repeated:
From style.css for the old banner:
line-height: 1.50;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
color: #636363;
background: #FFF url(../img/back.png) repeat-x;
Now, I'm trying to put an image but the image get truncated when I resize the browser but the logos, the text and the munu bar are ok.
From style.css for the new banner:
line-height: 1.5;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
color: #636363;
background: #FFF url(../img/back.png) no-repeat center top scroll;
What should I do for the banner to stay?
If you need more info, let me know?
Thanks in advance,
Serge
Edited by Slybin
Link to comment
Share on other sites

The first step is making sure your HTML is valid. Correct the errors shown here: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.chateauguayriverchapter.com%2F

 

Instead of putting the header's background image on the <body> element, try putting it on the header itself. The body is being limited in width while the header has been allowed to extend further out.

Link to comment
Share on other sites

Thanks a lot Ingolme.

 

Moving the background image to the header instead of <body> element fixed it.

 

I already had some knowledge of perl and python but helping them on their web site is really fun, now I'm learning html, css. I really enjoy the w3schools web site, I have done a lot of reading and learn a lot.

 

Now I will make sure that my html is valid.

 

Thanks again.

 

Serge

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...