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
Making this image a background in a div?
Old 01-29-2008, 09:04 AM Making this image a background in a div?
Experienced Talker

Posts: 32
Trades: 0
Here is my site
http://www.rotate-ireland.com/website.html

The selected area ibelow is 1 full image, can some tell me how i can just use that image as a background in same area and not an image.

I tried but Im unable to do it. Ive tried the last few days, any help is much appreciated!

http://www.rotate-ireland.com/images/temp3.gif

Last edited by hunty; 01-29-2008 at 10:51 AM..
hunty is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-29-2008, 02:05 PM Re: Making this image a background in a div?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
First, don't use tables for layout.
That could easily be done as the background on a div, but I wouldn't use it as a single background graphic.
__________________
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 01-29-2008, 04:11 PM Re: Making this image a background in a div?
Extreme Talker

Posts: 182
Trades: 0
I agree with ladynred. It does not seem practical to use the entire image as a bg.

But if you must:

The xhtml:

<div id="my-div"></div>

The css:

div#my-div{
background:url(path/to/image.gif) no-repeat #000;
width: width of image here.
height: heigh of image here

position:relative; /* assuming you are planning on absolutely positioning elements inside of this div */
}
bhgchris is offline
Reply With Quote
View Public Profile
 
Old 01-29-2008, 09:25 PM Re: Making this image a background in a div?
Experienced Talker

Posts: 32
Trades: 0
Thats the only way I know how...

What way would you advise?
hunty is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Making this image a background in a div?
 

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