Div Tag Into Table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smartic
    New Member
    • May 2007
    • 150

    Div Tag Into Table

    im having my code by css to make drop down menu but i want to insert my menu into table this is my code :
    <head>
    <title>List</title>
    <style type="text/css">
    <!--
    body {
    margin:0;
    padding:0;
    background-color: #000000;
    }
    #list {
    background:#666 666;
    color:#6699CC;
    height:20px;
    z-index:1;
    position:absolu te;
    overflow: hidden;
    border:2px #2A2A2A solid;
    left: 2;
    top: 2px;
    }
    #list:hover {
    background:#FF3 300;
    color:#000000;
    height:auto;
    }
    #list a:hover{
    background:#000 066;
    display:block;
    }
    #list a{
    color: #FFFFFF;
    text-decoration:none ;
    display:block;
    padding:2px 8px;
    }
    .macromedia {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #FFFFFF;
    background-color: #333333;
    padding: 4px;
    display:block;
    cursor:default;
    font-weight: bold;
    }
    a:link {
    color: #CCCCCC;
    }
    p{font-family: Arial, Helvetica, sans-serif;color:#FF FFFF;}

    -->
    </style>
    </head>
    <body>
    i want to insert this div tag into table to controll it how?
    <div id="list">
    <div align="center"> <span class="macromed ia">Macromedi a</span>
    <a href="#" >Flash</a>
    <a href="#" >Flex</a>
    <a href="#" >Fireworks</a>
    <a href="#" >Freehand</a>
    <a href="#" >Dreamwaver</a> </div>
    </div>
    </body>
    </html>
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Not sure I understand you but I think you are saying you want that div and its contents to be placed inside a table. Do you want each anchor inside its own cell or the whole thing inside one cell?

    Why you would want to do that, I don't know. You should never use tables to layout a web page.

    In any case, that's a fundamental of how tables work and can be easily found on any site that teaches html, such as w3schools.com

    Comment

    • smartic
      New Member
      • May 2007
      • 150

      #3
      thank you for replaying but im new in html and css and i don't know to choose to my site tables or layers.

      Comment

      • AricC
        Recognized Expert Top Contributor
        • Oct 2006
        • 1885

        #4
        Originally posted by smartic
        thank you for replaying but im new in html and css and i don't know to choose to my site tables or layers.
        If you did a drop down with CSS you should have no problem laying your site out with CSS, do a google search for liquid layouts you can find some common layouts and improve upon them or you can create your own. I would stay away from layers.

        Comment

        Working...