What's causing this effect?

Discussion in 'CSS' started by CarlBlogger, Dec 9, 2012.

  1. #1
    Hi all,

    I am working on a new website and I'm wondering what's creating the "sticking" effect in the navigation.

    I'm getting this happening when I've hovered over a tab.

    Click here to view the live website

    error.jpg

    See the green outline? Don't want that :(
     
    CarlBlogger, Dec 9, 2012 IP
  2. nixonm

    nixonm Active Member

    Messages:
    40
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    78
    #2
    I don't see those outlines on my computer :confused:
    Did you fixed it?
     
    nixonm, Dec 9, 2012 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    It's your CSS:

    #menu .menu-top > li:hover {
    background-color: #22FF00;



    If you don't want something, you shouldn't write code to cause it.
     
    Rukbat, Dec 9, 2012 IP
  4. Sayedtaqui

    Sayedtaqui Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #4
    I dont see the effect either , probably you have fixed it.
     
    Sayedtaqui, Dec 14, 2012 IP
  5. CarlBlogger

    CarlBlogger Well-Known Member

    Messages:
    516
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #5

    That's the background-color. I'm on about the outline it's leaving? Maybe it's a specific problem to me because no one else is getting it?
     
    CarlBlogger, Feb 2, 2013 IP
  6. hasanoben

    hasanoben Active Member

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    90
    #6
    I don't see those either.
     
    hasanoben, Feb 2, 2013 IP
  7. CarlBlogger

    CarlBlogger Well-Known Member

    Messages:
    516
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #7

    Thanks for your input, think it's resolved now.
     
    CarlBlogger, Feb 9, 2013 IP
  8. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #8
    I'm seeing broken layouts across the board here - different layouts in five different browsers (IE7, IE9, Opera, FF and Chrome) means it's got problems.

    Peeking under the hood, I see the HTML 5 bloat with that stupid malfing IE detecting crap by Paul Irish, a whole slew of pointless bandwidth wasting meta, no media targets on the stylesheet LINK, that stupid malfing 'modernizr' garbage that in my experience does more harm than good... and that's before I even get to the body. There you've got span for nothing, endless classes on everything for nothing, extra DIV for nothing, clearing DIV like it's still 2001, presentational images in the markup, invalid/malformed forms, small on text that is not being de-emphasized... jquery for christmas only knows what (Not that I'd EVER put that steaming pile of idiocy on a website) -- it's 10k of markup doing around 5K's job... basically DOUBLE the code needed.

    Here's a BIG tip, if every single element of a single type is getting the same class inside a parent container that already HAS a class or ID, NONE OF THEM need classes in most cases... Anchors are perfectly good inline-level elements... as such all those .menu_button classes and span.menu_label serve no legitimate purpose.

    But then I say the same thing about code bloat like HTML 5's idiotic 'nav' tag (which should be redundant to heading navigation if browser makers other than Opera would get off their asses and implement 4 properly BEFORE moving on to 5)
     
    deathshadow, Feb 9, 2013 IP
  9. CarlBlogger

    CarlBlogger Well-Known Member

    Messages:
    516
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #9
    Hi deathshadow,

    Thanks for your input. I am obviously a little outdated when it comes to some areas it seems. Things have moved on a lot and when I'm trying to implement html 5, it's backfiring it appears from your remarks.

    Do you have a guide that you would follow? It's safe to assume that the layout I'm creating is very simple. I just need to remove some useless code.

    Thanks,
    Carl
     
    CarlBlogger, Feb 12, 2013 IP