Chrome bug: Grey border showing up in chrome on page load? - css

I am noticing when i first load the page, I am noticing a grey border at the bottom of the chrome. It only happens when i open the browser after clearing all the cache. it does not happen when a 2nd tab is opened for the same page
Can any show me how to fix this and what could be causing this? I am attaching a screen grab below and the entire html and css
I am using Chrome version Version 27.0.1453.94 m
CSS
BODY {
padding:0;
margin:0;
background-color: #8DA3AE;
height:100%;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, #95ABB6 0%, #6D838E 100%);
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, #95ABB6 0%, #6D838E 100%);
/* Opera */
background-image: -o-linear-gradient(top, #95ABB6 0%, #6D838E 100%);
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #95ABB6), color-stop(1, #6D838E));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, #95ABB6 0%, #6D838E 100%);
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(to bottom, #95ABB6 0%, #6D838E 100%);
height: 100%;
background-repeat: no-repeat;
background-attachment: fixed;
width: 100%;
background-position: 0px 0px;
}
HTML {
height:100%;
}
input{
width: 172px;
}
.WhiteBg {
padding:0;
margin:0;
background: #FFFFFF;
}
/* Messages classes */
.ErrorMessageCSSClass{
color : red ;
}
.InfoMessageCSSClass{
color : blue ;
}
.WarningMessageCSSClass{
color : green ;
}
.MessageCSSClass{
}
/* ----------------------------------------------------------------- */
/* Login Styles */
.LoginPage {
background-image: url("../images/Login.gif");
background-position: center top;
background-repeat: no-repeat;
border-style: solid;
border-width: 1px;
color: #000000;
font: 12px Arial,Helvetica,sans-serif;
height: 405px;
position: relative;
text-align: left;
top: 200px;
width: 480px;
}
.LoginErrorPage {
background: url(../images/Login_error.gif) no-repeat left top;
font: 12px Arial, Helvetica, sans-serif;
color: #000000;
position: relative;
top: 150px;
height: 386px;
width: 432px;
text-align: left;
}
/* Error Message Area */
.LoginErrorLayer {
-x-system-font:none;
border:1px solid;
color:red;
background-color:white;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:16px;
overflow:hidden;
padding-bottom:2px;
padding-left:5px;
padding-top:2px;
text-align:left;
}
/* Button Normal Size Style */
.BtnLoginStyle {
border: 1px solid #BECDDC;
color: #000000;
display: block;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
height: 23px;
overflow: hidden;
padding: 0;
position: absolute;
text-align: center;
text-decoration: none;
top: 340px;
width: 61px;
}
.BtnLoginStylePressed {
border: 1px solid #BECDDC;
color: #222222;
display: block;
font: 12px/22px Arial,Helvetica,sans-serif;
height: 23px;
overflow: hidden;
padding: 0;
position: absolute;
text-align: center;
text-decoration: none;
top: 342px;
width: 61px;
}
.BtnLoginStyle A.Normal {
font: 12px/22px Arial, Helvetica, sans-serif;
color: #000000;
text-decoration: none;
height: 100%;
width: 100%;
display:block;
text-align: center;
background-image: url(../images/LoginButtonNormal.gif) no-repeat;
}
.BtnLoginStyle A.Pressed {
font: 12px/22px Arial, Helvetica, sans-serif;
color: #000000;
text-decoration: none;
height: 100%;
width: 100%;
display:block;
text-align: center;
background: url(../images/LoginButtonPressed.gif) no-repeat;
}
/* Button Big Size Style */
.BtnBigLoginStyle {
position:absolute;
top:346px;
width:118px;
height:23px;
z-index:1;
overflow: hidden;
}
.BtnBigLoginStyle A.Normal {
font: 12px/22px Arial, Helvetica, sans-serif;
color: #000000;
text-decoration: none;
height: 100%;
width: 100%;
display:block;
text-align: center;
background: url(../images/BigButtonNormal.gif) no-repeat;
}
.BtnBigLoginStyle A.Pressed {
font: 12px/22px Arial, Helvetica, sans-serif;
color: #000000;
text-decoration: none;
height: 100%;
width: 100%;
display:block;
text-align: center;
background: url(../images/BigButtonpRressed.gif) no-repeat;
}
.LoginVerNum {
position:absolute;
left:135px;
top:88px;
width:136px;
height:16px;
z-index:3;
font: 11px Arial, Helvetica, sans-serif;
color: #003984;
}
.LoginProductName {
color: #013A85;
font-family: Arial, Helvetica, sans-serif;
font-size: medium;
font-weight: bold;
height: 17px;
left: 135px;
position: absolute;
top: 107px;
width: 289px;
z-index: 7;
}
.LoginEnterInfo {
position:absolute;
left:206px;
top:196px;
width:187px;
height:20px;
z-index:4;
text-align: right;
}
.LoginFieldBoxArea {
position:absolute;
left:245px;
top:205px;
width:200px;
height:59px;
z-index:5;
}
.LoginEntryBoxDiv {
position:relative;
width:100%;
height:28px;
}
.LoginFieldNameArea {
position:absolute;
left:145px;
top:200px;
width:93px;
height:59px;
z-index:6;
}
.LoginFieldName {
position:relative;
display:block;
height:28px;
text-align: right;
line-height: 17px;
font: 12px Arial, Helvetica, sans-serif;
}
.FieldsStyle {
font: 12px arial;
color: #000000;
width: 100%;
}
.LoginCopyright {
color: #5D5D5D;
font: 10px Arial;
height: 15px;
left: 210px;
position: absolute;
text-align: center;
top: 375px;
width: 240px;
z-index: 2;
}
.LoginOptions {
position:absolute;
text-align: center;
left:282px;
top:258px;
width:174px;
height:25px;
z-index:2;
font: 12px Arial;
text-decoration: underline;
color: #001ad5;
}
.LoginRemember {
position:absolute;
text-align: center;
left:135px;
top:278px;
width:334px;
height:25px;
z-index:2;
font: 12px Arial;
color: #000000;
}
.LoginWarning {
position:absolute;
text-align: center;
left:114px;
top:303px;
width:334px;
height:25px;
z-index:2;
font: 12px Arial;
color: #000000;
}
/* ----------------------------------------------------------------- */
/* Login Styles */
.HelpPage {
background: #FFFFFF url(../images/HelpAboutbg.jpg) no-repeat left top;
font: 12px Arial, Helvetica, sans-serif;
color: #000000;
}
.HelpInfoArea {
position:absolute;
left:10px;
top:257px;
width:411px;
height:7px;
z-index:1;
font: 14px/20px Arial, Helvetica, sans-serif;
color: #FFFFFF;
text-align: center;
}
.HelpAppName {
display:block;
}
.HelpVerNum {
display:block;
}
/*
POLICY PERMISSION
*/
.groupList{
width : 400px ;
height: 388px ;
border: 1 ;
border-color: blue;
}
.viewGroupList{
width : 310px ;
height: 180px ;
border: 1 ;
border-color: blue;
}
.ackGroupList{
width : 310px ;
height: 180px ;
border: 1 ;
border-color: blue;
}
.rightButton{
border: 0 ;
width: 20px ;
height: 20px;
}
.leftButton{
border: 0 ;
width: 20px ;
height: 20px;
}
.selectOneMenu{
width: 150px;
}
.autoCompleteText{
width:320px ;
}
.autoCompleteSuggest{
width:340px ;
border-color: blue ;
}
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title> </title>
<title> </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- <style type="text/css" media="screen">#import 'css/cas.css';</style> -->
<style type="text/css" media="screen">#import 'css/ie_cas.css';</style>
<style type="text/css" media="screen">#import 'css/loginscreen.css'/**/;</style>
<script type="text/javascript" src="js/common_rosters.js"></script>
<link rel="icon" href="/cas-server/favicon.ico" type="image/x-icon" />
</head>
<body id="cas" onload="init();">
<div id="content">
<SCRIPT>
function showDownImage(id) {
var NAME = document.getElementById(id)
NAME.className="BtnLoginStylePressed"
}
function showUpImage(id) {
var NAME = document.getElementById(id)
NAME.className="BtnLoginStyle"
}
</SCRIPT>
<div align="center">
<form id="fm1" class="fm-v clearfix" action="" method="post">
<div class="LoginPage">
<input class="BtnLoginStyle" id="submit" name="submit" onmousedown="showDownImage('submit');" onmouseup="showUpImage('submit');" onmouseout=showUpImage('submit'); accesskey="l" value="Login" tabindex="4" type="submit" style="left:310px;" />
<input class="BtnLoginStyle" id="reset" name="reset" onmousedown="showDownImage('reset');" onmouseup="showUpImage('reset');" onmouseout=showUpImage('reset'); accesskey="c" value="Cancel" tabindex="5" type="reset" style="left:377px" />
<div class="LoginCopyright">© All Rights Reserved</div>
<div class="LoginVerNum">Version 11.0</div>
<div class="LoginFieldBoxArea">
<div class="LoginEntryBoxDiv">
<input id="username" name="username" class="required" tabindex="1" accesskey="n" type="text" value="" size="25" autocomplete="false"/>
</div>
<div class="LoginEntryBoxDiv">
<input id="password" name="password" class="required" tabindex="2" type="password" value="" size="25" autocomplete="false"/>
</div>
</div>
<div class="LoginFieldNameArea">
<div class="LoginFieldName"><label for="username">User</label></div>
<div class="LoginFieldName"><label for="password">Password</label></div>
</div>
<div class="LoginProductName">Infrastructure /<br>Provisioning
</div>
<div class="row btn-row">
<input type="hidden" name="lt" value="e2s1" />
<input type="hidden" name="_eventId" value="submit" />
</div>
</div>
</form>
</div>
</div>
</body>
</html>

Add background-attachment: fixed; to your your first CSS rule:
BODY {
padding:0;
margin:0;
background-color: #8DA3AE;
height:100%;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, #95ABB6 0%, #6D838E 100%);
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, #95ABB6 0%, #6D838E 100%);
/* Opera */
background-image: -o-linear-gradient(top, #95ABB6 0%, #6D838E 100%);
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #95ABB6), color-stop(1, #6D838E));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, #95ABB6 0%, #6D838E 100%);
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(to bottom, #95ABB6 0%, #6D838E 100%);
background-attachment: fixed;
}
Demo

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>

CSS parse error, div background-color not showing

my div background color is not showing in chrome and I'm getting this error in W3C css validator:
16 .myfiles Value Error : background-color Parse Error background-color= #e9e9e9
This is the div implementation:
<div class="myfiles">
<table class="center">
<h2>My Files</h2>
<?php
$dir = "./userFiles/".$login;
$files = array_diff(scandir($dir), array('..', '.'));
foreach($files as $ind_file){
?>
<tr><td><a href="<?php echo $dir."/".$ind_file;?>"><?php echo $ind_file;?></td></tr>
<?php
}
?>
</table>
</div>
Here is my css file:
body {
margin-top: 0px;
width: 100%;
height: 100%;
background-image: url("bg.jpg");
font-family: Arial, Helvetica, sans-serif;
font-size : 14px;
}
h2{
text-align: center;
color:#C64934;
margin-bottom:5px;
}
.myfiles{
height: 50%;
background-color= #e9e9e9;
}
.center {
margin-left: auto;
margin-right: auto;
}
#save{
background: #3498db;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
-webkit-border-radius: 4;
-moz-border-radius: 4;
font-family: Arial;
color: #ffffff;
font-size: 14px;
padding: 6px 30px 6px 30px;
}
#save:hover{
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
}
#result {
margin-left: 80px;
border: 1px solid #cccccc;
width: 270px;
background: #E9ECEF;
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
font-size : 12px;
padding:5px;
margin-bottom:10px;
}
.text {
border: 1px solid #cccccc;
}
input::-webkit-input-placeholder{
color:grey;
}
.values{
font-family: verdana;
font-weight:normal;
font-size : 10px;
}
.key{
font-family: verdana;
font-weight:bold;
font-size : 12px;
padding-bottom:15px;
}
#nav1 {
margin-top: 0px;
list-style-type: none;
float: right;
font-weight: bold;
}
#nav1 li{
display: inline;
padding-right: 20px;
vertical-align: middle;
}
table {
display: table;
border-collapse: separate;
border-spacing: 10px;
}
a, a:visited, a:link {
color: #A21313;
text-decoration: none;
}
So the problem is that the background-color in my .myfiles class is not working.
I tried to fix it by specifying the height of the div but it didn't work.
Please help me.
You wrote background-color= #e9e9e9;, should be background-color: #e9e9e9;.
Change background-color= to background-color:
You have to change the "=" to ":" in myfiles class.

