I have a red background , which I formatted in body , and I have a white background content. In the <h2>
tag with the following text whats language do you want is in there, and is not formatted by white
, why?
HTML
<body>
<main role="main" class="bgfo">
<div class="intro-lang">
<header class="lang-header">
<div class="logo">
<!--
<h1>Free time</h1>
<span>o portal da descriçao</span>
-->
</div>
</header>
<!-- BEGINNING QUESTION LANGS -->
<h2 class="question-title">What language do you want ?</h2>
<nav class="lang-nav">
<ul>
<li><a href="#">Portuguese</a></li>
<li><a href="#">English</a></li>
<li><a href="#">Spanish</a></li>
</ul>
</nav>
<!-- END QUESTION LANGS -->
<footer class="lang-footer clear">
<small>Like faceboook / Twitter / G+</small>
</footer>
</div>
</main>
</body>
CSS
*{margin:0; padding:0; font-family: 'arial'; background: red;}
a{text-decoration: none;}
/* Fonts*/
.clear{clear: both;}
.intro-lang{
width: 800px;
margin: 150px auto;
position: relative;
background: white;
}
.lang-header{
margin-bottom: 80px;
}
.question-title{
font-family:'arial';
font-size: 40px;
letter-spacing: 4px;
text-align: center;
color: #402E15;
}
.lang-nav {
width: 500px;
margin: 30px auto;
}
.lang-nav li{
float: left;
margin: 20px;
}
.lang-nav a{
background: #402E15;
padding: 10px;
color: #FFB853;
font-size: 20px;
}
.lang-nav a:hover{
background: brown;
color: white;
}
.lang-footer{
text-align: center;
margin-top: 200px;
}