NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page Auto Stretching Linear Gradient Background To Any Browser Resolution

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search
9 members in live chat ~  
NamePros Design Contests NamePros Design Contests
Forum Sponsorship
Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest)



Reply
 
LinkBack Thread Tools
Old 03-13-2009, 06:00 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Mar 2009
Posts: 2
iBall is an unknown quantity at this point
 



Auto Stretching Linear Gradient Background To Any Browser Resolution


Hi,

I could find a answer after google a several times
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.
????: NamePros.com http://www.namepros.com/web-design-discussion/566742-auto-stretching-linear-gradient-background-any.html

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
iBall is offline   Reply With Quote
Old 03-14-2009, 08:23 AM   #2 (permalink)
NamePros Expert
Join Date: Oct 2004
Location: South Carolina
Posts: 5,043
CrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond repute
 


Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
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.
CrazyTech is offline   Reply With Quote
Old 03-16-2009, 01:30 PM   #3 (permalink)
NamePros Regular
Join Date: Apr 2007
Posts: 328
hairat angaiz is on a distinguished road
 



Use the CSS for this effect.
background-image: url(http://wac.658e.edgecastcdn.net/80658E/namepros/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;
hairat angaiz is offline   Reply With Quote
Old 03-17-2009, 01:22 AM   #4 (permalink)
Graphic Web Designer
 
Hive's Avatar
Join Date: Jan 2006
Location: Cybertron
Posts: 571
Hive has a reputation beyond reputeHive has a reputation beyond reputeHive has a reputation beyond reputeHive has a reputation beyond reputeHive has a reputation beyond reputeHive has a reputation beyond reputeHive has a reputation beyond reputeHive has a reputation beyond reputeHive has a reputation beyond reputeHive has a reputation beyond reputeHive has a reputation beyond repute
 


Member of the Month
June 2007
Child Abuse Save a Life Ethan Allen Fund Ethan Allen Fund Cancer Baby Health Animal Rescue Animal Rescue SIDS
or you can just use in 1 line as:

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


Regards
Hive
__________________
HIVE DESIGNS
Hive is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:54 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger