HBO Header
Stackoverflow Question.
by Joshua Powell
HTML
<div class="hTitle"><em>Obamacare Made Easy – Get Professional Help at No Extra Cost!</em><span class="x"><strong>X</strong></span></div>
<div class="header">
<div class="wrapper">
<a href="index.php"><img class="logo" src="http://healthbenefitsohio.com/redesign/images/logo.png" alt="OAHU logo" /></a>
<a class="fraud" href="http://insurance.ohio.gov/Newsroom/Pages/05092013ConsumerAlertHealthReform.aspx" target="blank">Fraud Alert<br /><p>Click to learn</p></a>
</div>
</div>
<nav>
<ul>
<li><a class="current" href="index.php">Home</a></li>
<li><a href="consumer.php">Find an Agent</a></li>
<li><a href="resources.php">Resources</a></li>
<li><a href="about.php">About OAHU</a></li>
<li><a href="http://www.ohioahu.org/" target="blank">Agent's Login</a></li>
</ul>
</nav>
CSS
html, body {
margin: 0px;
padding: 0px;
font-family: 'Trebuchet MS';
font-size: 16px;
line-height: 22px;
color: #2b2b2b;
}
/* Main header */
.hTitle {
width: 100%;
background: #3b3b3b;
text-align: center;
color: #fff;
font-size: 20px;
}
.x {
font-size: 20px;
position: absolute;
right: 20px;
cursor: pointer;
}
.header {
width: 100%;
height: 110px;
background: #fff;
border-bottom: 1px solid white;
clear: both;
}
/* Main center styles */
.wrapper {
width: 950px;
margin: 0 auto;
position: relative;
}
/* Logo styles */
.name {
width: 240px;
margin: 0;
text-align: right;
font-size: 24px;
line-height: 26px;
position: relative;
left: 110px;
}
.slogan {
color: #00A0AF;
font-size: 65px;
line-height: 50px;
font-family: "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif;
}
.logo {
display: block;
position: absolute;
opacity: 0.9;
border: 0;
top: 15px;
left: 0;
}
.obama {
color: #2b2b2b;
font-size: 20px;
position: absolute;
top: 90px;
left: 270px;
}
.fraud {
width: 100px;
height: 75px;
background: #0c5b78;
position: absolute;
right: 0;
top: 0;
padding-top: 5px;
display: block;
color: #fff;
font-size: 20px;
line-height: 24px;
text-align: center;
text-decoration: none;
cursor: pointer;
border-top: 5px solid rgba(0, 0, 0, 0.5);
z-index: 1000;
-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
}
.fraud:before {
content: "";
border-right: 50px solid transparent;
border-left: 50px solid transparent;
border-bottom: 15px solid #fff;
position: absolute;
bottom: 0;
left: 0;
}
.fraud:hover {
height: 100px;
background: #0c5b78;
border-radius: 0;
box-shadow: none;
}
.fraud > p {
margin: 0 auto;
width: 70%;
padding: 0;
opacity: 0;
font-size: 14px;
line-height: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.5);
-webkit-transition: all .3s ease;
-moz-transition: all .3s...
JavaScript
$('.x').on('click', function() {
$(this).parent().hide('slow');
});