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.

Graphics Forum


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



Reply
How do I get an image to fill entire div in CSS?
Old 09-18-2006, 05:41 AM How do I get an image to fill entire div in CSS?
Novice Talker

Posts: 14
Trades: 0
Hello

Does anybody know how to get an image to fill the entire width and height of the div using CSS and without loosing image definition?

Here is my example.
http://www.travelbreak.info/design.html.

Thanks for any help.
sovereign6 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-18-2006, 08:45 AM Re: How do I get an image to fill entire div in CSS?
Novice Talker

Posts: 14
Trades: 0
Hi

There seems to be a full stop that crept into the end of the url.

Please see:

http://www.travelbreak.info/design.html

Cheers
sovereign6 is offline
Reply With Quote
View Public Profile
 
Old 09-18-2006, 12:04 PM Re: How do I get an image to fill entire div in CSS?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Why would you put a div inside a table ?? If you're going to use css.. do your layout WITHOUT tables.

To answer your question - give your div an id and specify the bg like this:

#header {
background: url(imagename.gif) repeat-x; }

The values for repeat are; repeat-x, repeat-y, no-repeat. Leaving OFF the repeat, the image will tile in both directions to fill the div.
__________________
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 09-18-2006, 01:48 PM Re: How do I get an image to fill entire div in CSS?
Novice Talker

Posts: 14
Trades: 0
Hi Ladynred,

Thanks for your advice.

Cheers
sovereign6 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do I get an image to fill entire div in CSS?
 

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.37040 seconds with 12 queries