Results 1 to 3 of 3

Thread: CSS Library: Horizontal CSS Menus:

  1. #1
    Join Date
    May 2008
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default CSS Library: Horizontal CSS Menus:

    1) Script Title: CSS Library: Horizontal CSS Menus:

    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...olor-tabs/P70/

    <style type="text/css">

    #ddcolortabs{
    margin-left: 4px;
    padding: 0;
    width: 100%;
    background: transparent;
    voice-family: "\"}\"";
    voice-family: inherit;
    padding-left: 5px;
    }

    #ddcolortabs ul{
    font: bold 11px Arial, Verdana, sans-serif;
    margin:0;
    padding:0;
    list-style:none;
    }

    #ddcolortabs li{
    display:inline;
    margin:0 2px 0 0;
    padding:0;
    text-transform:uppercase;
    }


    #ddcolortabs a{
    float:left;
    color: white;
    background: #678b3f url(media/color_tabs_left.gif) no-repeat left top; //do i make another folder on my host then called media and place the two
    margin:0 2px 0 0; //images in there
    padding:0 0 1px 3px;
    text-decoration:none;
    letter-spacing: 1px;
    }

    #ddcolortabs a span{
    float:left;
    display:block;
    background: transparent url(media/color_tabs_right.gif) no-repeat right top;
    padding:4px 9px 2px 6px;
    }

    #ddcolortabs a span{
    float:none;
    }


    #ddcolortabs a:hover{
    background-color: #8cb85c;
    }

    #ddcolortabs a:hover span{
    background-color: #8cb85c;
    }

    #ddcolortabs #current a, #ddcolortabs #current span{ /*currently selected tab*/
    background-color: #8cb85c;
    }

    #ddcolortabsline{
    clear: both;
    padding: 0;
    width: 100%;
    height: 8px;
    line-height: 8px;
    background: #678b3f;
    border-top: 1px solid #fff; /*Remove this to remove border between bar and tabs*/
    }

    </style>



    3) Describe problem:

    do i copy and paste this script into a notepad document and if so what do i call it?

  2. #2
    Join Date
    May 2008
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    where do i put this in my page code

    <div id="ddcolortabs">
    <ul>
    <li style="margin-left: 1px"><a href="http://www.dynamicdrive.com" title="Home"><span>Home</span></a></li>
    <li><a href="http://www.dynamicdrive.com/new.htm" title="New"><span>New</span></a></li>
    <li id="current"><a href="http://www.dynamicdrive.com/revised.htm" title="Revised"><span>Revised</span></a></li>
    <li><a href="http://tools.dynamicdrive.com" title="Tools"><span>Tools</span></a></li>
    <li><a href="http://www.dynamicdrive.com/forums/" title="DHTML Forums"><span>Forums</span></a></li>
    </ul>
    </div>

    <div id="ddcolortabsline">&nbsp;</div>

  3. #3
    Join Date
    May 2008
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    also have been told to include this code

    <script type="text/javascript">
    //SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
    tabdropdown.init("colortab")
    </script>

    to stop the REVISED tab being highlighted

    where do i include this??

    all this i have been trying to only be disappointed

    has anyone got any ideas i was up till 4am trying to get somthing to work and the only thing i kept getting was

    • Home
    • New
    • Revised
    • Tools
    • Forums


    just like the above

    it is driving me mad - any one got any instructions they could give into how to use the tabs

    http://www.dynamicdrive.com/style/cs...olor-tabs/P70/

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
  •