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.

CSS Forum


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



Reply
Old 08-23-2010, 11:44 PM background image
Ultra Talker

Posts: 254
Trades: 0
please look at this link
http://www.sudhakargolakaram.co.in/f...oundimage.html

my question is about the image at the footer. i have a wrapper div with a width of 900px, at the top of the page will be the content inside the wrapper div and at the bottom of the page i want a background image which should appear 100% of the width and height which is the height of the image.

within this footer div which i need the background image i also want content to be inside the 900px wrapper div so i set the footer div to width: 100% and height 684px which is the height of the background image however this background image is not appearing at 100% width but stopping at 976px which is the width of the image

how do i make the background image appear 100% of the width and have the footer content sitting within this background image

please advice
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-24-2010, 09:41 AM Re: background image
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The footer IS 100% of the viewport width. Your image is only 976px wide, set to no-repeat. Unless you make your footer image a LOT wider, or allow it to repeat horizontally, there's no way it's going to stretch to fill the horizontal space.

It's doing exactly what you told it to do - do not repeat.
__________________
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 08-24-2010, 05:38 PM Re: background image
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
You can try to put image in you footer instead in background. Then define css
Code:
#footer img {
position: absolute;
top:0;
left:0;
width: 100%;
z-index: -1;
}
I am not sure is this work because I haven't time for try.
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 08-24-2010, 09:56 PM Re: background image
Ultra Talker

Posts: 254
Trades: 0
i have update the file
http://www.sudhakargolakaram.co.in/f...oundimage.html

i am now able to stretch the image to 100% width and have the footer content appear inside the wrapper

i have used an img tag inside footer div and to this inline image i have set width of 100% and negative z-index
sudhakararaog is offline
Reply With Quote
View Public Profile
 
Old 08-26-2010, 04:11 PM Re: background image
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
Looking good on my 1024x768 monitor.
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Reply     « Reply to 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 1.35019 seconds with 12 queries