Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
streaching background image
Old 12-21-2006, 02:48 PM streaching background image
Average Talker

Posts: 22
Name: Momo
Trades: 0
I have a background image for one of my pages. when I define it as background and enter the page on a high screen resolution that is begger then the image I have white spaces.
How can I streach a background to fit the page (no repeat just streach) ?
ophir.oren is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-21-2006, 03:09 PM Re: streaching background image
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You can't stretch it and have it retain it's quality. You can define the size in the html as bigger than it really is, but it will distort it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-21-2006, 03:19 PM Re: streaching background image
Extreme Talker

Posts: 191
Trades: 1
Try putting the image in the table background and start your web page html with table (immediately after the body tag). I can think of this only way to strech the image, otherwise, it will repeated again. I hope this will work.

Thanks.
__________________
^|^
Please login or register to view this content. Registration is FREE
- Search Engine Optimization and Web Site Promotion Explained!
~!~
Please login or register to view this content. Registration is FREE
- Do you want to learn how other webmasters earning?
hostabove is offline
Reply With Quote
View Public Profile
 
Old 12-21-2006, 04:38 PM Re: streaching background image
McBone's Avatar
Super Talker

Posts: 149
Name: i have left
Location: i have left
Trades: 0
i would enlarge the image with something like photoshop, and keep testing it until you have the right size
McBone is offline
Reply With Quote
View Public Profile
 
Old 12-21-2006, 07:30 PM Re: streaching background image
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
Well fellas I gotta say when ladynred posts something I normally don't even look again because she's super smart. You cannot do this without loosing some quality from the graphic. like she said you can set the size in html using width and height commands you can keep the image from being tiled with css using the background: no-repeat; command.

Try taking a higher quality image and resizing using a graphics program to the size you want if you're trying not to loose quality.
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Old 12-22-2006, 03:26 AM Re: streaching background image
Average Talker

Posts: 22
Name: Momo
Trades: 0
I don't really care about lossing quality. just need it streached.
ophir.oren is offline
Reply With Quote
View Public Profile
 
Old 12-22-2006, 05:04 AM Re: streaching background image
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Photoshop it is then!

Should I hazard a guess that next you'll want to know how to make the body background image shrink for smaller resolutions ??

'cos you can't do that either in HTML

all you need to do is to set the image postition to be center center then give the body background-color property a colour value that is close to or compliments the image colour.
That way the edges won't be white, they will be the colour you have set.

http://www.w3schools.com/css/css_ref...asp#background
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to streaching background image
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49543 seconds with 12 queries