Forums

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

Home Forums CSS Active menu styling

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #176253
    ani7ruddha
    Participant

    I have this Your text to link here…

    I want to make the active menu exactly how it is.

    I have done it anyhow as of now and looks fine.

    But when you scroll the page down a blue stripe will come below that orange stripe we dont want that

    #176256
    sensationikke
    Participant

    The blue stripe is there because the image used is like that: http://www.wisepuppet.com/wp-content/uploads/2014/07/ative.jpg

    How about changing the image? You’ll have to give up the blue line before you scroll though.

    If you only want the image to be without the blue line after there has been scrolled, I guess you’ll have to look for a javascript solution

    #176289
    ani7ruddha
    Participant

    How that can be done by javascript ?

    because I want that blue stripe shall go off once we start scrolling

    #176294
    Paulie_D
    Member

    You have to stop using this image…

    
    .navbar .nav > .active > a, 
    .navbar .nav > .active > a:hover, 
    .navbar .nav > .active > a:focus {
    background: url('http://www.wisepuppet.com/wp-content/uploads/2014/07/ative.jpg') repeat-x bottom left;
    }
    

    and find some CSS styling that works the same way on your active link. It really shouldn’t be hard.

    #176326
    ani7ruddha
    Participant

    @Paulie_D This was intially what I did but by that I cant get blue section initially as its now

    #176329
    Paulie_D
    Member

    Couple of inset box-shadows would work

    http://codepen.io/Paulie-D/pen/Lapuy

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