CSS removing border on tabbed navigation menu -


I am trying to create a simple tabbed navigation menu in CSS. I'm having trouble getting the bottom limit to go to the active tab. Usually it is not hard to do, but I also want to set a line height. That's why I use inline blocks with various IE and FF fixes. I am doing It displays the way I want it with the exception of the lower border.

I have tried several ways to do this work, including the establishment of several operators .. but I do not have enough information about it CSS to determine me whether I use them correctly I am doing

It's mine.

(Obviously my CSS skills need to be working and I can probably also make the code a lot easier.)

Code:

 < Code> #tab_menu {width: 100%; Hidden flurry; Color: # 000000; Border Bottom: #dddddd Solid 1px; } #tab_menu ul {padding: 0px; Margin: 0 px; } #tab_menu li {list-style: none; Line-height: 42 pixels; Padding-left: 15px; Padding-right: 15px; Font-size: 14px; Font-family: aerial, helvetica, sense-serif; Display: -Moz-inline-stack; / * Firefox Fix * / Display: Inline-Block; / * Normal function * / Zoom: 1; / * IE fix * / * display: inline; / * IE fixes * /} .tab_menu_active {color: # 000000; Border bottom: None; Border-left: #dddddd solid 1px; Limit-correct: #dddddd Solid 1px; Border-top: #dddddd solid 1px; } .tab_menu_active one {color: # 000000; Text-decoration: None; } .tab_menu_not_active {} .tab_menu_not_active a {color: # 52a4d4; Text-decoration: None; } .tab_menu_not_active: hover {background: #eeeeee; }  

HTML:

  & lt; Div id = "tab_menu" & gt; & Lt; Ul & gt; & Lt; Li class = "tab_menu_not_active" & gt; & Lt; A href = "" & gt; Link 1 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "tab_menu_active" & gt; & Lt; A href = "" & gt; Link 2 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "tab_menu_not_active" & gt; & Lt; A href = "" & gt; Link 3 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "tab_menu_not_active" & gt; & Lt; A href = "" & gt; Link 4 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "tab_menu_not_active" & gt; & Lt; A href = "" & gt; Link 5 & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; 

hidden;

  #tab_menu {/ * Overflow: Hidden; I have added these styles in .tab_menu_active which will add white below border and gray border color overrides with position manipulation.  
  .tab_menu_active {border-bottom: solid 1px #fff; Status: Relative; Top: 1px; } .tab_menu_active one {status: relative; Top: -1px; }  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -