Drop-down only works in quirks mode - css

I have a drop-down-menu that only seems to work when IE9 and under is in quirks mode. I have no heights declared. If there's a width declared it's set to 100% or auto.
In standards mode, the menu appears but only a the very top is visible as it gets cutoff by it's parent container.
HTML
<div id="secondary-nav" class="nav" role="toolbar" aria-label="User Tools">
<div class="wrapper">
<ul class="group">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>4</li>
<li>5</li>
</ul>
</div><!-- /.wrapper -->
</div><!-- /#secondary-nav -->
<div id="page-top" class="group">
<div class="wrapper">
<div id="branding" class="hgroup group">
<h1 class="logo">Logo</h1>
</div>
<div id="menu-button"></div>
<div id="global-nav" class="nav" role="navigation" aria-label="Main Site Navigation">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li class="expand group">Log-in
<ul class="user-menu sub-nav group" role="menu" aria-label="User Menu">
<li class="user-login group">' . render(drupal_get_form('user_login_block')) . ' ' . fboauth_action_display('connect') . '</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
CSS
/* Header
-------------------------------------------------- */
#page-top {
border-top:2px solid #32568F;
color:#fff;
width:100%;
overflow:visible;
z-index:9999;
background: #000c2d;
background: -moz-linear-gradient(top, #000c2d 0%, #172842 10%, #172842 60%, #193154 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#000c2d), color-stop(10%,#172842), color-stop(60%,#172842), color-stop(100%,#193154));
background: -webkit-linear-gradient(top, #000c2d 0%,#172842 10%,#172842 60%,#193154 100%);
background: -o-linear-gradient(top, #000c2d 0%,#172842 10%,#172842 60%,#193154 100%);
background: -ms-linear-gradient(top, #000c2d 0%,#172842 10%,#172842 60%,#193154 100%);
background: linear-gradient(to bottom, #000c2d 0%,#172842 10%,#172842 60%,#193154 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000c2d', endColorstr='#193154',GradientType=0 );
}
#page-top .wrapper, #secondary-nav .wrapper { /* Added for old theme consistency, remove! */
max-width: 960px;
}
#branding {
display:block;
padding-top:.9em;
margin-left: .5em;
line-height:2em;
vertical-align:middle;
float: left;
}
#branding h1.logo, .footer-logo {
display:inline-block;
margin:0;
margin-right: .15em;
padding:0;
width:24px;
height:27px;
float:left;
text-indent:100%;
overflow:hidden;
background:url(../images/logo#2x.png) no-repeat left top;
vertical-align:bottom;
background-size: auto 100%;
}
#branding h1.logo a{
display:block;
}
#branding p {
display:block;
font-family:'MuseoSlab','Times New Roman',serif;
font-size:1.2em;
font-weight:500;
float:left;
margin-left:.25em;
padding:0;
color: #fff;
margin: 0;
padding: 0;
}
#branding p a {
color: #fff;
}
#branding p a:hover {
color: #a1c336;
text-decoration: none;
}
a.skip {
position:absolute;
left:-999em;
}
/* Primary Navigation
-------------------------------------------------- */
/* NEW HEADER! */
#global-header * {
box-sizing:border-box;
-moz-box-sizing: border-box;
}
html {
font-size:100%;
}
body {
margin:0 auto;
font:1em/1 Helvetica,Arial,sans-serif;
width:100%;
}
#global-header {
width:100%;
}
.wrapper {
margin:0 auto;
padding: 0 1em;
max-width:960px;
}
.nav ul {
list-style:none;
}
.nav ul > li {
display:block;
float:left;
}
.nav li a {
display:block;
}
[role=toolbar] {
display:block;
margin:0 auto;
width:100%;
background:url(grey_diagnol.png) repeat;
overflow:hidden;
}
[role=toolbar] ul {
display:block;
margin:0 auto;
font-size:.75em;
float:right;
}
[role=toolbar] li {
margin:.5em 0;
}
[role=toolbar] li:not(:last-child) {
border-right:1px solid #436394;
}
[role=toolbar] li a {
color:#436394;
text-decoration:none;
padding:.25em .72em;
}
[role=toolbar] li.citypicker a {
display: inline-block;
padding-left: 0;
}
[role=toolbar] a.ddlocation {
padding-right: .25em;
}
a.choose-location {
font-size: .5em;
color: #efefef;
text-transform: uppercase;
}
[role=toolbar] a:hover {
color:#a1c336;
}
#page-top {
border-top:2px solid #32568F;
background-color:#172842;
color:#fff;
width:100%;
overflow:visible;
z-index: 9999;
}
.fixed {
position: fixed;
top: 0;
box-shadow: 0px 1px 8px #222;
}
#branding {
display:inline;
float:left;
padding-top:.9em;
line-height:2em;
vertical-align:middle;
}
#branding h1.logo {
display:inline-block;
margin:0;
padding:0;
width:124px;
height:27px;
float:left;
text-indent:100%;
overflow:hidden;
background:url(logo.png) no-repeat left top;
vertical-align:bottom;
}
#branding p {
display:block;
font-family:'MuseoSlab500',Georgia,'Times New Roman',serif;
font-size:1.2em;
font-weight:500;
float:left;
margin-left:.25em;
padding:0;
color: #fff;
}
#branding p a {
color: #fff;
}
#branding p a:hover {
color: #a1c336;
text-decoration: none;
}
[role=navigation] ul {
display:block;
margin:0;
padding:0;
float:right;
}
[role=navigation] li {
display:block;
position:relative;
margin-bottom:-5px;
font-family:'MuseoSlab500',Georgia,'Times New Roman',serif;
font-weight:500;
font-size:1.2em;
text-transform:lowercase;
}
[role=navigation] li:hover {
background:#b4df5b;
background:-moz-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#a1c336),color-stop(100%,#88a13d));
background:-webkit-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:-o-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:-ms-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:linear-gradient(to bottom,#a1c336 0%,#88a13d 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#a1c336',endColorstr='#88a13d',GradientType=0);
box-shadow:0 1px 4px #000;
text-shadow:1px 1px 1px #3D4427;
color:#fff;
}
.expand-hover-js {
background:#b4df5b;
background:-moz-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#a1c336),color-stop(100%,#88a13d));
background:-webkit-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:-o-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:-ms-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:linear-gradient(to bottom,#a1c336 0%,#88a13d 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#a1c336',endColorstr='#88a13d',GradientType=0);
box-shadow:0 1px 4px #000;
text-shadow:1px 1px 1px #3D4427;
color:#fff;
}
[role=navigation] a {
color:#fff;
text-decoration:none;
padding:1em;
}
[role=navigation] li.expand a {
vertical-align: bottom;
}
[role=navigation] .user-name {
display: inline-block;
position: relative;
max-width: 16em;
overflow: hidden;
font:.64em Helvetica,Arial,sans-serif;
color:#a2bf39;
text-transform:uppercase;
text-overflow: ellipsis;
text-shadow:none;
vertical-align: baseline;
}
[role=navigation] li:hover .user-name {
color:#172842;
}
.user-name-hover-js {
color:#172842 !important;
}
.message-count {
display: block;
position: absolute;
top: 0;
right: 0;
box-shadow: 0px 1px 4px #222;
border: 1px solid #172940;
border-radius: 50px;
padding: .25em .5em;
background-color: #d52424;
font: .62em Helvetica, Arial, sans-serif;
font-weight: bold;
color: white;
cursor: default;
}
/*
.message-count:hover {
background-color: red;
border: 2px solid white;
box-shadow: 0px 1px 4px white;
}
*/
[role=navigation] li ul.sub-nav {
display:none;
position:absolute;
top:2.7em;
left:-4em;
width: auto;
z-index: 9999;
box-shadow:0 1px 8px rgba(23,40,66,.5);
border-right:1px solid #172842;
border-bottom:1px solid #172842;
border-left:1px solid #172842;
background-color:#ededf4;
overflow: hidden;
}
.sub-nav li {
float:none;
display:block;
font-size:14px;
font-size:.82rem;
font-family:Helvetica,Arial,sans-serif;
font-weight:400;
width: 100%;
margin:0;
text-shadow:none;
position: relative;
}
.sub-nav li:hover {
background:#a1c336;
text-shadow:none;
box-shadow:none;
}
.sub-nav li a {
display: block;
padding:.75em 1em;
color:#172842;
text-transform: none;
}
.sub-nav li a:hover {
color:#fff;
}
.sub-nav li a.has-notify {
display: block;
padding-right: 0;
float: left;
}
.sub-nav li .menu-notify {
display: block;
float: right;
padding:1.5em .5em 0 .5em;
font-size: .72em;
color:#436394;
width: auto;
}
.sub-nav li:hover .menu-notify {
color: #fff;
}
.sub-nav .menu-notify a {
display: inline;
padding: 0;
color:#436394;
}
.sub-nav .menu-notify a:hover {
color:#436394;
text-decoration: underline;
}
/* Login Forms */
.sub-nav li.user-login {
padding: 1em;
display: block;
}
.sub-nav li.user-login:hover,
[role=navigation] li ul.sub-nav li.user-login:hover{
background-color: #ededf4 !important;
background:#ededf4;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
filter: none;
box-shadow: 0;
text-shadow: 0;
}
.not-front #user-login-form, #user-login {
margin-top: 1em;
}
#user-login {
margin: 1em;
display: block;
overflow: hidden;
padding: .5em;
}
.not-front #user-login-form input, #user-login input {
padding: .5em;
font-size: 1em;
margin-bottom: .5em;
display: block;
width: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
#user-login-form div, #user-login div {
display: block;
}
.not-front #user-login-form label, #user-login label {
color: #222;
text-transform: none;
display: block;
}
#user-login label {
margin-top: 1em;
}
#user-login .description {
font-size: .75em;
}
.not-front #user-login-form .item-list, #user-login .item-list {
margin: .5em 0;
display: block;
overflow: hidden;
}
.not-front #user-login-form .item-list li, #user-login .item-list li {
padding:0;
font-size: .75em
}
.not-front #user-login-form .item-list a, #user-login .item-list a {
padding: .5em 0 0 0;
}
.not-front #user-login-form .item-list a:hover, #user-login .item-list a:hover {
background-color: #EDEDF4;
color: #A2BF39;
}
.not-front #user-login-form input[type=submit], #user-login input[type=submit] {
background:#a1c336;
background:-moz-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#a1c336),color-stop(100%,#88a13d));
background:-webkit-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:-o-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:-ms-linear-gradient(top,#a1c336 0%,#88a13d 100%);
background:linear-gradient(to bottom,#a1c336 0%,#88a13d 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#a1c336',endColorstr='#88a13d',GradientType=0);
font:14px MuseoSlab500,Georgia,Times New Roman,serif;
text-shadow:1px 1px 2px #737863;
color:#fff;
padding:.5em 2em;
box-shadow:1px 1px 3px 0 #737863;
border:none;
cursor:pointer;
display: block;
margin: .5em 0;
}
#user-login input {
width: auto;
}
.not-front #user-login-form input[type=submit]:hover, #user-login input[type=submit]:hover {
background: #b9d955;
background: -moz-linear-gradient(top, #b9d955 0%, #a0b858 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b9d955), color-stop(100%,#a0b858));
background: -webkit-linear-gradient(top, #b9d955 0%,#a0b858 100%);
background: -o-linear-gradient(top, #b9d955 0%,#a0b858 100%);
background: -ms-linear-gradient(top, #b9d955 0%,#a0b858 100%);
background: linear-gradient(to bottom, #b9d955 0%,#a0b858 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b9d955', endColorstr='#a0b858',GradientType=0 );
text-shadow:1px 1px 2px #ccc;
text-decoration: none;
}
.not-front a.facebook-action-connect {
background: none !important;
height: 21px;
padding: 0 !important;
width: 89px;
display: block;
float: none !important;
margin-top: 1em !important;
}

It looks like the problem is the use of overflow:hidden which will hide everything contained in those tags, including your drop downs.

Related

CSS is making the menu bar shrink

So I have CSS for my register/login and CSS for my menu bar that is horizontal. On the pages that have the register.css, the menu bar seems to shrink.
On pages withtout the register.css, the menu bar is fine.
Why is this? What do I need to change?
menu.css
body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, form, fieldset, input, textarea, blockquote {
margin: 0; padding: 0; border: 0;
}
body {
background: #0ca3d2;
font-family: Helvetica, sans-serif; font-size: 16px; line-height: 24px;
}
nav {
margin: 5px auto;
text-align: center;
}
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
nav ul {
background: #efefef;
background: linear-gradient(top, #efefef 0%, #bbbbbb 100%);
background: -moz-linear-gradient(top, #efefef 0%, #bbbbbb 100%);
background: -webkit-linear-gradient(top, #efefef 0%,#bbbbbb 100%);
box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
border-radius: 10px;
list-style: none;
position: relative;
display: inline-table;
}
nav ul:after {
content: ""; clear: both; display: block;
}
nav ul li {
float: left;
}
nav ul li:hover {
background: #4b545f;
background: linear-gradient(top, #4f5964 0%, #5f6975 40%);
background: -moz-linear-gradient(top, #4f5964 0%, #5f6975 40%);
background: -webkit-linear-gradient(top, #4f5964 0%,#5f6975 40%);
}
nav ul li:hover a {
color: #fff;
}
nav ul li a {
display: block; padding: 10px 30px;
color: #757575; text-decoration: none;
}
nav ul ul {
background: #5f6975; border-radius: 0px; padding: 0;
position: absolute; top: 100%;
}
nav ul ul li {
float: none;
border-top: 1px solid #6b727c;
border-bottom: 1px solid #575f6a; position: relative;
}
nav ul ul li a {
padding: 5px 20px;
color: #fff;
}
nav ul ul li a:hover {
background: #4b545f;
}
nav ul ul ul {
position: absolute; left: 100%; top:0;
}
register.css/login.css
body {
font: 13px/20px 'Lucida Grande', Tahoma, Verdana, sans-serif;
color: #404040;
background: #0ca3d2;
}
.container {
margin: 80px auto;
margin-left: 425px;
margin-top: 90px;
width: 600px;
}
.register {
position:relative;
margin: 20px auto;
padding: 20px 20px 20px;
width: 250px;
background: white;
border-radius: 3px;
box-shadow: 0 0 200px rgba(white, .5), 0 1px 2px rgba(black, .3));
&:before {
content: '';
position: absolute;
top: -8px; right: -8px; bottom: -8px; left: -8px;
z-index: -1;
background: rgba(black, .08);
border-radius: 4px;
}
h1 {
margin: -20px -20px 21px;
line-height: 40px;
font-size: 15px;
font-weight: bold;
color: #555;
text-align: center;
text-shadow: 0 1px white;
background: #f3f3f3;
border-bottom: 1px solid #cfcfcf;
border-radius: 3px 3px 0 0;
linear-gradient:top, whiteffd, #eef2f5;
box-shadow:0 1px #f5f5f5;
}
p { margin: 20px 0 0; }
p:first-child { margin-top: 0; }
input[type=number], input[type=password], input[type=tel], input[type=email], input[type=date], input[type=number] { width: 278px; }
.submit { text-align: center; }
}
:-moz-placeholder {
color: #c9c9c9 !important;
font-size: 13px;
}
::-webkit-input-placeholder {
color: #ccc;
font-size: 13px;
}
input {
font-family: 'Lucida Grande', Tahoma, Verdana, sans-serif;
font-size: 14px;
}
input[type=text], input[type=number], input[type=password], input[type=tel], input[type=email], input[type=date], input[type=number] {
margin: 5px;
padding: 0 10px;
padding-left: 10px;
width: 200px;
height: 34px;
color: #404040;
background: white;
border: 1px solid;
border-color: #c4c4c4 #d1d1d1 #d4d4d4;
border-radius: 2px;
outline: 5px solid #eff4f7;
&:focus {
border-color: #7dc9e2;
outline-color: #dceefc;
outline-offset: 0; // WebKit sets this to -1 by default
}
}
input[type=submit] {
padding: 0 18px;
height: 29px;
font-size: 12px;
font-weight: bold;
color: #527881;
text-shadow: 0 1px #e3f1f1;
background: #cde5ef;
border: 1px solid;
border-color: #b4ccce #b3c0c8 #9eb9c2;
border-radius: 16px;
outline: 0;
#include box-sizing(content-box); // Firefox sets this to border-box by default
#include linear-gradient(top, #edf5f8, #cde5ef);
#include box-shadow(inset 0 1px white, 0 1px 2px rgba(black, .15));
&:active {
background: #cde5ef;
border-color: #9eb9c2 #b3c0c8 #b4ccce;
#include box-shadow(inset 0 0 3px rgba(black, .2));
}
}
.lt-ie9 {
input[type=text], input[type=password] { line-height: 34px; }
}
UPDATE
I've added the previews below:
Normal Menu
Shrinked Menu
RELEVANT HTML:
<?php
include("menu_admin.php");
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Register User</title>
<link rel="stylesheet" type="text/css" href="register.css">
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<section class="container">
<div class="register">
<h1>Register Cadet</h1>
<form action="process_register.php" method="POST"/>
<div class="help-tip">
<p>Enter a suitable ID with only numbers. Create a strong password and enter it again</p>
</div>
<br>
<p><input type="number" name="ID" id="ID" placeholder="Cadet_ID*" autofocus required></p>
<br>
<p><input type="password" name="Password" id="Password" placeholder="Password*" required></p>
<br>
<p><input type="password" name="Password_2" id="Password_2" placeholder="Re-enter Password*" required></p>
<br>
<p>
Status*
<select name="Status" id="Status">
<option value="0">User</option>
<required>
</select>
</p>
<br>
<p class="submit"><input type="submit" name="commit" value="Next"></p>
</form>
</body>
</html>

Blogger css stylesheet doesn't work unless called using an external url

Recently, I made a blog on blogger but I found a problem with the Css stylesheet.
when I put this Css stylesheet inside b:skin tag:
#import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:400);
#import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:700);
a img {border: none;}
a, a:visited{ color:#1E6FE0; text-decoration:underline; }
a:hover{ color:#FC7F01; text-decoration:underline; }
/****** header area *******/
.header_container {background:transparent !important;}
.header_nav { float:left; list-style-type:none; width:744px; height:31px; margin:36px 0 0 0; padding:0; background-image:url('http://www.example.com/short_navbar.png'); background-repeat:no-repeat !important;}
.header_nav div { margin:0 5px 0 5px; }
.header_nav li { float:left; }
.header_nav a { display:block; color:white; text-decoration:none; font-size:12px; line-height:30px; padding:0 7px 0 7px; font-weight:bold; text-shadow:0 2px 2px rgba(0, 0, 0, 0.3); font-family:Arial,Verdana,Helvetica,sans-serif;}
.header_nav_seleced, .header_nav a:hover { background-image:url('http://www.example.com/ttr-sprites.png'); background-repeat:repeat-x !important; padding-bottom:11px; background-position:0 -25px; }
.header_nav li { position:relative; }
.header_nav li ul { display:none; position:absolute; top:30px; left:0; padding:0; }
.header_nav li ul li { list-style:none; }
.header_nav li ul a { display:block; text-decoration:none; width:78px; background:#b95806; border-bottom:1px solid black; }
.header_nav li ul a:hover { display:block; text-decoration:none; background:#e8b866; background-image:none; min-width:56px; padding:0 7px 0 7px; }
.header_nav li:hover ul { display:block; }
.header_search_form { top:3px; left:-270px; }
.header_search_form_js { position:absolute; left: -272px; display:none; }
.header_search_form .search_bar { background-image:none; background-color:#fff; border: 1px solid #333; color:#333; font-size:12px; width: 308px; height:17px; padding:4px; -moz-border-radius: 3px; border-radius: 3px; }
.header_search_form #q { margin:0; }
.header_mousetrack { color:white; font-size:11px; font-weight:bold; margin:7px 0 11px 14px; float:left; }
.header_mousetrack a, .header_mousetrack a:visited { color:white; }
.new_portal_footer a, .new_portal_footer:visited, .new_portal_footer a:hover
.header_mousetrack a:hover { color:white; text-decoration:none; }
.header_top_ad { margin:0 0 0 0; }
.header_logo { float:left; margin:0 0 0 5px; _margin:0 0 0 0; }
.top_container {background: transparent !important; width: 988px !important; }
.header_nav_bar {display:inline;}
.ad5_container { background-image:url('http://www.example.com/black_border-2.png'); background-repeat:no-repeat !important; padding: 15px 0 0 15px; margin: 0 0 -30px -15px; height:330px; width:330px; _height:300px; _width:300px; _background:none;}
/* New header 2013 */
.hdr_top_left { width: 254px; padding-top: 18px; float: left; text-align: left; }
.hdr_nav_bar { position: relative; }
.hdr_nav_selected, .hdr_nav a:hover { background: #338CD8; }
.hdr_mag_outer { display: inline-block; margin-top: 4px; }
.hdr_search_form { position: absolute; top: 60px; right: 10px; display: none; .margin-top: -55px; }
.hdr_search_bar { border-radius: 8px; float: left; height: 24px; margin-top: 5px; width: 320px; background: transparent url(http://www.example.com/ttr_new_search_2.jpg) no-repeat scroll 0 0; }
.hdr_search_bar input { border: none; margin: 3px 5px 0; width: 305px; }
.hdr_search_bar input:focus { outline-width: 0; }
.hdr_top_ad { margin-top: 20px; }
.hdr_nav_outer { display: table; border: 0; margin: 18px 0 0 12px; min-width: 718px; background-color: #282828; float: left; }
.hdr_nav { display: table-row; overflow: hidden; margin: 0; padding: 0; min-width: 718px; list-style-type: none; }
.hdr_nav li.hdr_search_box { line-height: 1; vertical-align: top; }
.hdr_nav .hdr_search_box a { padding-top: 9px; padding-bottom: 16px; }
.hdr_nav li:hover { background: #338CD8; }
.hdr_nav li { line-height: 42px; display: table-cell; border: 0; margin: 0; padding: 0; vertical-align: middle; text-align: center; .float: left; }
.hdr_nav li, .hdr_nav2 li a { padding-bottom: 0; }
.hdr_nav li a, .hdr_nav li2 a:visited { padding: 0 7px; white-space: nowrap; color: white; display: inline-block; font-weight: normal; text-decoration: none; font-family: 'Roboto Condensed', arial, helvetica, sans-serif; font-size: 15px; text-shadow: none; .padding: 0 10px; }
.hdr_nav .hdr_search_box img { display: inline-block; width: 15px; height: 15px; margin-top: 4px; background: transparent url(http://www.example.com/mag-glass-dark.gif) no-repeat scroll center 0; }
.sprite{ width:170px;height:56px; background:url(http://www.example.com/ttr-sprites.png);}
.checkmark{width:17px;height:12px;background-position:0 0; margin-left:auto;margin-right:auto;}
.star_full_blue{ width:13px;height:14px; background-position:-18px 0px; float:left;}
.star_half_blue{ width:13px;height:14px; background-position:-31px 0px; float:left;}
.star_empty_blue{ width:13px;height:14px; background-position:-45px 0px; float:left;}
.star_full_gold{ width:13px;height:14px; background-position:-60px 0px; float:left;}
.star_half_gold{ width:13px;height:14px; background-position:-74px 0px; float:left;}
.star_empty_gold{ width:13px;height:14px; background-position:-87px 0px; float:left;}
.magnify_glass{ width:16px;height:18px; background-position:-101px 0px;}
.mailing_list_submit_button{width:60px;height:25px;background-position:-117px 0px;}
.tan_bar{width:32px;height:32px; background-position:-114px 32px;}
.right_ad_scroller {width: 300px; margin: 10px;}
/****** footer area *******/
.footer{ width:917px; float:left; padding:30px 30px 30px 30px; background-color:#000; color:#ccc; margin:0 0 0 2px; overflow:hidden;}
.footer a.footer-links{ text-align:left; display:block; float:left; width:160px; color:#ccc; text-decoration:none; line-height:30px; font-weight:100; border-top-style:solid; border-top-color:#474747; border-top-width:thin; }
.footer a.footer-links:hover{ color:#fff; }
.footer-headers{ font-size:20px; display:block; float:left; color:#fff; text-decoration:none; line-height:50px; font-weight:lighter; letter-spacing:0.05em; }
.footer-lcolumn{ font-size:14px; letter-spacing:0px; width:160px; margin:0 30px 0 0; float:left; }
.footer-rcolumn{ font-size:14px; letter-spacing:0px; width:300px; float:right; }
.footer-bar{ display:block; width:300px; .width:303px; margin:0 0 20px 0; float:right; font-size:12px; }
.footer .newsletter-input{ display:block; font-size:16px; color:#999; width:212px; height:28px; line-height:18px; float:left; padding:0 5px 0 5px; margin:0 2px 0 0; border:none; }
.footer a.footer-button:hover{ opacity:0.9; }
.footer-button:hover{ opacity:0.9; }
footer { clear:both; text-align: center; }
.new_portal_footer ul {
list-style-type: none;
margin-bottom: 10px;
margin-top: 10px;
padding-left: 0px;
font-size: 8px;
}
.new_portal_footer {
background-color: white;
color: white;
font-size: 10px;
}
.popcontentrow {
width: 100%;
clear: both;
float: left;
background-color: #FFFFFF;
}
#popcontent {
position: absolute;
border: 0px;
display: none;
background-color: #FFFFFF;
z-index: 501;
}
.new_portal_footer img { margin-top:0 !important; }
.site-tools { margin:35px auto 40px; padding:10px 0; width:68%; text-align:center; border-top:2px solid #ccc; border-bottom:2px solid #ccc; clear:both; }
.site-tools a { margin:0 15px; padding:0; position:relative; width:80px; height:75px; overflow: hidden; display: inline-block; opacity:1; -webkit-transition: opacity 0.3s ease-in-out; -moz-transition: opacity 0.3s ease-in-out; -o-transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out; }
.site-tools a:hover { opacity:.6; }
.site-tools img { position: relative; }
.site-tools img.newsletter { }
.site-tools img.staff-index { top:-72px; }
.site-tools img.mobile { top:-152px; }
.site-tools img.contact-us { top:-222px; }
.site-index { color:#fff; background:#000; .display:block !important; }
.footer-wrap { margin:0 auto; padding:70px 0; width:974px; text-align: left; background:#000; }
.footer-toggle { clear: both; background:#fff; text-align: center; border-bottom:1px solid #000; line-height:20px; }
.footer-toggle span { padding:8px 39px 4px 34px; background:#000 url('http://www.example.com/sprite-footer-icons.gif') no-repeat -190px 13px; font-size:1.6em; cursor:pointer; }
.links { margin:0 15px 0 15px; float:left; width:165px; }
.links li { font-size:1.6em; line-height:36px; border-top:1px solid #333; }
.links li a:hover { text-decoration: underline; }
.links li.title, .nl-signup .title { margin-bottom:20px; position:relative; border-top:none; height:28px; width:188px; overflow: hidden; line-height:48px; }
.nl-signup .title { width:224px; }
li.title img, img.join { position:relative; }
li.title img.company { top:0; }
li.title img.network { top :-42px; }
li.title img.footer-categories { top: -82px; }
li.title img.follow-us { top: -122px;}
.title img.join { top: -166px; }
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
.footer-tools { margin:10px 0 0 70px; float:left; width:318px; }
.footer-tools .links { margin:0 0 60px; width:318px; }
.footer-tools .links li { border-top:none; float:left; }
.footer-tools .links li.title { float:none; }
.footer-tools li a.rss, .footer-tools li a.fbook, .footer-tools li a.gplus, .footer-tools li a.twitter, .footer-tools li a.youtube { margin-right:20px; width:43px; height:40px; position:relative; overflow:hidden; float:left; }
.footer-tools li a.youtube { margin-right:none; }
.footer-tools li a img { position: relative; top:-207px; opacity:1; -webkit-transition: opacity 0.3s ease-in-out; -moz-transition: opacity 0.3s ease-in-out; -o-transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out; }
.footer-tools li a:hover img { opacity: .6; }
.footer-tools a.rss img { left:0; }
.footer-tools a.fbook img { left:-65px; }
.footer-tools a.gplus img { left:-135px; }
.footer-tools a.twitter img { left:-197px; }
.footer-tools a.youtube img { left:-264px; }
/******** body area **********/
body { background-image: url('http://www.example.com/black-to-gray-bg.png'); background-position: left top; background-repeat: repeat-x; background-color: #737573 !important; margin: 0;}
.main_page_left, .main_page_right {display:none;}
.main_page_left {background-color:transparent; background-image:none !important;}
.main_page_right {background-color:transparent; background-image:none !important;}
.portal_body {width: 1000px; margin: auto; font-family: Arial, Verdana, Helvetica, sans-serif;}
/*.sponsored_ads {display:none;}*/
.t1_nav_bar { background-image: url('http://www.example.com/matrix-header.gif') !important; background-position: 8px top; background-repeat: no-repeat; background-color: transparent; height: 48px; color: white; text-shadow: rgba(0, 0, 0, 0.3) 0 2px 2px; padding: 0 10px !important; width: 981px; }
.bottom_next_page_cont { width: 953px !important; margin-left: 9px; display: inline; }
.middle_page_inner_container { width: 953px !important; margin-left: 9px; display: inline; background-color: white; }
td.t1_left_cell_10 { width: 152px !important; }
.rank_row_last_col { }
.new_review_header { width: 937px !important; }
.ttr_top_left { width:240px; padding-left: 0px !important; padding-right: 0px !important;}
#contents { position:absolute; width:auto; top:600px; left:200px; }
/* right nav */
#ad_4 { float:none; text-align:center; padding:0; margin:0; }
#ad_5 { padding:0; margin:0; border:none; }
.top_ten_products { width:300px; min-height:85px; overflow:hidden; border:1px solid #CCC; }
.top_ten_products_header { background-image:url('http://www.example.com/top_ten_grad.png'); width:300px; height:37px; border-bottom:1px solid #CCC; }
.top_ten_products_header_title { float:left; font-size:18px; margin:6px 0 0 9px; }
.top_ten_products_header_all { float:right; margin:11px 14px 0 0; }
.top_ten_products_body { width:300px; max-height:212px; overflow:auto; }
.top_ten_products_row { float:left; border-bottom:1px solid #CCC; width:275px; padding:2px 0 2px 0;}
.top_ten_products_img { float:left; width:43px; height:36px; margin:0 5px 0 5px; text-align:center; }
.top_ten_products_img img { max-width:43px; max-height:34px; margin:1px 0 1px 0; }
.top_ten_products_rank { float:left; font-size:13px; margin: 12px 5px 0 0; }
.top_ten_products_name { float:left; font-size:12px; margin:13px 0 0 3px; width:200px;}
my blogger page becomes messy. but when I leave the b:skin empty and call the css stylesheet using an external url:
<link rel="stylesheet" type="text/css" href="http://www.example.com/stylesheet.css" media="all" />
The page is organized and works elegantly on Chrome .. messy a bit on firefox.
Please, tell me what wrong with the css code that I use.

CSS - how do i stretch the background of the menu

Hello,
Can someone help me, how can i stretch the background of the menu (to be full width, from left to right)?
I'm a beginner.
Thanks.
#menu, #menu ul {
margin: 0;
padding: 0;
list-style: none;
}
#menu {
width:100%;
margin: 0px;
background-color: #3d56ac;
background-image: linear-gradient(#444, #111);
}
#menu:before,
#menu:after {
content: "";
display: table;
}
#menu:after {
clear: both;
}
#menu {
zoom:1;
}
#menu li {
float: left;
border-right: 1px solid #222;
box-shadow: 1px 0 0 #444;
position: relative;
}
#menu a {
float: left;
padding: 12px 30px;
color: #FFF;
text-transform: uppercase;
font: bold 12px Arial, Helvetica;
text-decoration: none;
text-shadow: 0 1px 0 #111;
}
#menu li:hover > a {
color: #fafafa;
}
*html #menu li a:hover { /* IE6 only */
color: #fafafa;
}
#menu ul {
margin: 20px 0 0 0;
_margin: 0; /*IE6 only*/
opacity: 0;
visibility: hidden;
position: absolute;
top: 38px;
left: 0;
z-index: 1;
background: #444;
background: linear-gradient(#444, #111);
box-shadow: 0 -1px 0 rgba(255,255,255,.3);
border-radius: 3px;
transition: all .2s ease-in-out;
}
#menu li:hover > ul {
opacity: 1;
visibility: visible;
margin: 0;
}
#menu ul ul {
top: 0;
left: 150px;
margin: 0 0 0 20px;
_margin: 0; /*IE6 only*/
box-shadow: -1px 0 0 rgba(255,255,255,.3);
}
#menu ul li {
float: none;
display: block;
border: 0;
_line-height: 0; /*IE6 only*/
box-shadow: 0 1px 0 #111, 0 2px 0 #666;
}
#menu ul li:last-child {
box-shadow: none;
}
#menu ul a {
padding: 10px;
width: 130px;
_height: 10px; /*IE6 only*/
display: block;
white-space: nowrap;
float: none;
text-transform: none;
}
#menu ul a:hover {
background-color: #0186ba;
background-image: linear-gradient(#04acec, #0186ba);
}
#menu ul li:first-child > a {
border-radius: 3px 3px 0 0;
}
#menu ul li:first-child > a:after {
content: '';
position: absolute;
left: 40px;
top: -6px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid #444;
}
#menu ul ul li:first-child a:after {
left: -6px;
top: 50%;
margin-top: -6px;
border-left: 0;
border-bottom: 6px solid transparent;
border-top: 6px solid transparent;
border-right: 6px solid #3b3b3b;
}
#menu ul li:first-child a:hover:after {
border-bottom-color: #04acec;
}
#menu ul ul li:first-child a:hover:after {
border-right-color: #0299d3;
border-bottom-color: transparent;
}
#menu ul li:last-child > a {
border-radius: 0 0 3px 3px;
}
This should work:
#menu {
background-size: 100%;
}
You need to fix the width of the image... if your want to Stretch the background image...
**CSS**
background-image: url("menu.png");
background-size: 875px 125px;
background-repeat: no-repeat;
Hope this will helps you...
or you can try...
/css
body{margin: 0 auto;}
.menu100percent {
background: #3584b4; /* Old browsers */
background: -moz-linear-gradient(top, #3584b4 0%, #25567f 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3584b4), color-stop(100%,#25567f)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #3584b4 0%,#25567f 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #3584b4 0%,#25567f 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #3584b4 0%,#25567f 100%); /* IE10+ */
background: linear-gradient(to bottom, #3584b4 0%,#25567f 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3584b4', endColorstr='#25567f',GradientType=0 ); /* IE6-9 */
color: white;
font-size: 16px;
height: 37px;
width:100%;
}
.menu{width:1000px; margin: 0 auto; }
.menu a{color:#fff; font-size:12px; line-height:37px; font-family:Arial; text-decoration:none;}
/html
<div class="menu100percent">
<div class="menu">
Shop
</div>
</div>
DEMO HERE

Extending the "trigger area" that activates the dropdown menu.

Currently, only when the mouseover occurs near the phone icon or the little arrow-up area, will the dropdown menu not disappear when you move your cursor down to click on the links in the dropdownmenu.
When someone mouses over from the word 'Contact', the dropdown menu disappears as soon as he moves the cursor. I want the dropdown menu to remain as user moves the cursor down from the word 'Contact' .
HTML:
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="style2.css" type="text/css" />
</head>
<body>
<div class="Navigation">
<div id="navbar">
<ul>
<li class="OP" id="OPM1"><img src="images/order.png" />Orders</li>
<li class="OP"><img src="images/contact.png" />Contact
<div class="extended">
<div class="arrow-up"></div>
<ul class="smallNav">
<li>+65-65553333</li>
<li>Facebook</li>
<li>Twitter</li>
<li>enquiry [at] foodstant [dot] com</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</body>
</html>
CSS:
.Navigation { background:background: rgb(246,248,249); /* Old browsers */
background: -moz-linear-gradient(top, rgba(246,248,249,1) 0%, rgba(229,235,238,1) 46%, rgba(215,222,227,1) 65%, rgba(245,247,249,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(246,248,249,1)), color-stop(46%,rgba(229,235,238,1)), color-stop(65%,rgba(215,222,227,1)), color-stop(100%,rgba(245,247,249,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(246,248,249,1) 0%,rgba(229,235,238,1) 46%,rgba(215,222,227,1) 65%,rgba(245,247,249,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(246,248,249,1) 0%,rgba(229,235,238,1) 46%,rgba(215,222,227,1) 65%,rgba(245,247,249,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(246,248,249,1) 0%,rgba(229,235,238,1) 46%,rgba(215,222,227,1) 65%,rgba(245,247,249,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(246,248,249,1) 0%,rgba(229,235,238,1) 46%,rgba(215,222,227,1) 65%,rgba(245,247,249,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f8f9', endColorstr='#f5f7f9',GradientType=0 ); /* IE6-9 */
border-top-left-radius: 10px;
border-bottom-left-radius:10px;
border-top-right-radius: 10px;
border-bottom-right-radius:10px;
box-shadow: -3px -5px 10px #888888;
font-size: 26px;
font-family: 'Conv_LITHOSPRO-REGULAR';
}
.Navigation ul li { position: relative; list-style: none; padding: 17px 10px; }
.Navigation ul li a { font-size: 26px; font-weight: bold; color: white; text-decoration: none; text-shadow: 0 1px 2px black; }
.Navigation ul li:hover { background: url(images/hover.png) repeat-x; height: 43px; -webkit-box-shadow: 0 0px 2px black inset; padding: 20px 9px; border-left: 1px solid #a4a4a4; border-right: 1px solid #a4a4a4;}
.Navigation ul li:hover { background: none; -webkit-box-shadow: none; -moz-box-shadow: none; height: auto; border: none; }
.arrow-up { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 15px solid #6a6a63; position: absolute; left: 20px; top: -15px; }
.Navigation ul li .extended { position: absolute; top: 45px; left: 0; width: 220px; background: url(images/dropdownback.png); z-index: 1000; -moz-box-shadow: 0 0px 8px rgba(0,0,0,0.8); -webkit-box-shadow: 0 0px 8px rgba(0,0,0,0.8); box-shadow: 0 0 8px black; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; border: 1px solid white; display: none; color: white; }
.Navigation ul li .extended img { display: block; margin: 5px auto 15px auto; -webkit-box-reflect:below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.8, transparent), to(rgba(255,255,255,0.5))); }
.Navigation ul li .extended a { font-size:14px;}
.Navigation ul li .extended h2, .Navigation ul li .ultraNav h2 { padding-top: 10px; padding-left: 10px; font-size: 16px; text-shadow: 0 1px 2px black; color: white; background: url(images/headerback.png) repeat-x; height: 20px; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; }
.Navigation ul li .extended span { padding-left: 10px; font-size: 11px; }
.Navigation ul li .extended ul.smallNav { border-top: 1px solid rgba(141,141,141,0.50); padding: 10px; height: 100px; }
.Navigation ul li .extended ul.smallNav li { width: 200px; padding: 0; line-height: 22px; font-weight: bold; background: url(images/linkback.png) no-repeat; }
.extended ul li {float:left;}
.Navigation ul li .extended ul.smallNav li:first-child { margin: 0; }
.Navigation ul li .extended ul.smallNav li:last-child { margin-bottom: 10px; }
.Navigation ul li:hover .extended { display: block; }
.Navigation ul li ul li:hover a { color: white; }
#navbar {
}
#navbar ul {
list-style-position:inside;
padding-top: 10px;
padding-bottom: 10px;
}
#navbar ul li {
display: inline;
padding:0 20px 0px 0px;
margin-bottom: 10px;
list-style-type:disc;
}
#navbar ul li.OP {
padding-left: 15px;
}
#navbar ul li.OP img {
vertical-align: middle;
}
#navbar li a:link {
color: #EF174A;
}
#navbar li a:visited {
color: #BF4100;
}
#navbar li a:hover {
color: black;
background-color:#D2D2D2;
border-radius: 10px;
}
#navbar li a:active {
color: #918FBC;
}
li a {
text-decoration:none;
}
#navbar ul li.OP a {
padding-left: 10px;
}
.Navigation ul li .extended ul.smallNav li a { color: #c7c7c7 !important; text-shadow: none !important; }
.Navigation ul li .extended ul.smallNav li a:hover { color: white !important;}
Wrap the arrow-up DIV with another DIV like this:
<div class="arrow-container"><div class="arrow-up"></div></div>
Then add the arrow-container style as:
.arrow-container { margin-top:-16px; height:16px; }

Site not displaying properly on ipad and iphone. header and footer in place, body/container not

My site is http://farmersforum.in which is not displaying properly on ipad and iphone. The header and footer and left aligned but the body is right aligned and starts from where the header ends.
the #container width is 1020px so i dont think that is the problem. Here's the css code;
/*
Theme Name: gazpoMag
Theme URI: gazpo.com
Description: gazpoMag is a clean and featured-rich Wordpress magazine style theme. It allows you to easily customize every detail of the theme to best suit your needs.
Author: Sami Ch.
Author URI: http://www.gazpo.com
License: GNU General Public License
License URI: license.txt
*/
* {
padding:0;
margin:0;
}
body{
color: #333333;
font-family: Arial, Helvetica, sans-serif;
line-height: 20px;
font-size: 12px;
}
ol, ul {
list-style: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
a, a:visited{
text-decoration: none;
color: #004A8D;
}
a:hover{
text-decoration: underline;
color: #004A8D;
}
a { outline: none; }
h2, h3, h4{
font-family: 'Helvetica', Arial;
color: #222;
text-shadow: 0px 0px 1px #ccc;
}
h2{
font-size:16px;
margin:10px 0 3px;
}
h3{
font-size: 16px;
}
h4{
font-size: 16px;
}
h2 a, h2 a:visited{
color:#004A8D;
font-size:16px;
}
h2 a:hover{
text-decoration: none;
color:#133451;
}
a img {
border: none;
}
img.centered {
display: block;
margin-left: auto;
margin-right: auto;
}
img.alignright {
padding: 4px;
margin: 0 0 2px 7px;
display: inline;
}
img.alignleft {
padding: 4px;
margin: 0 7px 2px 0;
display: inline;
}
.alignright {
float: right;
}
.alignleft {
float: left;
}
#container{
margin: 0 auto;
width: 1020px;
text-align: left;
overflow:auto;
background:#ffffff;
}
#header {
background: url("images/bg.png") repeat-x;
}
#header .wrap{
background: url("images/bg.png") repeat-x;
width: 1020px;
height: 120px;
margin:0 auto;
}
#header .logo{
margin-top:7px;
width: 420px;
float:left;
overflow:hidden;
display:table;
}
#header .logo img{
max-width: 415px;
max-height:110px;
}
#header .logo .text{
display:table-cell;
vertical-align:middle;
}
#header .logo h1 a{
font-family: 'Droid Serif', Arial;
font-size:44px;
line-height:0.9;
color:rgba(241,244,245,.7) ;
font-weight: bold;
text-shadow:1px 1px rgba(202,216,221,.7),
2px 2px rgba(202,216,221,.7),
3px 3px rgba(202,216,221,.7);
}
#header .logo h1 a:hover{
text-decoration:none;
}
#header .right{
margin-top:10px;
width: 546px;
float:left;
margin-left: 50px;
}
#header .links {
margin-bottom:10px;
overflow:auto;
}
#header .links ul{
overflow:auto;
color:white;
float:right;
}
#header .links ul li{
float: left;
margin-left:8px;
}
#header .links ul li a {
color: #DAE5EC;
padding-right:8px;
font-size:13px;
font-weight:bold;
}
#header .twitter{
background: url("") no-repeat;
padding-left:55px;
font-family:'Droid Serif', serif;
font-size:14px;
min-height:40px;
max-height:60px;
overflow:hidden;
}
#header #twitter_update_list{
color:#cccccc;
}
#header #twitter_update_list a{
color: #DAE5EC;
}
#subheader{
background: url("images/subheader.png") repeat-x;
}
#subheader .wrap{
width: 1020px;
margin:0 auto;
background: url("images/subheader.png") repeat-x;
height:40px;
text-transform:uppercase;
font-weight:bold;
color: #7B7B7B;
line-height:40px;
}
#subheader ul li{
float: left;
margin-right:25px;
}
#subheader .categories{
width:780px;
float:left;
}
#subheader .search{
width:236px;
float:left;
}
#subheader .search input {
font: normal 14px/100% Arial, Helvetica, sans-serif;
}
#subheader .search .searchfield {
background: #fff;
padding: 7px 6px 7px 8px;
width: 220px;
border: solid 1px #bcbbbb;
outline: none;
margin-top:4px;
border-radius: 15px;
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
}
#content{
float: left;
width: 716px;
overflow: auto;
}
#featured-cat{
overflow: auto;
margin: 10px 10px 5px;
border-bottom:1px solid #D4D4D4;
}
#featured-cat .cat-title{
background:#f6f6f6;
border-bottom:1px solid #dbdbdb;
padding:5px;
margin-bottom:5px;
}
#featured-cat .box{
width:220px;
float:left;
overflow:hidden;
}
#featured-cat .margin-right{
margin-right:15px;
}
#featured-cat .thumb{
position:relative;
float:left;
width:220px;
height:130px;
overflow:hidden;
}
#featured-cat .date{
position:absolute;
background: #000000;
color: #FFFFFF;
display: block;
font-size: 12px;
font-weight: 700;
opacity: 0.7;
padding: 2px 5px 4px 5px;
top: 20px;
}
#featured-cat .details{
margin-bottom:10px;
clear:both;
padding-top: 8px;
}
#content .post{
overflow: auto;
margin: 10px 10px 5px 0px;
}
#content .s_socialbar{
margin-top:30px;
margin-left: -80px;
display: block;
position: absolute;
background:#ECF5FA;
border-radius:7px;
}
#content .s_socialbar ul{
margin:10px 5px 0px 5px;
}
#content .s_socialbar ul li{
margin-bottom:10px;
}
#content .s_socialbar .fb-like{
margin:0px 0px 4px 4px;
}
#content .post .postmeta {
overflow:auto;
padding:2px;
font-size:12px;
color: #777777;
}
#content .post .postmeta .comments{
float:right;
margin-right: 10px;
background:url(images/comments.png) no-repeat left center;
padding-left:20px;
}
#content .wp-post-image{
background-color: #F3F3F3;
border: 1px solid #DDDDDD;
border-radius: 3px 3px 3px 3px;
}
#content .entry img{
max-width: 97.5%;
height:auto;
border:1px solid #ddd;
padding:2px
background-color:#f3f3f3;
margin:5px 10px 5px 0;
}
#content .thumb-twitter-entry{
overflow:auto;
width: 420px;
float:left;
}
#content .thumb-entry{
float:left;
width: 489px;
}
#content .twitter-entry{
float:left;
width: 635px;
}
#content .entry{
overflow:auto;
margin-bottom:20px;
}
#content .post-twitter{
width: 60px;
float:left;
margin:15px 0px 0px 5px;
}
#content .wp-caption{
border:1px solid #ddd;
text-align:center;
background-color:#f3f3f3;
padding-top:4px;
margin:10px 5px;
-moz-border-radius:3px;
-khtml-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
}
#content .wp-caption img{
margin:0;
padding:0;
border:0 none;
}
#content .wp-caption p.wp-caption-text{
font-size:11px;
line-height:17px;
padding:0 4px 5px;
margin:0;
}
#content .entry blockquote{
background: url("images/quote.png") no-repeat;
font-family: "Georgia", Arial, Helvetica, sans-serif;
color: #777777;
margin: 5px 5px 10px 25px;
padding-left: 32px;
padding-top: 3px;
font-style:italic;
}
#content .entry ul{
list-style-type:square;
margin: 5px 10px 10px 40px;
}
#content .entry ol{
list-style-type:decimal;
margin: 5px 10px 10px 40px;
}
#sidebar{
float: left;
width: 300px;
padding-top:10px;
}
#sidebar h4{
padding: 4px 0px 4px 24px;
border-bottom:1px solid #dbdbdb;
}
#sidebar .box{
margin-bottom:10px;
border-bottom: 1px solid #EFEFEF;
padding:5px;
}
#sidebar_social{
overflow:auto;
margin:10px 0;
}
#sidebar_social a{
font-size: 12px;
font-weight: bold;
padding: 50px 5px 0px;
}
#sidebar_social ul{
overflow:auto;
}
#sidebar_social ul li{
width:70px;
float:left;
padding-top:50px;
text-align: center;
overflow:auto;
}
#sidebar .widget_categories{
margin-bottom: 10px;
}
#sidebar .widget_categories h4{
background:#f6f6f6 url('images/tag.png') no-repeat 5px center;
}
#sidebar .widget_categories ul, #footer .widget_categories ul{
overflow:auto;
padding:10px 5px;
margin: 5px;
}
#sidebar .widget_categories ul li, #footer .widget_categories ul li{
margin-right:8px;
float: left;
font-size: 12px;
margin-bottom: 10px;
}
#sidebar .widget_categories ul li a, #footer .widget_categories ul li a{
background-color: #f6f6f6;
border-bottom: 1px solid #DBDBDB;
border-right: 1px solid #DBDBDB;
color: #777777;
padding: 3px 6px;
text-decoration: none;
white-space: nowrap;
}
#sidebar .widget_categories ul li a:hover,#footer .widget_categories ul li a:hover{
text-decoration: none;
background: #E8E8E8;
}
#sidebar .widget_archive h4{
background:#f6f6f6 url('images/calendar.png') no-repeat 5px center;
}
#sidebar .widget_archive ul, #sidebar .widget_links ul{
padding:5px;
}
#sidebar .widget_archive ul li, #sidebar .widget_links ul li{
padding:3px 0px 3px 12px;
background:url(images/cat_bullet.png) no-repeat left center;
}
#sidebar .widget_links h4{
background:#f6f6f6 url('images/bookmarks.png') no-repeat 5px center;
}
#sidebar .widget_subscribers{
margin-bottom:10px;
}
#sidebar .widget_subscribers .counts{
margin:15px;
overflow:auto;
}
#sidebar .widget_subscribers .counts img{
vertical-align:middle;
}
#sidebar .widget_subscribers .fb{
float:left;
margin-right: 20px;
margin-left:25px;
}
#sidebar .widget_subscribers .twitter{
float:left;
}
#sidebar .widget_subscribers .count{
display: inline-block;
font-size: 22px;
font-weight: bold;
vertical-align: middle;
}
#sidebar .widget_subscribers .count a{
color: #404040 !important;
}
#sidebar .widget_subscribers .count a:hover{
text-decoration:none;
}
#sidebar .widget_posts{
margin-bottom:10px;
}
#sidebar .widget_posts ul.tabs {
height: 30px;
line-height: 24px;
list-style: none;
background: #FFF;
background:url(images/sidebar_posts.png) no-repeat top center;
font-size: 14px;
font-weight: bold;
font-family: 'Droid Serif', Arial;
border-bottom: 1px solid #D4D4D4;
}
#sidebar .widget_posts .tabs li {
float: left;
padding-top:3px;
color: #777;
cursor: pointer;
padding-left: 24px;
}
#sidebar .widget_posts .tabs li:hover {
color: #333333;
text-shadow: 0px 0px 1px #ccc;
}
#sidebar .widget_posts .tabs li.current {
color: #333333;
text-shadow: 0px 0px 1px #ccc;
}
#sidebar .widget_posts .post_box.visible {
display: block;
}
#sidebar .widget_posts .tabs li.recent{
background:#f6f6f6 url('images/calendar1.png') no-repeat 5px center;
margin-right:5px;
width:65px;
}
#sidebar .widget_posts .tabs li.popular{
background:#f6f6f6 url('images/heart.png') no-repeat 5px center;
margin-right:5px;
width:70px;
}
#sidebar .widget_posts .tabs li.comments{
background:#f6f6f6 url('images/comments.png') no-repeat 5px center;
width:80px;
}
#sidebar .widget_posts .posts-list li{
margin-bottom:5px;
font-size: 12px;
overflow:auto;
padding-bottom:5px;
}
#sidebar .widget_posts .post_box {
display: none;
border-width: 0 1px 1px;
padding: 5px;
height:255px;
}
#sidebar .widget_posts .info{
float:left;
width:210px;
}
#sidebar .widget_posts .meta {
font-style:italic;
}
#sidebar .widget_posts .meta .date{
float:left;
}
#sidebar .widget_posts .meta .cmts{
float:right;
margin-right: 10px;
background:url(images/comment.png) no-repeat left center;
padding-left:20px;
font-style:normal;
}
#sidebar .widget_posts .posts-list li .title{
font-weight:bold;
}
#sidebar .widget_posts .thumb{
width: 60px;
height: 40px;
float:left;
margin-right:5px;
}
#sidebar .widget_posts .avatar-42{
width: 42px;
height: 42px;
float:left;
margin-right:5px;
}
#sidebar .widget_posts .comment-info{
float:left;
width:230px;
}
#sidebar .widget_posts .comment-info p{
line-height:15px;
}
#sidebar .widget_facebook h4{
background:#f6f6f6 url('images/facebook.png') no-repeat 5px center;
}
#sidebar .widget_facebook{
margin-bottom:10px;
}
#sidebar .widget_text h4{
background:#f6f6f6 url('images/about.png') no-repeat 5px center;
margin-bottom:5px;
}
#sidebar .widget_text {
margin-bottom:10px;
}
#footer .widget_text h4{
background:url('images/about.png') no-repeat 12px center;
margin-bottom:5px;
}
#sidebar .widget_ad125{
margin-bottom:10px;
overflow:auto;
}
#sidebar .widget_ad125 h4{
background:#f6f6f6 url('images/star.png') no-repeat 5px center;
margin-bottom:5px;
}
#sidebar .widget_ad125 li{
float:left;
margin:10px 10px;
}
#sidebar .widget_ad125 li img{
width:125px;
height:125px;
}
#footer {
background: url("images/bg.png") repeat;
}
#footer .wrap{
width: 1020px;
margin:0 auto;
padding:10px;
overflow:auto;
color: #CCCCCC;
}
#footer .main{
overflow:auto;
padding-bottom:5px;
}
#footer .box{
float: left;
width:330px;
}
#footer .info{
font-size:12px;
}
#footer h4{
padding-left:32px;
margin-bottom:5px;
color: #CCCCCC;
text-shadow:none;
}
#footer a{
color: #DAE5EC;
}
#footer .widget_text{
margin-bottom:10px;
padding: 0 20px;
}
#footer .widget_links ul, #footer .widget_archive ul, #footer .widget_categories ul{
padding:0px 15px;
}
#footer .widget_links h4{
background:url('images/bookmarks.png') no-repeat 12px center;
}
#footer .widget_archive h4{
background:url('images/calendar.png') no-repeat 12px center;
}
#footer .widget_categories h4{
background:url('images/tag.png') no-repeat 12px center;
}
#footer .widget_links, #footer .widget_archive, #footer .widget_categories, #footer .widget_text{
float: left;
width:298px;
margin-right:10px;
}
#footer .widget_links ul li, #footer .widget_archive ul li{
padding: 2px 0 2px 20px;
background:url(images/u.png) no-repeat left center;
}
#footer .widget_tweets{
width:298px;
float:left;
margin-right:30px;
}
#footer .widget_tweets h4.title{
background:url('images/twitter.png') no-repeat 12px center;
}
#footer .widget_social{
width:298px;
float: left;
margin-right:10px;
}
#footer .widget_social h4{
background:url('images/interact.png') no-repeat 12px center;
}
#sidebar .widget_social h4{
background:#f6f6f6 url('images/interact.png') no-repeat 5px center;
}
#sidebar .widget_social ul{
padding:10px 5px;
}
#footer .widget_social ul{
padding:0px 15px;
}
#footer .widget_social ul li{
padding: 2px 0 2px 20px;
}
#sidebar .widget_social ul li{
padding:4px 0px 4px 20px;
}
.widget_social ul li.facebook{
background:url(images/facebook.png) no-repeat left center;
}
.widget_social ul li.twitter{
background:url(images/twitter.png) no-repeat left center;
}
.widget_social ul li.gplus{
background:url(images/gplus.png) no-repeat left center;
}
.widget_social ul li.rss{
background:url(images/rss.png) no-repeat left center;
}
.widget_social ul li.contact{
background:url(images/email.png) no-repeat left center;
}
#gazpo-socialbar {
background: #E3EDF4;
border-color: #E3EDF4;
display: block;
margin-left: -65px;
position: fixed;
top: 200px;
width: 65px;
}
#respond .cancel-comment-reply{
float:right;
}
#comments h3, #content .comments h4 {
margin:10px 0px;
}
#comments ol.commentlist {
margin: 10px 0 20px 0;
list-style-type: none;
overflow: visible;
}
#comments li.comment {
margin-bottom: 10px;
}
#comments li.comment .comment-body {
margin-left: 65px;
position: relative;
min-height:60px;
}
#comments li.comment .comment-meta {
overflow: hidden;
float: left;
display: block;
width: 50%;
}
#comments li.comment .avatar {
position: absolute;
left: -65px;
padding: 3px;
border:1px solid #ddd;
background-color:#f3f3f3;
}
#comments .comment-awaiting-moderation{
color: red;
font-size:12px;
font-style:italic;
}
#comments li.comment p {
clear: both;
}
#comments li.comment cite, li.bypostauthor li.comment cite {
font-weight: bold;
font-style: normal;
padding-right:10px;
margin-right: 8px;
float: left;
}
#comments .commentmetadata, .commentmetadata a {
font-size: 12px;
color: #999;
}
#comments .commentmetadata a:hover {
color: #666;
text-decoration: none;
}
#comments .says {
display: none;
}
#comments .comment-meta {
margin: 0 0 10px;
line-height: 18px;
position: relative;
}
#comments li.comment .comment-body a.comment-reply-link {
display: block;
position: absolute;
right: 0;
top: 0px;
padding-right: 10px;
font-size: 12px;
}
#comments .children {
list-style-type: none;
margin: 10px 0 0px 30px;
}
#comments .children li.comment .comment-body {
margin-left: 70px;
position: relative;
min-height:60px;
}
#comments .children li.comment .avatar {
position: absolute;
left: -65px;
}
#respond {
margin-top:15px;
}
#commentform {
background: #f6f6f6;
border-radius: 3px;
padding: 15px 10px;
overflow:auto;
margin:20px 0px;
}
#commentform .fields-container{
overflow:auto;
margin-bottom:15px;
}
#commentform .info{
float: left;
margin-right: 15px;
width: 250px;
}
#commentform .info span{
font-style:italic;
}
#commentform label{
clear: both;
color: #667780;
display: block;
line-height: 24px;
}
#commentform input{
width: 240px;
border: 1px solid #CAD9E0;
color: #333333;
font-family: Arial, Helvetica, sans-serif;
font-size:14px;
margin-bottom: 6px;
padding: 8px 3px;
}
#commentform textarea {
height: 150px;
width:98%;
border: 1px solid #CAD9E0;
border-radius: 3px;
color: #333333;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
margin-bottom: 6px;
margin-top: 2px;
padding: 6px 3px;
}
#commentform .message{
float: left;
width: 410px;
}
#commentform .gazpo-button{
width: 80px;
padding: 6px 8px;
}
.gazpo-button{
border-radius: 6px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
cursor: pointer;
display: inline-block;
font: 14px/100% Arial,Helvetica,sans-serif;
margin: 0 2px;
outline: medium none;
padding: 5px 10px;
text-align: center;
text-decoration: none;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
vertical-align: baseline;
background: -moz-linear-gradient(center top , #FFFFFF, #EDEDED) repeat scroll 0 0 transparent;
border: 1px solid #B7B7B7;
color: #606060;
}
.gazpo-button:hover {
background: #ededed;
background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
background: -moz-linear-gradient(top, #fff, #dcdcdc);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
}
.gazpo-button:active {
color: #999;
background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
background: -moz-linear-gradient(top, #ededed, #fff);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
}
.pagination {
clear:both;
margin: 10px;
text-align:center;
font-family:Verdana,Tahoma,Arial;
font-size: 13px;
padding:4px 6px 4px 0;
background-color:#fff;
color:#313031;
}
.pagination span{
padding: 3px;
margin: 3px;
text-align:center;
}
.pagination a {
padding: 2px 5px 2px 5px;
margin-right: 4px;
border: 1px solid #9aafe5;
text-decoration: none;
color: #2e6ab1;
}
.pagination a:hover, .pagination a:active{
border: 1px solid #2b66a5;
color: #000;
}
.pagination .current{
padding: 2px 5px 2px 5px;
margin-right: 4px;
border: 1px solid navy;
font-weight: bold;
background-color: #2e6ab1;
color: #FFF;
}
just put these inside another div and make it 1020px wide, secure the position and max/min widths.
<div id="wrapper/container">
<div id="header"></div>
<div id="subheader"></div>
<div id="container"></div>
<div id="footer"></div>
</div>
Or re-make theme using responsive design with grid and nice columns.

Resources