Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Auto Stretching Linear Gradient Background To Any Browser Resolution

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

iBall

New Member
Impact
0
Hi,

I could find a answer after google a several times:sick:
Anyone know how to let the background looks like http://www.vbulletin.org

No matter how you reduce or increase the browser resolution, it is still showing perfectly by auto scaling and stretching.

After i checked, it is using a single jpg file as the background
http://www.vbulletin.org/forum/image...ybkgd950px.jpg

so I'm wondering how it works by only stretching 2 end side and remain the center white colour part. and the site content has a fixed width.

hope somebody could help me. thank you :D
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
http://www.w3schools.com/css/css_background.asp

The answer is there, it's just a fixed background. The idea is to use an image that's tall enough for the large resolutions, but is very thin because you repeat it across the x (horizontal) axis.
 
0
•••
Use the CSS for this effect.
background-image: url(images/image.gif);
background-repeat: (select one of then)repeat repeat-x repeat-y no-repeat;
background-position: (at your choice) top bottom left right;
 
0
•••
or you can just use in 1 line as:

background: url(imagelink) top left repeat-x or y;


Regards
Hive
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back