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
Sitting an image on a box or within a border
Old 01-15-2008, 04:47 AM Sitting an image on a box or within a border
Novice Talker

Posts: 5
Name: kelly
Trades: 0
I'm very new to css and am having difficulty with how to do something - I'm sure it's possible.
I have a lot of images that are slightly different in shape/size. What I'm hoping to be able to do is sit each image on its own box - or contain it within a border. I want the box or border for each image to be the same size for each image to keep it all uniform and displays a lot nicer. I hope that makes sense. If not please fire questions at me because I really want to know how to get this done.
Thanks in advance.
lakota19 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-15-2008, 07:51 AM Re: Sitting an image on a box or within a border
Experienced Talker

Posts: 33
Name: Ravi B
Location: Mauritius
Trades: 0
use this code
<img src="your path here" width="55" height="55" style="border: 1px solid #000000;" />
__________________
Ravi
ravisatan is offline
Reply With Quote
View Public Profile
 
Old 01-15-2008, 11:52 AM Re: Sitting an image on a box or within a border
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Do you want to do this from a css file?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 01-16-2008, 02:24 AM Re: Sitting an image on a box or within a border
Novice Talker

Posts: 5
Name: kelly
Trades: 0
yes I am doing this from a style sheet
lakota19 is offline
Reply With Quote
View Public Profile
 
Old 01-16-2008, 03:25 AM Re: Sitting an image on a box or within a border
Experienced Talker

Posts: 33
Name: Ravi B
Location: Mauritius
Trades: 0
use this

<img src="your path here" width="55" height="55" class="border-img" />

in your stylesheet use this

.border-img{
border: 1px solid #000000;
}
__________________
Ravi
ravisatan is offline
Reply With Quote
View Public Profile
 
Old 01-16-2008, 06:23 PM Re: Sitting an image on a box or within a border
Novice Talker

Posts: 5
Name: kelly
Trades: 0
Thanks. I will give it a go and let you know if it worked.
lakota19 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Sitting an image on a box or within a border
 

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