Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Space Invader101's Avatar
    Junior Member

    Status
    Offline
    Join Date
    May 2009
    Posts
    15
    Downloads
    0
    Uploads
    0

    CSS/HTML <a> tag help?

    On a home page I'm designing (still on my hard drive), whenever I click on navigation links, then click 'back' button, a dotted border appears around the most recently visited link.

    I tried in CSS to set 'a:visited' border to none, but then realized it had something to do with focus. Any idea how to get rid of it?

  2. #2
    Chris C's Avatar
    Senior Member

    Status
    Offline
    Join Date
    May 2009
    Posts
    188
    Downloads
    0
    Uploads
    0
    This would remove it for all items that receive focus.

    /* remember to define focus styles! */
    :focus {
    ***outline: 0;
    }

    Of course, if you want it on, you'll have to turn it on for the given element.


    And if you just want to remove the border from the anchor tag only, try this:
    a:focus {
    ***outline: 0;
    }

 

 

Quick Reply Quick Reply

Click here to log in


In what corner do we have Search box?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I need help with html/css tag?
    By Predator in forum Discuss HTML
    Replies: 0
    Last Post: 03-09-2011, 04:18 AM
  2. html/css help basic p and h1 tag confusion.....?
    By Joe Burnett in forum Discuss HTML
    Replies: 0
    Last Post: 11-17-2010, 04:26 AM
  3. what are the advantages of link tag html css?
    By Pipy in forum Discuss HTML
    Replies: 0
    Last Post: 06-24-2009, 04:20 PM
  4. Is it legal to add CSS to the <HTML> tag?
    By dkling in forum Discuss HTML
    Replies: 0
    Last Post: 05-01-2009, 08:59 PM
  5. overline tag in html without css?
    By datf in forum Discuss HTML
    Replies: 0
    Last Post: 12-23-2008, 01:16 PM

Bookmarks

Posting Permissions

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