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
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
© Stack Overflow or respective owner