footer locks in position - html

I have modified App footer to stay at the bottom of the page if the page content is little.
So it wouldn't left free space afterwards. It works just great.
But now I discovered that in pages where content is much more than it fits in current window, footer has stayed at the same place, but the content expands in background of footer.
It looks like
this
My CSS for footer.
#footerCntr {
position:absolute;
bottom:0;
width:100%;
overflow: hidden;
background:#e7e7e7;
border-top:3px solid #b7b7b7;
margin:11px 0px 0px 0px;
}
.footerBox{
width:780px;
margin: 0px auto;
padding:11px 0px 14px 0px;
}
.footerBoxLeft{
float:left;
width:176px;
padding:8px 0px 9px 26px;
background:url(bordery.gif) right top repeat-y;
}
.footerBoxLeft img{
float:left;
margin:0px 0px 0px 2px;
}
.footerBoxRight{
float:right;
width:575px;
padding:0px 0px 10px 0px;
}
.footerlink ul{
padding:7px 0px 5px 0px;
}
.footerlink ul li{
list-style:none;
padding:0px 10px 0px 10px;
display:inline;
background:url(devider.gif) 0px 3px no-repeat;
}
.footerlink ul li a{
font:10px Tahoma , Arial, Helvetica, sans-serif;
color:#535353;
text-decoration:none;
padding:0px 0px 0px 0px;
}
.footerlink ul li a:hover{
text-decoration:underline;
}
.copyright{
color:#535353; padding:0px 0px 0px 10px;
}
.copyright a{
font:10px Tahoma , Arial, Helvetica, sans-serif;
color:#535353;
text-decoration:none;
padding:5px 0px 0px 0px;
}
.copyright a:hover{
text-decoration:underline;
}
Link to my app problem.
It could be problem with content CSS formating ?
here

Related

css3, cannot put a div centralized

I cannot put my menu in the center of the page, i've inserted all "margin: 0 auto;" i can and all "text-align: center", and the div is separated from everything, is not a child of something else..
here's the css code:
.more{
margin: 0 auto;
position:relative;
clear:both;
font-size: 13px;
padding: 20px 0px;
text-transform: uppercase;
width: 40%;
height: 20%;
}
.more ul{
display:block;
text-align:center;
}
.more ul li{
display: block;
padding: 10px 3px;
float:left;
}
.more ul li.selected a,
.more ul li.selected a:hover{
background:#0099c5;
color:#fff;
text-shadow:none;
font-weight:bold;
}
.more ul li a{
color:#555;
float:left;
background:#fff;
width: 100%;
padding: 8px 10px;
-moz-box-shadow:1px 1px 2px #aaa;
-webkit-box-shadow:1px 1px 2px #aaa;
box-shadow:1px 1px 2px #aaa;
}
.more ul li a:hover{
background:#000;
color:#fff;
}
And here's the HTML code:
<div class="more">
<ul>
<li class="selected">Homepage Blog</li>
<li>Cerca</li>
<li>Archivio</li>
<li>Tags</li>
</ul>
</div>
How-to make the div permanently in the center of my page? I've tried lot, lot, lot of possible moves.
Thank you.
p.s. I've also tried to put a <div align=center> ...my menu (class=more) list ...</div>
Remember that you can't use margin:0 auto on floatted element.
Keys for margin 0 auto are:
1) element must have display:block
2) no float, absolute or fixed position
.more{
float:left;
clear:both;
font-size: 13px;
padding: 20px 0px;
text-transform: uppercase;
width: 100%;
height: 20%;
}
.more ul{
display:block;
text-align:center;
margin:0 auto;
}
.more ul li{
display: inline-block;
padding: 10px 3px;
}
.more ul li.selected a,
.more ul li.selected a:hover{
background:#0099c5;
color:#fff;
text-shadow:none;
font-weight:bold;
}
.more ul li a{
color:#555;
background:#fff;
width: 100%;
padding: 8px 10px;
-moz-box-shadow:1px 1px 2px #aaa;
-webkit-box-shadow:1px 1px 2px #aaa;
box-shadow:1px 1px 2px #aaa;
}
.more ul li a:hover{
background:#000;
color:#fff;
}

Why is my header double the height in IE

