Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] error with the dotted line

  • This topic is empty.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #208385
    M3llawi
    Participant

    Hi,
    So am having an error with the dotted line around the navigation menu
    I tried some CSS codes but they wont work Please Help me

    button {
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    background-color: transparent;
    noFocusLine: expression(this.onFocus=this.blur());
    }

    a {
    outline: 0;
    }

    a:focus,
    *:focus {
    noFocusLine: expression(this.onFocus=this.blur());
    }

    #208390
    M3llawi
    Participant
    #208415
    M3llawi
    Participant

    I already tried all of it nothing happens

    #208416
    M3llawi
    Participant

    Am using Google chrome at the moment

    #208419
    Alen
    Participant

    @m3llawi

    a {}
    a:visited {}
    a:hover {}
    a:active {}
    a:focus {}
    

    Link states are pretty self explanatory, the one you need is a:focus. In your code you have:

    a:focus,
    *:focus {
      noFocusLine: expression(this.onFocus=this.blur());
    }
    

    Add outline: none;.

    #208422
    M3llawi
    Participant

    @Alen Still I didn’t understand

    #208425
    Alen
    Participant

    I’ve modified your code that was in your original post:

    button {
      border: none;
      background-color: transparent;
    }
    
    a {}
    
    a:focus {
      outline: none;
      /* IE7 Support */
      noFocusLine: expression(this.onFocus=this.blur());
    }
    

    We need more information about your problem in order to help you. There could be other issues at play that we’re not seeing.

    Do you have a live example for us? Can you provide all of the code HTML / CSS? If you’re working locally, go to view source in your browser and find and paste relevant code.

    If the only thing you’re looking to do is, remove the outline when link is in focus, then all you need is:

    a:focus {
      outline: none;
      /* IE7 Support */
      noFocusLine: expression(this.onFocus=this.blur());
    }
    

    But again there could be other selectors that are cascading styles and creating problems. We can’t answer without you giving us more information.

    Hope that helps, Alen

    #208426
    M3llawi
    Participant

    http://codepen.io/anon/pen/bVeeGO

    This is the whole website

    #208427
    Alen
    Participant
    #208428
    M3llawi
    Participant

    So what should i do ?

    #208434
    M3llawi
    Participant

    Well this is the Navigation bar

    http://codepen.io/anon/pen/EVygYo

    the problem is here

    #208495
    M3llawi
    Participant

    This is the live demo of the website

    You can take a look at it

    http://crazynash.com/

    #208497
    M3llawi
    Participant

    I add those in the Custom CSS

    but nothing happens !

    #208501
    M3llawi
    Participant

    Thanks a lot This forums this the best
    <3

Viewing 14 posts - 1 through 14 (of 14 total)
  • The forum ‘CSS’ is closed to new topics and replies.