Background Display Issue in Browser Window |
Background Display Issue in Browser Window |
mario |
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. please help guys ! ur assistance will greatly be appreciated. cheers !! |
mario |
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... I hope this can be of help to some other troubled mind facing the same issue. |
Lo-Fi Version | Time is now: 23rd April 2024 - 06:20 AM |