Hi guys I'm very new to webdesign and the more I learn the more I realize that IE is a bit of a jerk when it comes to how it renders. In firefox and chrome everything works right but in IE my header is doubled in height. I'm not sure why. I've made everything divs and did all my positioning in css. here is my css.
website: http://www.discerningear.com
html { font-family:Arial, Helvetica, sans-serif; color:#333; }
body { background:#a99a6f; margin:0 auto; text-align:center;}
img { border-style: none; }
#slide{ max-width:100%; -moz-box-shadow: 0px 0px 12px #fff; -webkit-box-shadow: 0px 0px 12px #fff; box-shadow: 0px 0px 12px #fff; }
#container { -moz-box-shadow: 0px 0px 12px #000; -webkit-box-shadow: 0px 0px 12px #000; box-shadow: 0px 0px 12px #000; text-align: left; width:800px; height:1500px; margin:0 auto; background:#d4d4d4; background-image:url("/includes/images/container.jpg"); background-repeat:no-repeat;}
#header { width:100%; height:160px; padding:0 0 0 0; background-image:url('/includes/images/wave-header-background.jpg');}
#logo { float:left; height:80px; margin:5px; }
.logoImage{ content:url("/includes/images/DiscerningEar_Logo.png"); height:100%; }
#top_info { float:right; width:450px; height:40px; padding:0 0 0 0 ; margin:20px; }
#top_info ul { margin:0; padding:0; list-style-type:none;}
#top_info ul li { margin:0; padding:0px; float:left; }
#top_info ul li a { display: -moz-inline-stack; display: inline-block; width: 100px; height: 35px; background: url("http://dabuttonfactory.com/b.png?t=&f=Calibri-Bold&ts=18&tc=ffffff00&tshs=1&tshc=22222200&it=png&c=5&bgt=gradient&bgc=8c7f5e&ebgc=000000&bs=2&bc=a9996f&shs=2&shc=4d4d4d&sho=se&w=100&h=35") no-repeat; line-height: 35px; vertical-align: text-middle; text-align: center; color: #ffffff; font-family: Calibri; font-size: 14px; font-weight: bold; font-style: normal; text-shadow: #222222 1px 1px 0; }
#top_info ul li a > span { display: -moz-inline-block; }
#navbar {padding:20px 0 180px 0; height:60px; clear:both; }
#navbar ul { margin:0; padding:0; list-style-type:none;}
#navbar ul li { margin:0; padding:0px; float:left; }
#navbar ul li a { font-size:12px; float:left; padding:0 0 0 20px; display:block;}
#banner { background-image:url('/includes/images/banner-background.jpg'); margin-top:-12px; width:100%; height:180px; clear:both; padding:0 0 0 0; text-align:center;}
#left_col { float:left; width:30%; height:600px; border:1px solid #333; color:#fff; padding:20px; }
#right_col { float:right; width:58%; height:600px; border:1px solid #333; color:#fff; padding:20px; }
#footer { padding:20px; clear:both; }
I dont know what would cause this but any help would be awesome. I'm continuing to look around for solutions but as of right now i guess i just don't know the best way to fix this.
Most likely because of the IE double margin bug. It occurs in IE6 when a floated element has a margin applied as well (in your case, most likely the #logo).
The fix is to add:
display: inline; to that element's CSS.

Website doesn’t fit properly in all screen resolutions

My site—as my screen size is quite small—fits perfectly.
E-mails sent to me stating my site looks completely off and in some cases hard to navigate.
www.rawpaste.com
As you can see on this image:
http://i.imgur.com/pQuqb6I.png
How do I make the site fit all screen sizes?
Here is the CSS:
http://rawpaste.com/themes/default/style/root.css
/* ================= Body Styles ================= */
body{
background:#F4F4F4;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#737F89;}
a{color:#367DB3;}
a:hover{ color:#333;}
/* ================= General ================= */
.wrapper{
width:980px;
margin:0px auto;
padding:50px 0px;}
#main{
padding-bottom:20px;
background:#fff url(../img/main-bg.png) repeat-y;
border-bottom:1px solid #D6D8D8;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
box-shadow:0px 1px 0px #DFDFDF;}
#sidebar{
width:188px;
float:left;
padding-left:1px;
padding-right:1px;}
#page{
width:789px;
float:right;
padding-right:1px;
position:relative;}
.center980{
margin:0px auto;
width:980px;}
.content{padding:20px 24px; line-height:17px; }
/* ================= Header ================= */
#header{
height:73px;
background:url(../img/header-bg.png) no-repeat;}
#header .logo{
width:190px;
float:left;
text-align:center;
padding:20px 0 0 0;}
#header .logo img:hover{ opacity:0.9;}
#notifications{
width:430px;
float:left;
padding-left:16px;
padding-top:18px;}
#quickmenu{
width:150px;
float:left;
padding-top:18px;}
.qbutton-left{
display:block;
width:42px;
height:25px;
float:left;
background:url(../img/qbutton.png) no-repeat 0px 0px;
text-align:center;
position:relative;
padding-top:11px;}
.qbutton-left:hover{background:url(../img/qbutton.png) no-repeat 0px -36px;}
.qbutton-normal{
display:block;
width:42px;
height:25px;
float:left;
background:url(../img/qbutton.png) no-repeat -42px 0px;
text-align:center;
position:relative;
padding-top:11px;}
.qbutton-normal:hover{background:url(../img/qbutton.png) no-repeat -42px -36px;}
.qbutton-right{
display:block;
width:43px;
height:25px;
float:left;
background:url(../img/qbutton.png) no-repeat -84px 0px;
text-align:center;
position:relative;
padding-top:11px;}
.qbutton-right:hover{background:url(../img/qbutton.png) no-repeat -84px -36px;}
.qballon{
background:url(../img/qballon.png) no-repeat;
width:19px;
height:21px;
display:block;
text-align:center;
color:#FDEDEC;
font-size:10px;
position:absolute;
top:-12px;
padding-top:4px;
right:2px;}
/* ================= Profilebox ================= */
#profilebox{
width:146px;
height:46px;
background:url(../img/profileboxbg.png) no-repeat;
float:right;
margin:14px 14px 0 0;
position:relative;}
#profilebox .display{
display:block;
padding:5px 6px;
font-size:11px;
color:#A5C6EC;
line-height:15px;}
#profilebox .display:hover{
text-decoration:none;}
#profilebox .display img{
border:0px solid #1D4E76;
float:left;
margin-right:7px;}
#profilebox .display b{
display:block;
color:#fff;}
#profilebox .display span{
background:url(../img/arrow-down.png) no-repeat right;
padding-right:11px;}
#profilebox .display:hover, #profilebox:hover{
background:url(../img/profileboxbg-hover.png) no-repeat;}
#profilebox:hover .profilemenu, .profilemenu:hover{ display:block;}
.profilemenu{
display:none;
background:#3C81B5;
border:1px solid #1C4D78;
border-top:none;
padding-top:3px;
margin-top:-3px;
position:relative;
z-index:1000;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;}
.profilemenu a{
display:block;
font-size:11px;
color:#A5C6EC;
padding:10px 7px;}
.profilemenu a:hover{
text-decoration:none;
color:#fff;
background:#306997;}
/* ================= Searchbox ================= */
#searchbox{
display:block;
background:url(../img/searchbox-bg.png) repeat-x bottom;
height:65px;}
#searchbox .in{
padding:15px 0 0 9px;}
#searchbox .input{
background:url(../img/searchbox.png) no-repeat;
width:131px;
border:none;
font:13px Arial, Helvetica, sans-serif;
color:#999;
padding:11px;
padding-left:30px;}
#searchbox .input-hover{
background:url(../img/searchbox-hover.png) no-repeat;
width:131px;
border:none;
font:13px Arial, Helvetica, sans-serif;
color:#666;
padding:11px;
padding-left:30px;}
/* ================= Sidemenu ================= */
#sidemenu{ padding:10px 0px;}
#sidemenu ul{
font-size:12px;
line-height:20px;}
#sidemenu li{
position:relative;}
#sidemenu a{
display:block;
color:#596677;
padding:9px 26px 9px 15px;
border-top:1px solid #F6F7F9;
border-bottom:1px solid #F6F7F9;}
#sidemenu a img{
margin-bottom:-4px;
margin-right:9px;}
#sidemenu a:hover{
text-decoration:none;
background:#EDF1F5;
color:#3F4C59;
border-top:1px solid #DCE7F0;
border-bottom:1px solid #DCE7F0;}
#sidemenu .ballon{
background:#94B5CF;
margin-left:6px;
border-radius:19px;
font-size:10px;
font-weight:bold;
line-height:normal;
color:#fff;
position:absolute;
border:1px solid #739BBF;
box-shadow:0px 1px 0px #fff;
right:9px;
top:11px;
padding:1px 5px;}
#sidemenu li a:hover .ballon{
background:#799FC1;
color:#fff;
border:1px solid #5384B0;}
#sidemenu .active a{
background:#fff;
border-top:1px solid #DFDFDF;
margin-right:-1px;
position:relative;
border-bottom:1px solid #DFDFDF;
color:#2C71A5;}
#sidemenu .active a .ballon{
top:10px;
right:10px;}
/* Submenu */
.submenu{
padding:0px;
border-bottom:1px solid #D6D6D6;
padding-bottom:6px;
display:none;}
#sidemenu .submenu a{
padding:5px 12px 5px 40px;
font-size:11px;}
#sidemenu .submenu img{
margin-right:8px;}
#sidemenu .submenu .ballon{
top:7px;}
.submenu .action{
position:relative;}
.subtitle .action .arrow{
position:absolute;
right:10px;
top:18px;}
/* ================= Stats ================= */
#stats{
display:none;
height:65px;
padding-left:20px;
background:#FFFADF url(../img/stats-bg.png) repeat-x bottom;}
#stats .column{
width:150px;
text-align:center;
float:left;
color:#9B936A;
font-size:11px;
margin-top:9px;
padding:2px 0px;
border-right:1px solid #F0E5BC;}
#stats .column b{
font-size:22px;
display:block;
color:#474643;
letter-spacing:-0.1px;
padding-bottom:5px;}
#stats .last{
border-right:none;}
#stats .column .up{ color:#488D46;}
#stats .column .down{ color:#D73535;}
#stats .close{
background:url(../img/icons/mini/close-stats.png) no-repeat center;
width:35px;
height:35px;
display:block;
text-indent:-9999px;
position:absolute;
right:0px;
top:0px;}
#stats .close:hover{
background:url(../img/icons/mini/close-stats-hover.png) no-repeat center;}
#stats .arrow{
position:absolute;
right:186px;
top:-9px;}
/* ================= Page Title ================= */
.page-title{
background:url(../img/page-title-minidot.png) repeat-x bottom;
border-bottom:1px solid #D1D3D3;
height:63px;}
.page-title .in{
padding:0px 24px;}
.page-title .titlebar{
color:#83929F;
font-size:11px;
width:480px;
float:left;
padding-top:14px;}
.page-title .titlebar h2{
color:#364656;
font-size:16px;
height:24px;}
.page-title .shortcuts-icons{
width:250px;
float:right;
padding-top:19px;}
/* ================= Shortcut ================= */
.shortcut{
background:url(../img/shortcut-normal.png) no-repeat top left;
width:25px;
display:block;
height:26px;
float:left;
margin-left:5px;}
.shortcut:hover{
background:url(../img/shortcut-hover.png) no-repeat top left;}
.shortcuts-icons a{
float:right;}
/* ================= Simple Tip ================= */
.simple-tips{
background:#FFFFCA url(../img/simple-tips-bg.png) repeat-x top;
border:1px solid #E0DBC2;
border-radius:3px;
padding:12px 17px;
color:#A79955;
font-size:11px;
line-height:20px;
margin:0 0 20px 0;
position:relative;
box-shadow:0px 1px 1px #F0F0F0;}
.simple-tips h2{
display:block;
color:#6D612E;
font-size:12px;}
.simple-tips .close{
background:url(../img/icons/mini/close-stats.png) no-repeat center;
width:35px;
height:35px;
display:block;
text-indent:-9999px;
position:absolute;
right:0px;
top:0px;}
/* ================= Dashbutton ================= */
.dashbutton-div{
padding:12px 0px;}
.dashbutton{
display:block;
text-align:center;
width:147px;
float:left;
margin-left:-1px;
margin-bottom:-1px;
border-radius:1px;
height:99px;
font-size:11px;
color:#7BA5C5;
padding-top:26px;
border:1px solid #DCE7F0;
overflow:hidden;
background:url(../img/dashbutton-normal.png) repeat-x bottom;}
.dashbutton img{
margin-bottom:19px;}
.dashbutton b{
color:#698296;
display:block;
font-size:12px;}
.dashbutton:hover{
background:url(../img/dashbutton-hover.png) repeat-x bottom;
color:#6798BC;
border:1px solid #CCDCEA;
position:relative;}
.dashbutton:hover b{
color:#4B5F6D;}
.dashbutton:active{
background:url(../img/dashbutton-active.png) repeat-x top;}
/* ================= Simple Box ================= */
.simplebox{}
.simplebox .titleh{
border:1px solid #CBDAE8;
background:url(../img/simplebox-title-bg.png) repeat-x bottom;
height:40px;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
position:relative;}
.simplebox .padding-in{
padding:10px;
line-height:18px;}
.simplebox .titleh h3{
font-size:12px;
color:#225983;
padding:13px 0 0 15px;}
.simplebox .shortcuts-icons{
position:absolute;
display:block;
text-align:right;
right:10px;
top:8px;}
.simplebox .shortcuts-icons a{
opacity:0.8;}
.simplebox .body{
border:1px solid #CBDAE8;
border-top:none;
color:#748897;
box-shadow:0px 1px 0px #eee;
background:#fff url(../img/simplebox-dot.png) repeat-x top;}
.simplebox .button-box{
border-top:1px solid #E6EDF4;
background:#FDFDFD url(../img/simplebox-dot.png) repeat-x top;
padding:15px 180px;}
/* ================= Simple Title ================= */
.simpletitle{
font-size:14px;
color:#215983;
padding:15px 0px;
border-bottom:1px solid #CBDAE8;
position:relative;}
.simpletitle .shortcuts-icons{
position:absolute;
display:block;
text-align:right;
right:10px;
top:10px;}
/* ================= Gallery ================= */
.get-photo{
margin:16px 10px 0 0;
float:left;
width:175px;
font-size:11px;
font-weight:bold;
color:#7A899C;
position:relative;
height:140px;}
.get-photo img{
border-radius:1px;}
.get-photo:hover .buttons{
display:block;}
.get-photo:hover p{color:#53606F;}
.get-photo p{
padding-top:10px;}
.get-photo .buttons{
display:none;
position:absolute;
top:0;
right:0;
padding:5px 4px;}
.mini-delete{
display:block;
width:19px;
height:19px;
text-indent:-9999px;
float:right;
margin-left:3px;
background:url(../img/icons/mini/gallery-icon.png) no-repeat 0px 0px;}
.mini-delete:hover{
background:url(../img/icons/mini/gallery-icon.png) no-repeat 0px -40px;}
.mini-edit{
display:block;
width:19px;
height:19px;
text-indent:-9999px;
float:right;
margin-left:3px;
background:url(../img/icons/mini/gallery-icon.png) no-repeat 0px -20px;}
.mini-edit:hover{
background:url(../img/icons/mini/gallery-icon.png) no-repeat 0px -60px;}
/* ================= Error Pages ================= */
.error-page{text-align:center;margin:10px 0;}
.error-page h2{
font-size:21px;
line-height:28px;
padding:14px 0px;}
.error-page .red{ color:#E76463;}
.error-page .blue{ color:#76A6D3;}
.error-page .green{ color:#99C584;}
.error-page p{
font-size:12px;
color:#858585;
line-height:22px;
padding:24px 0px;
border-top:1px solid #EDEDED;
border-bottom:1px solid #EDEDED;}
.error-page .button{
font-size:14px;
color:#808080;
font-weight:bold;
padding:8px 14px;
border-radius:3px;
border:1px solid #C5C5C5;
border-bottom:1px solid #9D9D9D;
background:#fff url(../img/error-page-buttonbg.png) repeat-x bottom;}
.error-page .button:hover{
color:#333;
box-shadow: 0px 0px 1px #c6c6c6;
border:1px solid #BCBCBC;
border-bottom:1px solid #999;}
/* ================= Form Elements ================= */
input, select, textarea{
background:#fff;
border:1px solid #D2D4D4;
border-top:1px solid #A5A6A6;
border-radius:2px;
color:#333;
font:12px Arial, Helvetica, sans-serif;
padding:7px 6px;}
.st-form-line{
display:block;
border-bottom:1px solid #E5E5E5;
padding:16px 20px;}
.st-labeltext{
display:block;
color:#3C5868;
float:left;
width:150px;
line-height:20px;
font-size:12px;
padding-top:3px;
padding-right:10px;}
.st-forminput{
background:#fff url(../img/st-forminput-bg.png) repeat-x top;
border:1px solid #D2D4D4;
border-top:1px solid #A5A6A6;
border-radius:2px;
color:#A5A5A5;
font:12px Arial, Helvetica, sans-serif;
padding:7px 6px;}
.st-disable{
background:#fafafa;}
.st-forminput-active{
background:#fff url(../img/st-forminput-bg.png) repeat-x top;
border:1px solid #B5B7B7;
border-top:1px solid #8E8F8F;
border-radius:2px;
color:#666666;
font:12px Arial, Helvetica, sans-serif;
padding:7px 6px;
width:auto;}
.datepicker-input{
background:#fff url(../img/datepicker-bg.png) repeat-x top right;
border-radius:2px;
color:#666;
padding:7px 6px;
border:1px solid #D2D4D4;
border-top:1px solid #A5A6A6;
font:12px Arial, Helvetica, sans-serif;}
.st-button{
background:url(../img/default-button.png) repeat-x top;
font:bold 12px Arial, Helvetica, sans-serif;
color:#fff;
border:1px solid #1A527D;
border-bottom:1px solid #0F3049;
border-radius:2px;
padding:6px 10px;
margin-right:10px;
text-shadow: 0px -1px #174B73;}
.st-button:hover{
border:1px solid #133E5C;
border-bottom:1px solid #0B2436;}
.st-button:active{box-shadow: inset 0 0 0.5em #174B73;}
.st-clear{
background:#fff url(../img/error-page-buttonbg.png) repeat-x bottom;
font:bold 12px Arial, Helvetica, sans-serif;
color:#818181;
border:1px solid #C5C5C5;
border-bottom:1px solid #969696;
border-radius:2px;
padding:6px 10px;
margin-right:10px;}
.st-clear:hover{
border:1px solid #B1B1B1;
border-bottom:1px solid #878787;}
.st-clear:active{box-shadow: inset 0 0 0.5em #ccc;}
.st-success-input{
background:#EAF2EC url(../img/st-forminput-bg.png) repeat-x top;
border:1px solid #A9CFB0;
border-top:1px solid #85A38B;
border-radius:2px;
color:#55A163;
font:12px Arial, Helvetica, sans-serif;
padding:8px 6px;}
.st-form-success{
color:#437E4C;
font-size:12px;
margin-left:10px;}
.st-error-input{
background:#FBF4F5 url(../img/st-forminput-bg.png) repeat-x top;
border:1px solid #E2B5BE;
border-top:1px solid #B28F96;
border-radius:2px;
color:#99626B;
font:12px Arial, Helvetica, sans-serif;
padding:8px 6px;}
.st-form-error{
color:#99616B;
font-size:12px;
margin-left:10px;}
/* ================= Chart ================= */
.chart{
background:#EAF0F6;
padding-bottom:14px;}
/* ================= Tiny Title ================= */
.st-tinytitle{
padding:7px 0 13px 0;
border-bottom:1px solid #EBF1F6;
margin-bottom:20px;}
.st-tinytitle h3{
color:#727F88;
padding-bottom:5px;
font-size:14px;}
.st-tinytitle p{
color:#87929A;
font-size:11px;
line-height:15px;}
/* ================= Alert Boxes ================= */
.albox{
font-size:12px;
line-height:17px;
box-shadow:0px 1px 0px #F7F7F7;
position:relative;
margin:15px 0px;
padding:14px 42px;
border-radius:3px;}
.albox .close{
display:block;
position:absolute;
width:30px;
height:30px;
text-indent:-9999px;
right:0;
top:0;
background:url(../img/icons/mini/close-opacity-21.png) no-repeat center;}
.albox .close:hover{
background:url(../img/icons/mini/close-opacity-42.png) no-repeat center;}
.albox .icon{
position:absolute;
left:14px;
top:14px;}
.warningbox{
background:#FFF8D8 url(../img/icons/error/error.png) no-repeat 14px 14px;
border:1px solid #F3D97E;
color:#A68510;}
.succesbox{
background:#EBF9E2 url(../img/icons/error/accept.png) no-repeat 14px 14px;
border:1px solid #BEE4A5;
color:#658C2C;}
.informationbox{
background:#E9F3F8 url(../img/icons/error/help.png) no-repeat 14px 14px;
border:1px solid #BBD7E4;
color:#3876C6;}
.errorbox{
background:#F8E9E9 url(../img/icons/error/cross.png) no-repeat 14px 14px;
border:1px solid #E4BBBC;
color:#BF2C11;}
/* ================= Dialog Boxes ================= */
.dialogbox{
background:#F8F8F8;
border:1px solid #DEDEDE;
color:#666;}
/* ================= Icon Buttons ================= */
.icon-button{
border-radius:4px;
margin:2px;
padding:8px 10px;
border:1px solid #CDDCEA;
border-bottom:1px solid #B8C6D2;
background:#fff url(../img/iconbutton-bg.png) repeat-x bottom;}
.icon-button:hover{
border:1px solid #AFC8DD;
border-bottom:1px solid #96ABBC;}
.icon-button img{
margin-bottom:-5px;}
.icon-button:active{
background:#fff url(../img/icon-button-bg-active.png) repeat-x top;}
.icon-button span{
padding-left:8px;
color:#2E71A5;}
.icon-button a:hover span{
color:#2E71A5;}
/* ================= Button Styles ================= */
.button-blue{
background:#4088BF url(../img/button-blue.png) repeat-x bottom;
font:bold 12px Arial, Helvetica, sans-serif;
color:#fff;
border:1px solid #1A527D;
border-bottom:1px solid #0F3049;
border-radius:2px;
padding:7px 10px;
margin:0px 3px;
text-shadow: 0px -1px #174B73;}
.button-blue:hover{
border:1px solid #0F3049;
border-bottom:1px solid #0F3049; opacity:0.95;}
.button-blue:active{box-shadow: inset 0 0 0.5em #174B73;}
.button-aqua{
background:#519EAC url(../img/button-aqua.png) repeat-x bottom;
font:bold 12px Arial, Helvetica, sans-serif;
color:#fff;
border:1px solid #27676E;
border-bottom:1px solid #173C40;
border-radius:2px;
padding:7px 10px;
margin:0px 3px;
text-shadow: 0px -1px #27676E;}
.button-aqua:hover{
border:1px solid #173C40;
border-bottom:1px solid #173C40; opacity:0.95;}
.button-aqua:active{box-shadow: inset 0 0 0.5em #174B73;}
.button-green{
background:#51AC53 url(../img/button-green.png) repeat-x bottom;
font:bold 12px Arial, Helvetica, sans-serif;
color:#fff;
border:1px solid #276E27;
border-bottom:1px solid #174017;
border-radius:2px;
padding:7px 10px;
margin:0px 3px;
text-shadow: 0px -1px #276E27;}
.button-green:hover{
border:1px solid #174017;
border-bottom:1px solid #174017; opacity:0.95;}
.button-green:active{box-shadow: inset 0 0 0.5em #174017;}
.button-gray{
background:#fff url(../img/button-gray.png) repeat-x bottom;
font:bold 12px Arial, Helvetica, sans-serif;
color:#818181;
border:1px solid #C5C5C5;
border-bottom:1px solid #969696;
border-radius:2px;
padding:7px 10px;
margin:0px 3px;
text-shadow: 0px -1px #fff;}
.button-gray:hover{
border:1px solid #969696;
color:#666;
border-bottom:1px solid #969696; opacity:0.95;}
.button-gray:active{box-shadow: inset 0 0 0.5em #ccc;}
.button-red{
background:#A2665B url(../img/button-red.png) repeat-x bottom;
font:bold 12px Arial, Helvetica, sans-serif;
color:#fff;
border:1px solid #67352E;
border-bottom:1px solid #3C1F1B;
border-radius:2px;
padding:7px 10px;
margin:0px 3px;
text-shadow: 0px -1px #67352E;}
.button-red:hover{
border:1px solid #3C1F1B;
color:#666;
border-bottom:1px solid #3C1F1B; opacity:0.95;}
.button-red:active{box-shadow: inset 0 0 0.5em #3C1F1B;}
.button-blue:hover, .button-aqua:hover, .button-green:hover, .button-red:hover{ color:#fff;}
/* ================= Pagination ================= */
.pagination{
text-align:center;
padding:20px 0px;}
.pagination li{
display:inline;
text-align:center;
font-size:12px;
color:#3E7CAC;
padding-right:3px;
font-weight:bold;}
.pagination li a{
color:#3E7CAC;
border:1px solid #D6D6D6;
border-radius:3px;
background:url(../img/simplebox-title-bg.png) repeat-x bottom;
padding:8px 12px;
box-shadow:0px 1px 1px #EDEDED;}
.pagination li a:hover{
border:1px solid #C5C5C5;
color:#333;}
.pagination li a:active{
box-shadow: inset 0 0 0.5em #D6D6D6;}
/* ================= Page Wrap ================= */
.pagewrap{
background:url(../img/pagewrapbg.png) repeat-x bottom;
border-top:1px solid #CBDAE8;
border-bottom:1px solid #CBDAE8;
font-size:12px;
color:#859099;
padding-left:5px;
height:38px;}
.pagewrap li{
display:inline;
background:url(../img/page-wrap-libg.png) no-repeat right;
line-height:38px;
padding:12px 20px 12px 8px;}
.pagewrap a{
color:#859099;}
.pagewrap a:hover{
color:#344654;}
/* ================= Statistics ================= */
.statistics{ padding:0;}
.statistics li{
border-bottom:1px solid #E3EBF3;
padding:12px 14px;
display:block;
position:relative;}
.statistics li p{
display:block;
position:absolute;
text-align:right;
right:14px;
top:12px;}
.statistics .green{ color:#308359;}
.statistics .blue{ color:#4B789A;}
.statistics .red{ color:#CD6557;}
/* ================= Toggle Message ================= */
.toggle-message{
background:#F7F9FC url(../img/toogle-message-bg.png) repeat-x top;
border:1px solid #CBDAE8;
cursor:pointer;
border-radius:2px;
position:relative;
line-height:21px;}
.toggle-message .title{
color:#40515E;
padding:10px 15px;}
.toggle-message:hover{
border:1px solid #B3C9DD;}
.toggle-message .title:hover{
color:#344654;}
.toggle-message .hide-message{
color:#586873;
padding:15px;
display:none;
padding-top:0;}
.toggle-message .d-icon{
position:absolute;
right:15px;
top:19px;}
/* ================= Tabs ================= */
#tabs{border:1px solid #fff;}
/* ================= Sliders ================= */
#slider-range-max, #slider-range, #slider{
border:1px solid #D2D4D4;
background:#EBF5FE;
height:10px;
border-top:2px solid #A6A7A7;
border-radius:20px;}
/* ================= Accordion ================= */
#accordion{
border-radius:0px;}
#accordion h3 a{
color:#40515E;
border-radius:0px;
font:bold 12px Arial, Helvetica, sans-serif;
background:none;}
/* ================= Imagebox ================= */
.imagebox{
padding:15px;}
.imagebox img{
float:left;
margin:2px;
border:2px solid #fff;}
.imagebox img:hover{
border:2px solid #215983;}
/* ================= Loading Box ================= */
.loadingbox{
text-align:center;
padding:35px 10px;
border:1px solid #CBDAE8;
color:#9BA4AB;
font-size:11px;
line-height:19px;}
.loadingbox h3{
font-size:20px;
color:#344654;
padding:20px 0px;}
/* ================= Footer ================= */
#footer{
color:#B3C6D5;
font-size:11px;
line-height:17px;
padding:20px 0 0 0;}
#footer .left-column{
float:left;
width:660px;}
#footer .right-column{
float:right;
width:280px;
text-align:right;}
/* ================= Login Form ================= */
.loginform{
width:360px;
margin:0px auto;
margin-top:50px;
box-shadow:0px 4px 90px #EEEEEE;
}
.loginform .title{
background:url(../img/login-title.png) no-repeat;
text-align:center;
height:50px;
padding-top:20px;}
.loginform .body{
padding:23px 29px 40px 29px;
background:url(../img/login-form-body-bg.png) repeat-x bottom;}
.login-input-pass{
border:none;
font:19px Arial, Helvetica, sans-serif;
color:#B6C3C9;
width:250px;
border:1px solid #CED3D8;
border-radius:3px;
border-top:1px solid #A0A4A9;
padding:10px;
padding-left:40px;
margin-bottom:19px;
background:url(../img/password-input.png) repeat-x top;}
.login-input-pass-active{
border:none;
font:19px Arial, Helvetica, sans-serif;
color:#8A9EA8;
width:250px;
border:1px solid #CED3D8;
border-radius:3px;
border-top:1px solid #A0A4A9;
padding:10px;
padding-left:40px;
margin-bottom:19px;
background:url(../img/password-input.png) repeat-x top;}
.login-input-user{
border:none;
font:19px Arial, Helvetica, sans-serif;
color:#B6C3C9;
width:250px;
border:1px solid #CED3D8;
border-radius:3px;
border-top:1px solid #A0A4A9;
padding:10px;
padding-left:40px;
margin-bottom:19px;
background:url(../img/username-input.png) repeat-x top;}
.login-input-user-active{
border:none;
font:19px Arial, Helvetica, sans-serif;
color:#8A9EA8;
width:250px;
border:1px solid #CED3D8;
border-radius:3px;
border-top:1px solid #A0A4A9;
padding:10px;
padding-left:40px;
margin-bottom:19px;
background:url(../img/username-input.png) repeat-x top;}
.loginform .log-lab{
color:#A4AAB2;
font-size:14px;
font-weight:bold;
display:block;
padding-bottom:11px;}
.loginform .button{
width:300px;
height:49px;
font:bold 16px Arial, Helvetica, sans-serif;
color:#fff;
background:url(../img/login-button.png) no-repeat 0px 0px;
border:none;}
.loginform .button:hover{
background:url(../img/login-button.png) no-repeat 0px -50px;}
.loginform .button:active{
background:url(../img/login-button.png) no-repeat 0px -100px;}
/* input */
input.post_input,select.post_select {
font-family:trebuchet MS,Lucida Sans Unicode, Lucida Sans, Sans-Serif;
background-color:#F9F9F9;
width:160px;
border:1px solid #ccc;
color:#181818;
font-size:1em;
padding:5px;
}
input.post_input {
width:160px;
}
/* Max lenght */
.notification {
border:3px solid #d55b5b;
background-color: #ffcdcd;
padding:5px;
}
The solution is tricky BUT it's totally do-able! I had to solve a similar problem at a former job where we had a two-column style layout that needed to fit all screen resolutions.
FIRST (we'll deal with width later), we want to create a "table-like" feel for the two columns ("sidebar" and "page"), which means if the sidebar is taller than the content in a page, the background of the "page" column should extend all the way to the bottom (same height as sidebar), and vise-versa. To accomplish this, we do a little div-ception as follows:
<div id="main">
<div id="two_columns">
<div id="sidebar">
<!-- Content goes here -->
</div>
<div id="page">
<!-- Content goes here -->
</div>
<!-- Cross-browser clearing of floats -->
<div style="clear:both;"></div>
</div>
</div>
What we want to do here is give "main" the same background as "sidebar" and "two_columns" the same background as "page". This way, when either "sidebar" or "page" grow in height, BOTH "main" and "two_columns" are forced to grow in height with it.
SECONDLY, we want to ensure that this can fit ALL screen resolutions. Luckily, this div-ception setup is well suited for this. We'll pretend the backgrounds are colours for simplicity.
#main {
/*
No width shall be set! It will expand to
fit inside its parent.
*/
background-color:#e5e5e5;
border:1px solid #aeaeae; /* I think borders are pretty */
}
#two_column {
margin-left:190px; /* width is 190px less than parent ("main") */
background-color:#fff;
}
#sidebar {
margin-left:-190px;
float:left;
width:189px;
border-right:1px solid #aeaeae; /* Borders are pretty */
}
#page {
float:right;
/*
Fill to width of parent container "two_column" which
is "main"s width - 190 (and "main" might be the same
width as the body, if you so choose).
*/
width:100%;
}
And BOOM! That should do it.
change this :
#page {
width: 789px;
float: left;
padding-right: 1px;
position: relative;
}
also you should put a width to the main container for small screens:
#main {
width: 1000px;
}
You've designed your site based on a fixed width - quick fix would be to set a width on the body as well -
body {
width: 980px;
}
If you really want your site to look good on larger (and smaller screens) you should consider adapting a responsive design solution. Great frameworks include zurb foundation: http://foundation.zurb.com/ as well as twitter bootstrap : http://twitter.github.com/bootstrap/

CSS drop-down submenu text issue

Ok. So I have started to build a website, and I have tried to build a dropdown menu using css and html. The hover function for the submenu works. My only issue is, when you mouse over the menu to get to the submenu, I can't figure out how to change the font to black so it is visible.Here is a page where I am testing the code: http://mcbtaytest.zymichost.com/
Here is my code:
CSS:
body {margin:0;
padding:0;
background:#000000
}
.image{
border: none;
border:0px;
margin:0px;
padding:0px;
z-index: -1;
}
.menu{
border:none;
border:0px;
margin:0px;
padding:0px;
font: 67.5% "Lucida Sans Unicode", "Bitstream Vera Sans", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif;
font-size:14px;
font-weight:bold;
z-index:2;
}
.menu ul{
background:#FFFFFF;
height:50px;
list-style:none;
margin:0;
padding:0;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
-webkit-box-shadow: inset 0px 16px 0px 0px rgba(255, 255, 255, .1);
-moz-box-shadow: inset 0px 16px 0px 0px rgba(255, 255, 255, .1);
box-shadow: inset 0px 16px 0px 0px rgba(255, 255, 255, .1);
}
.menu li{
float:left;
padding:0px 0px 0px 15px;
}
.menu li a{
color:#000000;
display:block;
font-weight:normal;
line-height:50px;
margin:0px;
padding:0px 25px;
text-align:center;
text-decoration:none;
}
.menu li a:hover{
background:#000000;
color:#FFFFFF;
text-decoration:none;
-webkit-box-shadow: inset 0px 0px 7px 2px rgba(0, 0, 0, .3);
-moz-box-shadow: inset 0px 0px 7px 2px rgba(0, 0, 0, .3);
box-shadow: inset 0px 0px 7px 2px rgba(0, 0, 0, .3);
}
.menu ul li:hover a{
background:#000000;
color:#FFFFFF;
text-decoration:none;
}
.menu li ul{
display:none;
height:auto;
padding:0px;
margin:0px;
border:0px;
position:absolute;
width:200px;
z-index:200;
}
.menu li:hover ul{
display:block;
}
.menu li li {
display:block;
float:none;
margin:0px;
padding:0px;
width:200px;
background:#FFFFFF;
/*this is where the rounded corners for the dropdown disappears*/
}
.menu li:hover li a{
background:none;
}
.menu li ul a{
display:block;
height:50px;
font-size:12px;
font-style:normal;
margin:0px;
padding:0px 10px 0px 15px;
text-align:left;
}
.menu li ul a:hover, .menu li ul li:hover a{
border:0px;
color:#ffffff;
text-decoration:none;
background:#000000;
-webkit-box-shadow: inset 0px 0px 7px 2px rgba(0, 0, 0, .3);
-moz-box-shadow: inset 0px 0px 7px 2px rgba(0, 0, 0, .3);
box-shadow: inset 0px 0px 7px 2px rgba(0, 0, 0, .3);
}
HTML:
<div class="image">
<img src="/Resources/img/Header.png" width=100% style={margin:0;padding:0;}/></img>
</div>
<div class="menu">
<ul>
<li><a href="#" >Home</a></li>
<li>
About
<ul>
<li>Company Info</li>
</ul>
</div>
I for some reason can't figure out how to solve this.
Edited:
Change the following line
.menu ul li:hover a
with this line;
.menu ul li:hover > a
It is more specific now.
SEE DEMO
I made some changes to your html (it was broken, and some elements where redundant), and your css (removed some selectors and rewrote others).
Is this something like what you were going for?
add color:#000 on .menu li:hover li a:
.menu li:hover li a{
background:none;
color:#000;
}

IE8 Footer Issue

Why is my footer not displaying full page
width in IE8:
Display:
http://cl.ly/0J2Z0l1w3S1e0A3d3Q1V
HTML:
<footer>
content
</footer
/*Reset */
html, body, #wrapper, #main h1, h2, h3, h4, h5, h6, form, input, ul, ol, p, fieldset { padding: 0; margin: 0; }
/* Main CSS */
html, body,#wrapper{
width:990px;
height:100%;
min-height:100%;
margin: 0 auto;
}
#wrapper{
position: absolute;
}
#header{
position:relative z-index:500;
background:url('../images/header.png');
width:990px;
height:220px;
}
/*Menu */
nav{
float:left;
width:190px;
margin:0 0 0 0;
}
nav ul{
float:left;
margin:0;
list-style:none;
font-size:14px;
width:190px;
}
nav li a{
font-size:14px;
color:#fff;
line-height:25px; /*Text Hight On Button */
text-decoration:none;
text-indent:25px;
display:block;
width:190px;
height:27px;
background-image:url('../images/normal.png');
}
nav a:hover{
background-image:url('../images/onclick.png');
}
/*Content */
#content{
margin: 0 0 0 190px;
background:url('../images/mainbg.png') no-repeat;
width:815px;
height:555px;
}
#content h1{
margin: 5px 0 0 10px;
font-family: 'Josefin Slab', arial, serif;
font-size:24px;
}
#content p{
margin:0 0 0 15px;
}
#content li{
margin:0 0 0 35px;
}
.clear{
clear:both;
margin:0;
padding:0;
}
footer{
clear:both;
overflow:hidden;
bottom:0;
background:url('../images/footer.png') no-repeat #000;
width:100%;
height:20px;
border: 6px solid pink;
}
/* Misc*/
#metal{
float:left;
margin:160px 0 0 -190px;
background:url('../images/metalnavbg.png');
height:400px;
width:190px;
}
/* Text Formatting */
#companyName{
text-align:center;
padding-top:45px;
font-size:35px;
color:#f0f0ef;
}
#companyQuote{
text-align:center;
font-size:18px;
color:#a5a4a2;
}
/*Forms */
/*General*/
#validation{
font-weight:bold;
color:#ff0101;
}
.contactForm{
width: 450px;
height:425px;
padding: 15px 25px;
margin: 0 auto 10px;
color: #000;
-moz-border-radius:15px;
-webkit-border-radius:15px;
overflow: hidden;
}
#validation{
font-weight:bold;
color:#ff0101;
}
.form{
width: 400px;
height:100%;
padding: 15px 25px;
margin: 0 auto 10px;
color: #000;
-moz-border-radius:15px;
-webkit-border-radius:15px;
overflow: hidden;
}
.borderradius.form{
width: 400px;
height:100%;
padding: 15px 25px;
margin: 0 auto 10px;
color: #000;
-moz-border-radius:15px;
-webkit-border-radius:15px;
overflow: hidden;
}
fieldset{
border:none;
}
#formLayout{
border:2px solid #000;
}
#formLayout label{
clear: both;
display: block;
}
#formLayout input{
font-size:12px;
border: 2px solid #999;
padding: 6px 8px;
background-color: #fff;
-moz-border-radius:10px;
-webkit-border-radius:10px;
-webkit-box-shadow: inset 0px 2px 2px rgba(0,0,0,0.2);
-moz-box-shadow: inset 0px 2px 2px rgba(0,0,0,0.2);
color: #000;
width: 250px;
}
#formLayout .small{
color:#ff0101;
display:block;
font-size:11px;
font-weight:bold;
text-align:left;
width:140px;
}
#formLayout textarea{
width:250px;
}
#error{
width:250px;
height:20px;
margin:-30px 0 0 270px;
padding-bottom:10px;
}
#error p{
color:#ff0101;
text-align:left;
}
/* Specific Form Class's */
.login{
width: 470px;
height:250px;
padding: 15px 25px;
margin: 0 auto 10px;
color: #000;
-moz-border-radius:15px;
-webkit-border-radius:15px;
overflow: hidden;
}
.login label{
font-weight:bold;
}
.login .loginSubmit{
margin-top:25px;
}
/*Gallery CSS */
#gallery{
width:120px;
margin-left:5px;
display: inline;
}
#gallery .thumbnail{
margin:0 auto;
display:inline;
}
#gallery img{
margin:5px;
}
#sales{
width:190px;
height:195px;
margin-left:15px;
display:inline-block;
border: 1px solid red;
}
#sales .location{
float:left;
text-align:center;
font-weight:bold;
margin-left:15px;
}
#sales .price{
float:left;
text-align:left;
font-weight:bold;
padding-left:5px;
color:#ff0101;
}
If you're using <footer> (a fancy schmancy HTML5 tag) sometimes IE does not like it. This is how I've fixed issues like this. Add this to your <head>:
<script>document.createElement('footer');</script>
It may not be what's causing your issue, but I've notice when trying to use HTML5 tags, IE pretty much ignores them or renders them strangely.
Add display: block to your footer tag.
In fact, all fancy schmancy HTML5 tags should be set up.
/* HTML5 block-level reset for enhanced structural tag support in older browsers */
header, footer, section, aside, nav, article, figure { display: block; padding: 0; margin: 0; }
I have fixed this issue by floating my footer div to the left
Download Modernizr and put this script to the head of HTML site. Basically this script will register all HTML5 elements for browser. Consequently IE won't break any more unknown elements.