Hi,everyone!
I want to put two divs in one line,but my code didn't work...
here is my code:
exp.html
exp.css
I want to put l1 and l2 in one line.
any suggestion is appreciated.
I want to put two divs in one line,but my code didn't work...
here is my code:
exp.html
Code:
<html> <link rel="stylesheet" type="text/css" href="exp.css"> <head> </head> <body> <div id="headerimg"> <div id="logo"> <div id="l1">l1 <div id="l2">l2</div> </div> </div> <div id="title">gbstack</div> </div> </body> </html>
Code:
#headerimg{
width:100%;
}
#logo{
width:30%;
background:red;
}
#l1{
width:50%;
background:#aaaaaa;
}
#l2{
width:50%;
background:#aa00cc;
}
#title{
width:70%;
background:green;
}
any suggestion is appreciated.
Comment