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 01-03-2009, 12:28 PM Css + Image Borders
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Ok,

I can't seem to figure out how to do a very simple style sheet modification. And I usually get this right away...

My modification is to add a simple collapsed border to my thumbnail images in the style.css file.

Btw, I am using the Interspire shopping cart and I am 100% sure I am modifying the correct template, but I am unsure why this code isn't working as planned:

Code:
border-collapse:collapse 1px #000;
I am not getting any border around the image at all.

Ok, after changing the above to:

Code:
border: solid 1px #000;
I've got the border, but for some reason, I can't get the collapse to work...When I add collapse to it, the border disappears.

What's the trick?

Thanks for ithe help.
__________________
Made2Own

Please login or register to view this content. Registration is FREE

Last edited by Brian07002; 01-03-2009 at 12:59 PM..
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-03-2009, 01:11 PM Re: Css + Image Borders
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
border-collapse applies to tables not images

http://www.w3schools.com/Css/pr_border-style.asp
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-03-2009, 01:32 PM Re: Css + Image Borders
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Ah, that's right...I still have tables on my mind...But, still having a problem because thumbnail is inside a table with "Click to enlarge" under the image, but the border is surrounding the text. I just want the border to go around the image, not the table, and the css is where I started, so do you think I have to find the html template, and add the border there, or should I stick with the css and adjust from there?
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 01-03-2009, 03:34 PM Re: Css + Image Borders
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
It's a template based cart, and I'm trying to figure out if it's a template page to modify (doesn't seem that way though) or the css...I'm going to work more with the style sheet to see what happens. But if you have a suggestion please post as this could get frustrating.

Thanks
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 01-03-2009, 04:10 PM Re: Css + Image Borders
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Chris,

Thanks for you help, but I figured out the problem. It was the padding, when I set that to 0 px it 'tightened' up the border to fit around the image, and not the whole div.

Thanks though
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Css + Image Borders
 

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