Results 1 to 2 of 2

Thread: CSS with tabs not working properly.

  1. #1
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS with tabs not working properly.

    This might take a long time to explain, but I'm desperately seeking an answer, so please bear with me.

    At http://www.heebie.co.uk/proxy you'll notice I have tabs set up. At the moment the tabs only show when the text on them is a link, but I don't want it to be a link.
    So, I created a class in the css called 'hello' with the same properties as the tabs with links and put a new tab in ("Fun") with class "hello", and with no link as an experiment. Somehow, the tabs aren't appearing.
    The link to the webpage is http://www.heebie.co.uk/proxy/index.html , and the css is at http://www.heebie.co.uk/proxy/tabcontent.css , but I'll include snippets below.

    Code:
    .shadetabs{
    padding: 3px 0;
    margin-left: 0;
    margin-top: 1px;
    margin-bottom: 0;
    font: 20px Verdana;
    list-style-type: none;
    text-align: left; /*set to left, center, or right to align the menu as desired*/
    }
    
    .shadetabs li{
    display: inline;
    margin: 0;
    }
    
    .shadetabs li a{
    text-decoration: none;
    padding: 3px 7px;
    margin-right: 3px;
    border: 1px solid #778;
    color: #2d2b2b;
    background: white url(shade.gif) top left repeat-x;
    }
    
    .shadetabs li.hello{
    text-decoration: none;
    padding: 3px 7px;
    margin-right: 3px;
    border: 1px solid #778;
    color: #2d2b2b;
    background: white url(shade.gif) top left repeat-x;
    }
    
    .shadetabs li.non:hover{
    text-decoration: underline;
    color: #2d2b2b;
    }
    
    .shadetabs li a:visited{
    color: #2d2b2b;
    }
    
    .shadetabs li a:hover{
    text-decoration: underline;
    color: #2d2b2b;
    }
    
    .shadetabs li.selected{
    position: relative;
    }
    
    .tabcontentstyle{ /*style of tab content oontainer*/
    border: 1px solid gray;
    width: 450px;
    margin-bottom: 1em;
    padding: 10px;
    }
    
    .tabcontent{
    display:none;
    }
    
    @media print {
    .tabcontent {
    display:block!important;
    }
    }
    Code:
    <ul id="maintab" class="shadetabs">
            <li class="selected"><a href="thexternal.htm" rel="ajaxcontentarea" onMouseover="dropdownmenu(this, event, menu1, '80px')" onMouseout="delayhidemenu()"> Surf</a></li>
            <li><a href="external.htm" rel="ajaxcontentarea">Search</a></li>
            <li class="non"><a href="directory/pod.cgi" rel="ajaxcontentarea">Browse</a></li>
            <li><a href="external3.htm" rel="ajaxcontentarea">Buy</a> </li>
    	  <li class="hello" onMouseover="dropdownmenu(this, event, menu1, '80px')" onMouseout="delayhidemenu()">Fun</li>
          </ul>

  2. #2
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hang on - it seems to be working now. Sorry about that, don't know why it wasn't working before

Bookmarks

Posting Permissions

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