Jump to content

Recommended Posts

Posted

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!

Posted (edited)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...