HTML
Código:
<!DOCTYPE html> <html lang="en"> <head> <meta charset=utf-8"> <meta name="author" content="Daniel Cueto Serrano"> <title>index</title> <!-- Date: 2013-09-13 --> <link rel="stylesheet" href="/static/style.css"> </head> <body> <header> <a href="#"><img id="logo" src="/static/LogoGDGT.png" /></a> <h1>GDGTarragona</h1> <nav> <ul> <li>Eventos</li> <li>Foro</li> <li>Unete</li> <li>Quienes somos</li> <li>Contacta</li> </ul> </nav> <a href="http://www.facebook.com/GDGTarragona"><img class="netLogo" src="/static/white_facebook.png" /></a> <a href="http://www.facebook.com/GDGTarragona"><img class="netLogo" src="/static/white_facebook_shadow.png" /></a> <header> <section class="white-section"> <section id="recent-section"> <article class="recent-article" align="center"> <h1>Publicaciones recientes</h1> </article> <article class="recent-article" align="center"> <h1>Eventos recientes</h1> </article> </section> </section> </body> </html>
CSS
Código:
@font-face { font-family:Raleway; src: url("http://www.google.com/fonts/specimen/Raleway"); src: url() font-family:Raleway-Heavy; src: url("/Raleway/Raleway-Heavy.otf") format("otf"); } html, body{ margin:0; padding:0; background: url(http://threeforfive.codeschool.com/assets/bg.png) repeat center top; } header{ background: #8A0808; } header h1{ float:left; font-size:15px; margin-left:20px; margin-top:25px; color:white; font-family:Arial; } #logo{ width:70px; height:70px; padding:0; margin:0; } nav{ color:white; display:inline-block; margin-top:10px; margin-left:100px; position:absolute; font-family:Raleway; } nav ul li{ display:inline; margin-left:50px; } .netLogo{ float:right; margin-top:10px; margin-right:10px; height:54px; width:54px; } .white-section{ background:white; height:400px; } .recent-article{ text-align:center; color:black; display:inline-block; border:1px solid black; width:400px; height:300px } .recent-article h1{ text-align:center; color:black; } #recent-section{ margin-left:200px; position:absolute; }