My centered layout won't extend to the bottom of the page - HTML/CSS

I have a centered page layout for a website I'm designing, and I've used Ryan Fait's CSS Sticky Footer, but I just can't seem to extend my content div tag (div#container in the code below) down to the footer.
Here's my HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>MathExplained.com</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<link rel="icon" type="image/ico" href="https://www.iconfinder.com/icons/21328/download/png/24">
</head>
<body>
<div class="wrapper">
<div id="headerbar"><div id="header">
<h1>MathExplained.com</h1>
<div id="nav">
<ul>
<li>Contact</li>
<li>Archives</li>
<li>About</li>
</ul>
</div>
</div></div>
<img id="header-underline" src="files/header-underline.png" alt="" />
<div id="container">
<div id="contentmargin">
<div class="post">
<h2>What Pi Really Means</h2>
<h3>5th September 2013</h3>
<div class="post-content">
<iframe src="https://www.youtube.com/embed/yJ-HwrOpIps" allowfullscreen></iframe>
<p>Lorem ipsum dolor sit amet</p>
</div>
</div>
</div>
</div>
<div class="push"></div>
</div>
<div class="footer">
Designed by Riley Wheb <br />
WhebDesigns 2013
</div>
</body>
</html>
...And my CSS (here be dragons):
* {
margin: 0;
}
html,body {
height: 100%;
}
body {
background: url('files/bg2.gif');
display: block;
font-family: Tahoma, Geneva, sans-serif;
margin: 0;
padding: 0;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -35px; /* the bottom margin is the negative value of the footer's height */
}
div#headerbar {
background: rgba(73,155,234,1);
background: -moz-linear-gradient(top, rgba(73,155,234,1) 0%, rgba(32,124,229,1) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(73,155,234,1)), color-stop(100%, rgba(32,124,229,1)));
background: -webkit-linear-gradient(top, rgba(73,155,234,1) 0%, rgba(32,124,229,1) 100%);
background: -o-linear-gradient(top, rgba(73,155,234,1) 0%, rgba(32,124,229,1) 100%);
background: -ms-linear-gradient(top, rgba(73,155,234,1) 0%, rgba(32,124,229,1) 100%);
background: linear-gradient(to bottom, rgba(73,155,234,1) 0%, rgba(32,124,229,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#499bea', endColorstr='#207ce5', GradientType=0 );
margin: 0;
padding: 0;
}
div#header {
display: block;
height: 38px;
margin: 0 auto;
overflow: hidden;
padding: 0;
width: 750px;
}
div#header > h1 {
float: left;
margin: 0;
padding: 0;
position: relative; top: -2px;
}
div#header > h1 > a:link, div#header > h1 > a:visited {
color: white;
font: 28px/35px "Lucida Console", monospace;
text-decoration: none;
text-shadow: -1px -1px 0 gray;
vertical-align: middle;
}
div#header > h1 > a:hover, div#header > h1 > a:active {
}
div#nav {
float: right;
margin: 0;
padding: 0;
}
div#nav > ul {
height: 100%;
list-style-type: none;
margin: 0;
overflow: hidden;
padding: 0;
}
div#nav > ul > li {
float: right;
height: 100%;
margin: 0;
padding: 0;
text-align: center;
width: 150px;
}
div#nav > ul > li > a:link, div#nav > ul > li > a:visited {
color: white;
display: block;
font: 16px Verdana,sans-serif;
height: 100%;
margin: 0 25px;
padding: 10px 0;
text-decoration: none;
text-shadow: -1px -1px 0 gray;
}
div#nav > ul > li > a:hover, div#nav > ul > li > a:active {
background: -moz-linear-gradient(top, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.25) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.25)), color-stop(100%,rgba(255,255,255,0.25))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,0.25) 0%,rgba(255,255,255,0.25) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,0.25) 0%,rgba(255,255,255,0.25) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,0.25) 0%,rgba(255,255,255,0.25) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,255,255,0.25) 0%,rgba(255,255,255,0.25) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#40ffffff', endColorstr='#40ffffff',GradientType=0 ); /* IE6-9 */
}
img#header-underline {
padding: 0; margin: 0;
position: absolute;
top: 38px;
height: 4px;
}
div#container {
background: rgb(255,255,255); /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(229,229,229,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(229,229,229,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
border: 3px solid #D6D6D6;
display: block;
height: 100%;
margin: 0 auto;
width: 800px;
}
div#contentmargin {
padding: 20px 25px;
}
div.post {
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
border: 1px solid #BDBDBD;
position: relative;
margin: 0 0 60px 0;
padding: 0 10px 20px 10px;
overflow: hidden;
}
div.post > h2 {
font: italic 24px/26px "Lucida Grande", "Lucida Sans Unicode", Helvetica, Sans-Serif;
letter-spacing: normal;
margin: 15px 0 0 0; padding: 0;
}
div.post > div.post-content {
clear: both;
}
div.post > div.post-content > p {
font: 12px "Lucida Grande", "Lucida Sans Unicode", Helvetica, Sans-Serif;
padding: 5px 0;
}
div.post > h3 {
font: italic 12px/14px "Lucida Grande", "Lucida Sans Unicode", Helvetica, Sans-Serif;
margin: 0 0 10px 0; padding: 0;
}
iframe {
width: 726px;
height: 416px;
border: 1px inset #BDBDBD;
}
.footer, .push {
height: 35px; /* '.push' must be the same height as 'footer' */
}
div.footer {
background: rgba(0,0,0,0.8);
border-top: 2px solid black;
color: gray;
font: 12px "Lucida Grande", "Lucida Sans Unicode", Helvetica, Sans-Serif;
text-align: center;
padding: 10px 0;
}
Here's a screenshot of what it looks like now.
And here's what I would like to achieve.
The .wrapper has height: auto !important; and also 100%. The 100% will be ignored and only the !important will be used.
Delete the auto !important height of the .wrapper element and adjust the footer css. You need to pay attention at the .wrapper margin too!
change the css:
div#contentmargin {
padding: 20px 25px;
height:100%
}
.wrapper {
height: 100%;
}
Have you considered using the <header>, <main> and <footer> tags instead of your current divs? They will automatically scale and fill 100% of your screen.

