SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    May 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onmousedown border color

    I have a unordered list as a thumbnail gallery, now when a user clicks on a thumbnail, I want it to have a border color of #000. Until the user clicks a new thumbnail I want it to stay black, is this possible through css?

    Thank you

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,295
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    As long as you are staying on the same page you can manipulate the :active and :focus pseudo classes for IE and Firefox only.

    This example shows the method in use but in a different situation.

    Stu Nichols also has a number of examples on cssplay

  3. #3
    SitePoint Member
    Join Date
    May 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    THANK YOU! Your cssplay link worked greatly!

    One last thing:



    Can I disable the thin-dotted line on it's a:focus state in FF?

  4. #4
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this usually helps
    Code:
    a{
    	outline:	0;
    }

  5. #5
    SitePoint Member
    Join Date
    May 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Brilliant. Thanks!


Bookmarks

Posting Permissions

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