Minggu, 27 Februari 2011

Studi Kasus Modul 4 : Membuat Layout

Berikut ini adalah tags style CSS untuk membuat desain layout HTML5 :


    body {  
    margin: 10px auto;  
    width: 1200px;  
    }  
    header,nav,section,footer{ 
    display:block; 
    border:3px solid blue; 
     } 
     
    header{ 
    height:100px; 
    } 
     
    nav{ 
    padding : 5px; 
    height:20px;  
    } 
     
    section{ 
    height:500px; 
    } 
     
    article{ 
    float:left; 
    margin-top:20px; 
    margin-right: 20x; 
    margin-left: 20px; 
    width: 600px; 
    height:450px; 
    border:1px dashed black; 
    } 
     
    aside{ 
    float:left; 
    margin-top:20px; 
    margin-right:20x; 
    margin-left:40px; 
    width: 520px; 
    height:450px; 
    border: 1px dashed black; 
    } 
     
    button{ 
    margin-right:20px; 
    border: 1px solid #000; 
    border-radius: 50px; 
    -moz-border-radius: 50px; 
    background-color : aqua; 
    color : black; 
    float:right; 
    } 
     
    footer{ 
    clear:both; 
    height:30px; 
    } 

Dan untuk script HTMLnya sebagai berikut :
    <!DOCTYPE HTML> 
    <html lang="en"> 
    <head> 
    <title>Desain Layout HTML5</title> 
    <link rel="stylesheet" href="study-kasus4.css" type="text/css" /> 
    </head> 
    <body> 
    <header> 
    HEADER 
    </header> 
    <nav> 
    NAV BAR 
    <button style="submit"><b>News</b></button> 
    <button style="submit"><b>Email</b></button> 
    <button style="submit"><b>About me</b></button> 
    <button style="submit"><b>Home</b></button> 
    </nav> 
    <section> 
    <article> 
    ARTICLE 
    </article> 
    <aside> 
    ASIDE 
    </aside> 
    SECTION 
    </section> 
    <footer> 
    FOOTER 
    </footer> 
    </body> 
    </html> 


Berikut adalah screenshotnya :

0 komentar:

Posting Komentar

 

time2life © 2008 . Design By: SkinCorner