css dropdown menu issue in ie

I have a dropdown menu on the top of a page like so:
CSS:
div#navwrapper {
position: relative;
clear: both;
width: 100%;
height: 35px;
line-height: 35px;
letter-spacing: 1px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
background: rgb(255,255,255); /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(241,241,241,1) 50%, rgba(225,225,225,1) 51%, rgba(246,246,246,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(50%,rgba(241,241,241,1)), color-stop(51%,rgba(225,225,225,1)), color-stop(100%,rgba(246,246,246,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
}
div#coachnavigation {
width: 990px;
margin: 0 auto;
font-weight: bold;
}
#coachnavigation .firstli {
background-image: url('../coach/images/logo_tsa.png');
background-repeat: no-repeat;
text-align: right !important;
padding-left: 35px;
}
#coachnavigation .down {
background-image: url('../images/button_down.png');
background-repeat: no-repeat;
background-position: 95% 50%;
padding-right: 26px;
}
div#searchbar {
clear: both;
float: left;
width: 975px;
height: 28px;
line-height: 28px;
background-color: #164a98;
padding-left: 15px;
color: #fff;
}
#searchbar a {
color: #fff;
}
#box
{
line-height: 32px;
}
#box .field
{
background: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0%, #FEFFFE),
color-stop(100%, #BDBDBD)
);
height: 20px;
margin: 0px;
-webkit-border-radius: 25px;
}
#box .field input[type=text]
{
padding: 2px 2px 2px 25px;
border: 0;
-webkit-border-top-left-radius: 25px;
-webkit-border-bottom-left-radius: 25px;
margin: 0;
outline: 0;
width: 144px;
height: 20px;
float: left;
background: url('images/magnifier.png') 7px 5px no-repeat;
border: 1px solid #333333;
color: #333333;
}
#box .field input[type=submit]
{
float: left;
background: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(100%, #C6C6C6),
color-stop(0%, #8F8F8F)
);
border: 1px solid #606060;
width: 60px;
height: 26px;
padding: 2px 0 2px 0;
-webkit-border-top-right-radius: 25px;
-webkit-border-bottom-right-radius: 25px;
margin: 0 0 0 -1px;
opacity: 0.9;
cursor: pointer;
text-shadow: 1px 1px 0 #DBDBDB;
}
.coachnavmenu>li>ul>li>ul>li { width: 400px; }
.coachnavmenu,
.coachnavmenu ul,
.coachnavmenu li
{
padding: 0px;
margin: 0px;
z-index: 2;
text-align: right;
}
.coachnavmenu > li
{
float: left;
}
.coachnavmenu li
{
list-style-type: none;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
line-height: 30px;
letter-spacing: 0px;
color: #333333;
border-right: 1px inset #f6f6f6;
padding: 5px 12px 0px 12px;
}
.coachnavmenu > li li
{
list-style-type: none;
text-align: left;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
border: 1px solid #f6f6f6;
color: #333333;
background-color: #f6f6f6;
padding: 0 20px 0 4px;
}
.coachnavmenu ul
{
display: none;
position: absolute;
margin-left: -15px;
margin-top: -1px;
}
.coachnavmenu li:hover > ul
{
display: block;
}
.coachnavmenu ul.parent_hover
{
display: block;
}
.coachnavmenu a
{
color: #333333;
line-height: 100%;
width: 100%;
text-decoration: none;
}
.coachnavmenu li.greenhover:hover
{
color: #333333;
background-color: #7dc242;
}
.coachnavmenu li.hover,
.coachnavmenu a:hover
{
color: #333333;
background-color: #7dc242;
text-decoration: underline;
}
.coachnavmenu ul ul
{
margin-top: -30px;
left: 99%;
}
.coachnavmenu span
{
display: block;
}
.coachnavmenu
{
float: left;
width: 100%;
color: #000;
}
.endmenu
{
clear: left;
}
Live html can be found here, but I think the problem is the CSS.
http://www.buffalolacrosse.com/test.cfm
I am having issues getting this menu to display correctly. It works in chrome or firefox, just not in IE. The menus are collapsed (the li padding doesnt work) and the alignment is all out of whack on vertical alignment. Your help is appreciated.
I think you need to specify the line height of the a elements in your menu.
I tried by setting the
#coachnavigation a
{
line-height:30px;
}
and it appears fine to me.
also add z-index to your menu, so the dropdown wont appear behind some elements.
div#navwrapper {
z-index:999;
}

