The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Background Display Issue in Browser Window
mario
post Mar 28 2012, 11:10 AM
Post #1





Group: Members
Posts: 4
Joined: 28-March 12
Member No.: 16,812



Hey there, I've been working on a website My Webpage . It was going fine till i realized that if i make thew browser window smaller and scroll to the right a white band is appearing over the background image. I've tried adding:
CODE
html,body{ width: 100%;    height: 100%;    margin: 0px;    padding: 0px;    overflow-x: hidden; }

the result was not successful .
also tried adding,
CODE
<meta name = "viewport" content = "width = 1000">

in the mark up, didn't really fix anything. i'm not sure what i'm doing wrong. ninja.gif
please help guys !
ur assistance will greatly be appreciated.
cheers !!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
mario
post Mar 30 2012, 09:04 AM
Post #2





Group: Members
Posts: 4
Joined: 28-March 12
Member No.: 16,812



Alright guys, the solution was quite silly as I had anticipated. I looked up min-width and max-width in css and applied it.

CODE
#header {
    height: 500px;
    min-width: 960px;
    max-width: 3000px;
    background-image:url(/blueBg.png);
    background-repeat: repeat;
}

}
#footer {
    height: 300px;
    min-width: 960px;
    max-width: 3000px;
    background-image:url(/darkBg.png);
    background-repeat: repeat;
}


On incorporating this min/max-width css rule i was able to overcome the issue that the browser viewport was creating.
thanks for all the support u guys... biggrin.gif
I hope this can be of help to some other troubled mind facing the same issue.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 06:20 AM