Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Image border

  1. #1
    New Coder
    Join Date
    Oct 2012
    Posts
    26
    Thanks
    6
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,673
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    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

  • Users who have thanked Excavator for this post:

    stront (10-31-2012)

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,673
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    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

  • Users who have thanked Excavator for this post:

    stront (11-01-2012)

  • #4
    New Coder
    Join Date
    Oct 2012
    Posts
    26
    Thanks
    6
    Thanked 0 Times in 0 Posts
    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. ^^


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •