Results 1 to 2 of 2

Thread: Blue Blocks Menu - positioning?

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

    Default Blue Blocks Menu - positioning?

    I'm working with the code from the Blue Blocks Menu, found at http://www.dynamicdrive.com/style/cs...e-blocks-menu/

    I still have a lot to learn about CSS.

    How do I position the menu on the page? I'm using Dreamweaver 8, but the CSS menu does not show in DW. What if I want to position text to the right of the menu?

    Right now all I can do is put text under the menu.

    The CSS:

    <!-- Source: Dynamic Drive CSS Library -->
    <!-- URL: http://www.dynamicdrive.com/style/ -->

    <style type="text/css">

    #blueblock{
    width: 180px;
    border-right: 1px solid #000;
    padding: 0 0 1em 0;
    margin-bottom: 1em;
    font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif;
    font-size: 90%;
    background-color: #90bade;
    color: #333;
    }

    * html #blueblock{ /*IE 6 only */
    w\idth: 147px; /*Box model bug: 180px minus all left and right paddings for #blueblock */
    }

    #blueblock ul{
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    }

    #blueblock li {
    border-bottom: 1px solid #90bade;
    margin: 0;
    }

    #blueblock li a{
    display: block;
    padding: 5px 5px 5px 8px;
    border-left: 10px solid #1958b7;
    border-right: 10px solid #508fc4;
    background-color: #2175bc;
    color: #fff;
    text-decoration: none;
    width: 100%;
    }

    html>body #blueblock li a{ /*Non IE6 width*/
    width: auto;
    }

    #blueblock li a:hover{
    border-left: 10px solid #1c64d1;
    border-right: 10px solid #5ba3e0;
    background-color: #2586d7;
    color: #fff;
    }

    </style>

    The HTMLL:

    <div id="blueblock">
    <ul>
    <li><a href="http://www.dynamicdrive.com/">Dynamic Drive</a></li>
    <li><a href="http://www.cssdrive.com/">CSS Drive</a></li>
    <li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
    <li><a href="http://tools.dynamicdrive.com/imageoptimizer/">Gif Optimizer</a></li>
    <li><a href="http://tools.dynamicdrive.com/favicon/">Favicon Creator</a></li>
    <li><a href="http://tools.dynamicdrive.com/button/">Button Maker</a></li>
    </ul>
    </div>


    Thanks.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm I'm not quite sure what your question is- are you having trouble getting the menu to show up at all on your page, or adding text following the menu? Please clarify.

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
  •