I am working on a win8-applike webdesign, and find it quite hard to position the divs properly.
First of all my code an a jsfiddle of how it looks like at the moment:
HTML:
<div id="appWrapper">
<div id="app_logo">
</div>
<div id="app_text">
</div>
<div id="app_login">
</div>
<div id="app_kategories">
</div>
<div id="app_register">
</div>
<div id="app_buy">
</div>
</div>
CSS:
div#app_logo {
float: left;
margin: 0.5em;
height: 15em;
width: 15em;
background-color: #FFD300;
}
div#app_text {
float: left;
margin: 0.5em;
height: 31em;
width: 30em;
background-color: #7109AA;
}
div#app_login {
float: left;
margin: 0.5em;
float: left;
height: 15em;
width: 35em;
background-color: #7109AA;
}
div#app_kategories {
float: bottom;
margin: 0.5em;
height: 15em;
width: 15em;
background-color: #7109AA;
}
div#app_register {
float: left;
margin: 0.5em;
height: 15em;
width: 35em;
background-color: #7109AA;
}
div#app_buy {
float: left;
margin: 0.5em;
height: 15em;
width: 82em;
background-color: #FFD300;
}
http://jsfiddle.net/gGWfr/embedded/result/
so the purple div in the left upper corner which you dont really see is app_kategories
I want to position it under the app_logo
, which is the yellow div on the top left.
I don`t know how to get it there.
What I am asking is for ideas how to make this possible, and I am also wondering if there are better ways of realizing some kind of Win8like designs, because in my version with smaller screens it could look quite badly, I am also thinking about making the scales % and not em.
I found this website http://etchapps.com/ which looks pretty cool, but its not in the source code how they did it.