Hello again,
I am running the second head banging problem of the day here, tried for 2 hours without having any success.
So I am in the middle of creating a wrapper that will include the company logo, a search bar and a bunch of hyperlinks. I want to keep these divs inline while at the same time align logo and search bar to the left, align hyperlinks to the right.
Here is what I have so far…
http://www.fuchairs.com/
<!doctype html>
<html>
<head>
<title>Fuchairs</title>
<link rel="stylesheet" type="text/css" href="./css/style.css" />
</head>
<body>
<div class="headerMenu">
<div id="wrapper">
<div class="logo">
<img src="./img/logo_fuchairs.png" />
</div>
<div class="search_box">
<form action="search.php" method="GET" id="search">
<input type="text" name="q" size="60" placeholder="Search..." />
</form>
</div>
<div id="menu">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Sign In</a>
<a href="#">Sign Up</a>
</div>
</div>
</div>
</body>
</html>
@charset "UTF-8";
/* CSS Document */
* {
margin: 0px;
padding: 0px;
font-family: Arial, Helvetica, Sans-serif;
font-size: 12px;
background-color: #eff5f9;
}
.headerMenu{
background-image: url(../img/menu_bg.png);
border-bottom: none;
padding-left: auto;
padding-right: auto;
width: 100%;
}
.headerMenu *{
background-image: url(../img/menu_bg.png);
}
#wrapper{
margin-left: auto;
margin-right: auto;
width: 90%;
padding-top: 0px;
padding-buttom: 0px;
}
#wrapper div{
display: inline-block;
vertical-align: middle;
}
#search input[type="text"]{
background: url(../img/search-icon.png) no-repeat 10px 10px #267bb6;
outline: none;
border: 0 none;
font: bold 12px Arial, Helvetica, Sans-serif;
width: 350px;
padding: 6px 15px 6px 35px;
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
}
#search input[type="text"]:focus{
background: url(../img/search-icon.png) no-repeat 10px 10px #267bb6;
color: #6a6f75;
width: 350px;
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.9) inset;
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.9) inset;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.9) inset;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}
#menu a{
color: #ffffff;
text-decoration: none;
font-size: 14px;
background-repeat: no-repeat;
padding-top: 19px;
padding-bottom: 22px;
padding-left: 10px;
padding-right: 10px;
display: inline-block;
}
#menu a:hover{
background-image: url(../img/menu_bg_hover_over.png);
}