Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-31-2012, 09:23 PM   PM User | #1
stront
New Coder

 
Join Date: Oct 2012
Posts: 26
Thanks: 6
Thanked 0 Times in 0 Posts
stront is on a distinguished road
Image border

Hey people so i have some thumbnails on this page z-gfx.co.cc/gallery.html .

So I want to put a border around those thumbnails. When I change the border in the css then all images change ofcourse... but I dont want my logo with that border. So could someone help me please?

And could you also tell me how the border color can be changed when I go on it with my mouse?

Thanks in advance.
stront is offline   Reply With Quote
Old 10-31-2012, 09:28 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello Stront,
You just need to be more specific and target the images in your Gallery only. See how specificity works here.

Something like #site_content img {border: 3px solid #333;} might work for you.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
stront (10-31-2012)
Old 10-31-2012, 10:55 PM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Just noticed you wanted the border to change on hover, sorry about that. Look at what this does for you instead of my original reply -
Code:
a.group3 {
  height: 100px;
  width: 100px;
  display: inline-block;
  border: 3px solid #f00;
}
a.group3:hover {border: 3px solid #00f;}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
stront (11-01-2012)
Old 11-01-2012, 01:01 AM   PM User | #4
stront
New Coder

 
Join Date: Oct 2012
Posts: 26
Thanks: 6
Thanked 0 Times in 0 Posts
stront is on a distinguished road
Thanks!

Now the gallery looks rly good, thanks

If you need a signature or something, contact me pls. I will make an amazing one for you. ^^
stront is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:05 PM.


Advertisement
Log in to turn off these ads.