Jump to content

Recommended Posts

Well heres the problem I have created a banner and when ever I make my screen resolution a different size it hides a quarter of the banner. I have tried changeing the php to table to absolute and then I even tried several things in the style sheet which include

background-repeat: no-repeat
background-position: (all positions)
background-attachment: fixed and scroll

I tried these any many different combinations and couldnt get it to work if you have any suggestions that would be great thanks

Spyder
Link to comment
https://forums.phpfreaks.com/topic/17352-need-help-with-a-banner-situation/
Share on other sites

Assuming you aren't using a mess of position:relative and position:absolute in your layout, there's no reason why something as simple as this wouldn't work:

[code]<div id='banner'></div>[/code]

And the CSS:
[code]
#banner {
height:190px; /* adjust to suit */
margin:0;
background-image:url(../images/mybanner.jpg);
background-position: top left;
}[/code]
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.