View Single Post
  #4 (permalink)  
Old 06-24-09, 11:31 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Quote:
Originally Posted by macintosh View Post
thanks for your reply, but i have seen something like
Code:
.main {
width:200px;
height:200px;
border:1px solid #f00;
}

.main info{
 width:100px;
 height:100px;
 border:1px solid #000;
 }
Is it correct, if yes, how can i use this in html.
thanks.
Your kinda right, but I think it will work this way:
HTML Code:
<html>
<head>
<title></title>
<style>
.main
{
 width:200px;
 height:200px;
 border:1px solid #f00;
 }
.main .info
{
 width:100px;
 height:100px;
 border:1px solid #000;
 }
</style>
</head>
<body>
<div class="main">
 <div class="info"></div>
</div>
</body>
</html>
__________________
Jerry Broughton
Reply With Quote