Lightview3 - fixing the image position (The image is to low)

I am using "lightview" to show images in my website, the problem is that the image to much low, so I can see less than 50% of the photo
I that when I set Height to object in css, the image is lower
Here is my CSS code:
/****HTML Tags****/
body {
margin: 0;
padding: 0;
text-align: right;
direction: rtl;
font-family: Arial, Arial Hebrew, Helvetica, sans-serif;
}
::selection {
background: #BFBFBF;
}
header {
background-image: url('../g.png');
position: relative;
width: 100%;
background-repeat: no-repeat;
}
h1 {
font-family: Tahoma, Geneva, sans-serif;
text-decoration: underline;
color: #3852A4;
padding-bottom: 20px;
font-size: x-large;
}
/****General****/
.content {
width: 900px;
position: relative;
padding: 0px;
margin: 0 auto;
}
.main {
padding-right: 15px;
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U1ZTVlNSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, rgba(229,229,229,1) 0%, rgba(255,255,255,0) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(229,229,229,1)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(229,229,229,1) 0%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(229,229,229,1) 0%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(229,229,229,1) 0%,rgba(255,255,255,0) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(229,229,229,1) 0%,rgba(255,255,255,0) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#00ffffff',GradientType=0 ); /* IE6-8 */
background-size: Auto 200px;
background-repeat: repeat-x;
}
.details {
padding-bottom: 15px;
}
.details div {
margin-top: 10px;
}
#author {
font-weight: bold;
font-size: 16px;
}
#date {
font-size: 14px;
font-weight: bold;
}
/**Track Properties***/
#area {
font-size: 14px;
}
.track {
position: relative;
padding: 0px;
margin: 0 auto;
width: 980px;
width: 100%;
}
.trackdetails {
position: relative;
top: -51px;
line-height: 25px;
border-right: 2px solid #9e9e9e;
padding-right: 25px;
padding-bottom: 15px;
font-size: 14px;
margin: 0;
left: 50px;
width: 250px;
float: left;
}
.title {
color: #3852A4;
font-size: large;
text-decoration: underline;
font-family: Tahoma, Geneva, sans-serif;
margin-bottom: 20px;
}
.trackdetails #content {
z-index: 1111;
}
#map-image {
display: inline-block;
padding-top:-50px;
}
#trackdescription {
text-align: justify;
max-width: 650px;
width: 500px;
float: right;
padding-bottom:100px;
}
How can I fix this?
Qish for help.. thanks!
Here is live example: http://lawb.co.il/test.html
Try top: 10% !important; or margin-top: -n; n = image box height / 2 :P n isn't a css property :)

Resources