Reply
Background Image In Table...
Old 10-19-2008, 01:39 AM Background Image In Table...
Brian07002's Avatar
Defies a Status

Posts: 1,589
Name: ...
Location: ...
Trades: 0
Is is possible to make an image that is set as a background image inside a table tag resize so that it will fit correctly on different screens, not different resolutions...Ex: My Desktop Pc has a large LCD screen, in which the background image fit's correctly at 800 x 600, but not on my laptop screen at 800 x 600 because of the screen is obviously smaller in size...How can I make the image not scroll vertically but still make the image fit the entire 800 x 600 window? What is that solution?

Thank you
__________________
Sig Less - Have some site you want me to put here? Will put here for a couple of paypal bucks.

Last edited by Brian07002; 10-19-2008 at 01:40 AM..
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-19-2008, 08:20 PM Re: Background Image In Table...
wayfarer07's Avatar
NYE-KEE

Posts: 3,155
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
The idea is to use a regular image tag for a background, then resize it to 100% height and width, at a fixed position, so that it doesn't move. You can't resize regular background images, which is why you must use an image tag.

You definitely don't need a table cell to do this, which I recommend you avoid for layout anyway.

The problem is, that IE6 doesn't support fixed positioning, so you need to work around that limitation by imitating fixed positioning in IE6. Here is how to do in in all the main browsers: http://www.htmlite.com/faq022.php . Once you get good at CSS you'll remember how this works.
__________________
Wayfarer | jQuery Tooltip Plugin | Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-19-2008, 11:42 PM Re: Background Image In Table...
Sean@WMS's Avatar
Skilled Talker

Posts: 52
Name: Sean Connors
Location: Eureka, CA USA
Trades: 0
That's a neat trick, Abel.

Have you any experience doing this? I'm curious about distortion of the image quality as it is being resized like this.
__________________
Web Merchant Services
Online Payment Processing, FREE shopping cart
Sean@WMS is offline
Reply With Quote
View Public Profile Visit Sean@WMS's homepage!
 
Old 10-20-2008, 09:38 AM Re: Background Image In Table...
wayfarer07's Avatar
NYE-KEE

Posts: 3,155
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Yeah, here is an example: http://www.celebrityclothingline.com/
__________________
Wayfarer | jQuery Tooltip Plugin | Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-20-2008, 02:58 PM Re: Background Image In Table...
Sean@WMS's Avatar
Skilled Talker

Posts: 52
Name: Sean Connors
Location: Eureka, CA USA
Trades: 0
Thanks, Abel.

Yeah, it does what I expected: squishes the image. I guess one would just have to be careful with their background image so that it "degrades" decently as the background image on this site does.
__________________
Web Merchant Services
Online Payment Processing, FREE shopping cart
Sean@WMS is offline
Reply With Quote
View Public Profile Visit Sean@WMS's homepage!
 
Old 10-20-2008, 04:02 PM Re: Background Image In Table...
wayfarer07's Avatar
NYE-KEE

Posts: 3,155
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Yeah, there is definitely plenty of circumstances in which you would not want to use this type of effect.
__________________
Wayfarer | jQuery Tooltip Plugin | Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Background Image In Table...
 

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.43832 seconds with 13 queries