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
Multiple images within a div
Old 10-05-2007, 01:02 PM Multiple images within a div
Average Talker

Posts: 18
Trades: 0
Hi,

I would like to absolute position 2 or 3 images within a div class. I'm kinda new to css and I obviously can only use the img prperty once. I think I am missing an obvious solution but I've tried all kinds of things and am stumped. Thanks for your help.
limey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-05-2007, 02:01 PM Re: Multiple images within a div
Super Talker

Posts: 131
Trades: 0
<img src="" />
You can use that as many times as you want.

Are you not working with HTML?
soap is offline
Reply With Quote
View Public Profile
 
Old 10-05-2007, 02:14 PM Re: Multiple images within a div
Average Talker

Posts: 18
Trades: 0
Sorry, I meant to say that I would like to position each image in a different, absolute position. If I use the img tag for each picture then they will all be positioned in the same place. I hope this makes sense.
limey is offline
Reply With Quote
View Public Profile
 
Old 10-05-2007, 02:17 PM Re: Multiple images within a div
Super Talker

Posts: 131
Trades: 0
Just give your images id's.
<img src="img.jpg" id="img1" />

#img1{
position:abosolute;
top:20%;
}
etc..
soap is offline
Reply With Quote
View Public Profile
 
Old 10-05-2007, 03:04 PM Re: Multiple images within a div
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
I would like to absolute position 2 or 3 images within a div class.
Why use position:absolute at all ? In most cases it's not necessary.

As stated, you can use the img tag all you want. If you want a different placement for each image, create a CLASS for each image placement. Then you'd have <img class="topLeft" src...........> and <img class="bottomRight" src=............> etc.

Classes can be reused many times on the same page, ID's cannot.
__________________
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 10-08-2007, 03:54 PM Re: Multiple images within a div
Average Talker

Posts: 18
Trades: 0
Awesome. I did read about that but being new to the power of css I am now getting used to it's uses. Thanks again for taking the time to answer this most basic of questions.
limey is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Multiple images within 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.30429 seconds with 12 queries