how to align multiple div's next to each other?

Posted by Ashok Kumar on Stack Overflow See other posts from Stack Overflow or by Ashok Kumar
Published on 2013-10-25T09:30:54Z Indexed on 2013/10/25 9:54 UTC
Read the original article Hit count: 191

Filed under:
|

I am new to Html,I'm trying to align multiple div's next to each other horizontally. i tried float property and display inline property also, but nothing works correctly.can anyone suggest any methods for it?

my code:

#display2letter
{
width:150px;
height:50px;
background-color:grey;
box: 10px 10px 5px #888888;    
}
#display3letter
{
width:150px;
height:50px;
background-color:blue;
box: 10px 10px 5px #888888;
}
#display4letter
{
width:150px;
height:50px;
background-color:grey;
box: 10px 10px 5px #888888;
}

#one
{
position:fixed;
left:23%;
}
#two
{
position:fixed;
left:23%;
}
#three
{
position:fixed;
left:23%;
}

here is the fiddle

http://jsfiddle.net/pGHS9/1/

© Stack Overflow or respective owner

Related posts about html

Related posts about css