Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
| Search | Today's Posts | Mark Forums Read
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 26th, 2006, 10:20 AM
Friend of Wrox
 
Join Date: Sep 2004
Location: Tehran, Tehran, Iran.
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default stretching the background image??

hi all,
 How shall I stretch a background-image so that it fits the whole area of an arbitrary content with no definit size ??

 
Old November 26th, 2006, 10:28 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can't. Stretching is in CSS 3 but support is years away. With current CSS you can stop a background from tiling or make it tile in only one direction, you can position it and make it not scroll with the page. That's about it.

You can position an inline image behind the text and give it a width in %. It may work OK sometimes. It depends.

--
http://yupapa.com
 
Old December 8th, 2006, 03:38 AM
Registered User
 
Join Date: Dec 2006
Location: , , Belgium.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

nerssi, perhaps check this one out (but IE of course messes it up, no hack yet, anyone...????)
http://www.rpvd.be/design/pena/penatest.html
pull the window to any size and see for yourself what happens to the green picture in the masthead
greetz
ro

rpvd
 
Old February 3rd, 2007, 04:55 PM
Registered User
 
Join Date: Dec 2006
Location: , , Belgium.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by nerssi
 hi all,
 How shall I stretch a background-image so that it fits the whole area of an arbitrary content with no definit size ??

http://www.cssplay.co.uk/layouts/background.html
check this guy out folks
Ro

rpvd




Similar Threads
Thread Thread Starter Forum Replies Last Post
Background Image for Different Resolutions Andraw Pro VB 6 0 November 6th, 2008 12:00 PM
Background image in IE7 Samurai CSS Cascading Style Sheets 0 May 21st, 2008 10:46 PM
Background Image for GUI Floetic Java GUI 2 April 17th, 2008 09:54 PM
Background-image:url() interrupt CSS Cascading Style Sheets 2 September 20th, 2006 05:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.