Hai Friends,
I am designing a CSS based website, Well in that I need to adjust 3 div inside a main div as in the form of a table cell. Like this
====== Parent Div ===================
|||Child Div1 |||--|||Child Div2 |||--|||Child Div3|||
==================================
I had the code like this
CSS
#parent_div{
display:block;
width:900px;
height:200px;
}
#child_div1{
display:inline;
width:300px;
height:200px;
background:url(one.gif) left no-repeat;
}
#child_div2{
display:inline;
width:300px;
height:200px;
background:url(two.gif) left no-repeat;
}
#child_div3{
display:inline;
width:300px;
height:200px;
background:url(three.gif) left no-repeat;
}
html code
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="parent_div">
<div id="child_div1"></div>
<div id="child_div2"></div>
<div id="child_div3"></div>
</div>
</body>
</html>
I tried this code but it doesn't showing anything. Please give me a little help about this issue.
Thanks
Rajeesh