By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

Div Tag Into Table

100+
P: 150
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:#666666;
color:#6699CC;
height:20px;
z-index:1;
position:absolute;
overflow: hidden;
border:2px #2A2A2A solid;
left: 2;
top: 2px;
}
#list:hover {
background:#FF3300;
color:#000000;
height:auto;
}
#list a:hover{
background:#000066;
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:#FFFFFF;}

-->
</style>
</head>
<body>
i want to insert this div tag into table to controll it how?
<div id="list">
<div align="center"><span class="macromedia">Macromedia</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>
May 1 '07 #1
Share this Question
Share on Google+
3 Replies


drhowarddrfine
Expert 5K+
P: 7,435
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
May 1 '07 #2

100+
P: 150
thank you for replaying but im new in html and css and i don't know to choose to my site tables or layers.
May 2 '07 #3

Expert 100+
P: 1,892
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.
May 2 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.