So I am having some issues with my divs are not correctly aligned, which will need to be fit pretty good. I am using pug as a template.
PUG:
body
.container
.header
include game_components/header.pug
.game-row
include game_components/game-row.pug
.footer
include game_components/footer.pug
Header:
doctype html
html(lang="en")
.logo
span PLH
.user-info
span PLH
Game-Row:
doctype html
html(lang="en")
.side-bar
span PLH
.action-scene
span PLH
Footer:
doctype html
html(lang="en")
.chat
span Chat PLH
CSS:
* {
background-color: grey;
border-radius: 10px;
}
.container {
width: 80%;
margin: 1px;
margin: auto;
}
.header, .game-row, .footer {
display: block;
}
.logo, .user-info, .side-bar, .action-scene, .chat {
display: inline-block;
vertical-align: top;
padding: 10px;
margin: 0.2em;
border: 1px solid gold;
}
.logo, .user-info {
height: 5em;
}
.logo, .side-bar {
width: 10%;
}
.user-info, .action-scene {
width: 85.45%;
}
.side-bar, .action-scene {
height: 20em;
}
.chat {
width: 100%;
height: 15em;
}
Picture of what it currently looks like: http://prntscr.com/lvblcb (LightShot Link)
If you look you can see the chat fits it perfectly, as it should. But I am having trouble the first two rows fitting in nicely.