Jump to content

[Help] Web Structure


Recommended Posts

Im trying to learn html5 and css, but now i cant understand how to do the structure of this image.

 

Any1 can explain me?

 

8d15db4a03.png

 

Need to do it only with html5 and css

 

Thanks in advance!

Link to comment
Share on other sites

Something like this:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Just a test... :)</title>
        <style>
            .blocks {
                margin-top: 20px;
                margin-bottom: 20px;
                padding: 10px 0;
                height: 520px;
                background-color: #ccc;
            }
            
            .container {
                margin-right: auto;
                margin-left: auto;
                width: 95%;
                background-color: #aaa;
            }

            #overall-header {
                width: 100%;
                height: 200px;
                background-color: #ccc;
            }
            
            #main-nav {
                float: left;
                margin-right: 2%;
                width: 23%;
            }
            
            #overall-body {
                float: left;
                width: 50%;
            }
            
            #body-header {
                height: 100px;
            }
            
            #body-container {
                margin-top: 10px;
                margin-bottom: 10px;
                height: 300px;
            }
            
            #body-footer {
                height: 100px;
            }
            
            #main-sidebar {
                float: right;
                margin-left: 2%;
                width: 23%;
            }
            
            #overall-footer {
                clear: both;
                width: 100%;
                height: 200px;
                background-color: #ccc;
            }
        </style>
    </head>
    <body>
        <header id="overall-header">
            
        </header>
        <nav id="main-nav" class="blocks">
            
        </nav>
        <section id="overall-body" class="blocks">
            <header id="body-header" class="container">
                
            </header>
            <article id="body-container" class="container">
                
            </article>
            <footer id="body-footer" class="container">
                
            </footer>
        </section>
        <aside id="main-sidebar" class="blocks">
            
        </aside>
        <footer id="overall-footer">
            
        </footer>
    </body>
</html>
Edited by Tessa
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...