I want to create monopoly board game.
this first part of my design.
top row of the game is like this:
this is css and html part.
when I add street name first col after parking goes down
when I add red box everything broken like this
I use float left , but it wont work is my css wrong? this is my html part:
<div class="top-streets">
<div class="parking">parking</div>
<div class="horizantal">
<div class="price">
220$
</div>
<div class="street-name-top">
Strand
</div>
<div class="red-kart , horizantal-min"/>
</div>
<div class="horizantal">
<div class="price">
220$
</div>
<div class="street-name-top">
Kentaky Avenue
</div>
<div class="red-kart , horizantal-min"/>
</div>
<div class="horizantal">
<div class="price">
220$
</div>
<div class="street-name-top">
FLEET STREET
</div>
<div class="red-kart , horizantal-min"/>
</div>
<div class="horizantal">
<div class="price">
240$
</div>
<div class="street-name-top">
TRAFLEGAR SQUARE
</div>
<div class="red-kart , horizantal-min"/>
</div>
</div>
and this is my css:
.parking
{
width: 150px;
height: 150px;
border: 1px solid #000000;
float: left;
}
.top-streets
{
background-color: aliceblue;
width:850px;
height:180px;
display: inline-block;
}
.horizantal {
background-color: aquamarine;
position: relative;
border: 1px solid #000000;
width: 100px;
height: 150px;
display: inline-block;
/*float: left;*/
text-align:center;
top: 0px;
/*margin-left: 100px;*/
/*vertical-align: top;*/
}
.street-name-top{/* Firefox */
-moz-transform: rotate(180deg);
position: relative;
width: 100px;
height: 50px;
top:60px;
}
.price{/* Firefox */
-moz-transform: rotate(180deg);
top:10px;
position: relative;
text-align:center;
width: 100px;
height: 20px;
}
.horizantal-min {
width: 100px;
height: 20px;
border-top: 2px solid #000000;
position: relative;
}
.red-kart{
background-color: red;
position: absolute;
bottom:0px;
}
whats wrong? I want to be strong in base of web design, and after being strong in concept use helper frameworks. should I use any other way or framework? please help me