Same Code, Same Browser, Different Machines = Different Form Layout - css

I developed a web app in PHP/HTML5/JavaScript/CSS... and am mow having a CSS issue which I don't understand.
On my PC, the code lays out how I want it to
On my friend's PC, it shows differently
Same version of Chrome in use.
The issue is when I update the form to show extra rows via JavaScript/Ajax. As soon as those rows come on screen, it's ALL bad. Here's some pictures:
1.) My friend's computer when the new form lines load (problem in fieldset "Split Transaction Details"):
COSMOS Form - New Rows - Wierd
2.) My computer when the new form lines load:
COSMOS Form - New Rows - Expected
Code snippet from my PHP/HTML/JavaScript:
<script>
function SplitTrans(num) {
var xmlhttp;
var n = document.getElementById("numsplit");
var splitnum = n.options[n.selectedIndex].value;
document.getElementById("transMasterCat").readOnly = true;
document.getElementById("transSubCat").readOnly = true;
document.getElementById("transAmount").readOnly = true;
document.getElementById("transStudent").readOnly = true;
document.getElementById("transMemo").readOnly = true;
document.getElementById("transParticipant").setAttribute('class', 'label-lb');
document.getElementById("transPaymentMethod").setAttribute('class', 'label-lb');
if (num == "0")
{
document.getElementById("splitRows").innerHTML = "";
document.getElementById("transMasterCat").readOnly = false;
document.getElementById("transSubCat").readOnly = false;
document.getElementById("transAmount").readOnly = false;
document.getElementById("transStudent").readOnly = false;
document.getElementById("transMemo").readOnly = false;
document.getElementById("transParticipant").setAttribute('class', 'label-l');
document.getElementById("transPaymentMethod").setAttribute('class', 'label-l');
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
document.getElementById("splitRows").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open("GET", "split-ar.php?splitnum=" + splitnum, true);
xmlhttp.send();
}
</script>
...
<form action="acctsrecv.php" method="post">
<fieldset class="fieldset">
<legend class="legend">Add New Accounts Receivable Transaction</legend>
<fieldset class="fieldset2">
<legend class="legend">Transaction Split Option</legend>
<label for "transSplitNum" class="label-l">Number Of Parts: </label><select name='numsplit' id="numsplit"><option value='0'>Select</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option></select><br />
<input type="button" class="button" Value="Split" onclick="SplitTrans(1)" /> <input type="button" class="button" Value="Clear" onclick="SplitTrans(0)" /><br />
</fieldset>
...
</fieldset>
<div id="splitRows">
</div>
As per comments, here's my CSS:
/* Original CSS assembled by Marko Mihelcic at mcville and James Koster from sixshootermedia*/
html, body {
margin:0;
padding:0;
height:100%;
}
body {
margin:0;
font-family:"Trebuchet MS", Arial, Verdana;
font-size:0.74em;
color:#555555;
background-color:#FFFFFF;
text-align:left;
}
a {
color:#4D87CE;
font-weight:bold;
text-decoration:none;
}
a:hover {
color:#2a65ad;
}
ol,ul {
}
li {
list-style-image:url(../images/backgrounds/li.gif);
line-height:20px;
text-align:left;
}
.debug {
border:1px dashed red;
}
#container {
min-height:100%;
position:relative;
/*border: 1px solid black;*/
}
#menu {
width:100%;
padding-top:20px;
padding-bottom:20px;
background-color:#FFFFFF;
margin-bottom:50px;
color:#FFFFFF;
text-align:center;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
font-variant:small-caps;
background-image:url('../images/backgrounds/back.png');
}
#menu a {
color:#FFFFFF;
text-decoration:none;
padding:10px;
padding-top:20px;
padding-bottom:20px;
}
#menu a:hover {
border-bottom:1px solid #ffffff;
border-left:1px solid #243482;
border-right:1px solid #243482;
padding-left:9px;
padding-right:9px;
color:#000000;
background-color:#FFFFFF;
background-image:url(../images/backgrounds/hover.jpg);
}
#header {
width:925px;
/*height: 92px;*/
margin:0 auto 0 auto;
margin-bottom:15px;
/*border: 1px solid gray;*/
}
#header h1 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:30px;
text-transform:uppercase;
font-weight:normal;
margin:0;
padding:0;
padding-top:5px;
color:#253183;
margin-bottom:10px;
text-align:left;
}
#header h2 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:15px;
text-transform:uppercase;
text-align:right;
font-weight:normal;
margin:0;
padding:0;
color:#000000;
border-bottom:1px solid #eeeeee;
}
#content {
width:925px;
margin:0;
text-align:left;
padding-bottom:54px; /* Total height of the footer */
overflow: auto;
/*border: 1px solid green;*/
}
/*.introduction {
font-family:Helvetica, Arial, sans-serif;
line-height:20px;
font-size:12px;
color:#99B198;
text-indent:25px;
background-image:url(../images/backgrounds/desc.jpg);
background-position:bottom left;
padding-left:0;
padding-right:200px;
padding-bottom:35px;
padding-top:0;
background-repeat:no-repeat;
}*/
.logo {
float:left;
margin-right:30px;
margin-bottom: 5px;
}
.clearer {
clear:both;
}
#sidebar {
width:150px;
float:right;
font-size:95%;
color:#253183;
text-align:left;
/*border: 1px solid blue;*/
}
#sidebar .badlogin {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:12px;
text-align: center;
color: red;
}
#sidebar h1 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:20px;
text-transform:uppercase;
font-weight:normal;
border-bottom:1px solid #eeeeee;
color:#253183;
text-align:right;
}
#sidebar .fieldset {
//border: 1px solid black;
padding: 2px;
border: none;
width:131px;
}
#sidebar .input {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
}
#sidebar .button {
border: none;
background: url('../images/backgrounds/up.png') no-repeat top left;
padding: 2px 8px;
margin-top: 5px;
}
#sidebar .button:hover {
border: none;
background: url('../images/backgrounds/pressed.png') no-repeat top left;
padding: 2px 8px;
}
#sidebar .label {
display: inline;
width: 131px;
float: left;
margin: 2px 4px 6px 4px;
text-align: left;
border: none;
}
#sidebar br {
clear: left;
}
.submenu {
}
.submenu a {
display:block;
width:95%;
background-image:url('../images/backgrounds/submenua.png');
background-position:right;
background-repeat:no-repeat;
padding:5px;
padding-right:0;
}
.submenu a:hover {
background-color:#eeeeee;
background-image:url('../images/backgrounds/submenua.gif');
background-repeat:no-repeat;
}
#mainbar {
margin-right:155px;
padding-right:5px;
background-image:url('../images/backgrounds/mainbar.jpg');
background-position:top right;
background-repeat:no-repeat;
padding-bottom: 10px;
/*border: 1px solid red;*/
}
#mainbar ol {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:12px;
}
#mainbar ol li {
list-style: decimal outside none;
}
#mainbar ul {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:12px;
}
#mainbar ul li {
list-style: square outside none;
}
#mainbar .nologin {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:14px;
text-align: center;
color: red;
}
#mainbar .warning {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:20px;
font-weight: bold;
text-align: center;
color: red;
}
#mainbar h1 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:25px;
text-transform:uppercase;
font-weight:normal;
border-bottom:1px solid #eeeeee;
color:#253183;
}
#mainbar .h1a {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:20px;
//text-transform:uppercase;
font-variant:small-caps;
font-weight:normal;
border-bottom:1px solid #253183;
color:#253183;
}
#mainbar h2 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:15px;
text-transform:uppercase;
text-align:left;
font-weight:normal;
margin:0;
padding:0;
color:#253183;
border-bottom:1px solid #eeeeee;
}
#mainbar .h2a {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:15px;
text-transform:uppercase;
text-align:left;
font-weight:normal;
margin:0;
padding:0;
color:#253183;
border-bottom:1px solid #253183;
}
#mainbar h3 {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
color:#253183;
}
#mainbar .h3a {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
color:#253183;
font-weight:normal;
}
#mainbar p {
padding:5px;
line-height:15px;
font-size: 13px;
font-weight:normal;
}
#mainbar figcaption {
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
font-size:13px;
font-style: italic;
font-weight:bold;
}
#mainbar .articleimg {
float:right;
padding:5px;
border:1px solid #eeeeee;
margin-left:20px;
margin-top:20px;
margin-bottom:20px;
}
#mainbar .articleimg2 {
padding:5px;
border:1px solid #eeeeee;
margin-left:20px;
margin-top:20px;
margin-bottom:25px;
}
#mainbar .table {
border-collapse:collapse;
border-spacing:0;
border:2px solid #253183;
}
#mainbar .th {
font-size:14px;
font-weight:bold;
background: #253183;
color: #FFFFFF;
padding:10px 5px;
border: 1px solid black;
border-bottom: 2px solid black;
overflow:hidden;
word-break:normal;
}
#mainbar .td1 {
font-size:14px;
font-weight: normal;
color: #000000;
padding:10px 5px;
border-style:solid;
border-width:1px;
border-color: black;
overflow:hidden;
word-break:normal;
}
#mainbar .td2 {
font-size:14px;
font-weight: normal;
background: #BBD9F3;
color: #000000;
padding:10px 5px;
border-style:solid;
border-width:1px;
border-color: black;
overflow:hidden;
word-break:normal;
}
#mainbar .fieldset {
border: 1px solid black;
width:740px;
}
#mainbar .fieldset2 {
border: 1px solid black;
/*width:740px;*/
}
#mainbar .legend {
font-size:14px;
font-weight: bold;
}
#mainbar .label-l {
display: inline;
width: 131px;
float: left;
margin: 2px 4px 6px 4px;
text-align: left;
//border: 1px solid red;
}
#mainbar .label-lb {
display: inline;
width: 131px;
float: left;
margin: 2px 4px 6px 4px;
text-align: left;
font-weight: bold;
//border: 1px solid red;
}
#mainbar .input-l {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
float: left;
}
#mainbar .label-r {
display: inline;
width: 131px;
float: right;
margin: 2px 4px 6px 4px;
text-align: left;
//border: 1px solid red;
}
#mainbar .label-rb {
display: inline;
width: 131px;
float: right;
margin: 2px 4px 6px 4px;
text-align: left;
font-weight: bold;
//border: 1px solid red;
}
#mainbar .input-r {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
float: right;
}
#mainbar .label-l2 {
display: inline;
width: 240px;
float: left;
margin: 2px 4px 6px 4px;
text-align: left;
//order: 1px solid red;
}
#mainbar .input-l2 {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
float: left;
}
#mainbar .label-r2 {
display: inline;
width: 240px;
float: right;
margin: 2px 4px 6px 4px;
text-align: left;
//border: 1px solid red;
}
#mainbar .input-r2 {
border: 1px solid #006;
background: #ffc;
margin-bottom: 5px;
float: right;
}
#mainbar .txta {
width: 704px;
height: 120px;
border: 1px solid black;
padding: 5px;
float: left;
}
#mainbar .txta2 {
width: 704px;
height: 36px;
border: 1px solid black;
padding: 5px;
float: left;
}
#mainbar .txta3 {
width: 680px;
height: 120px;
border: 1px solid black;
padding: 5px;
float: left;
}
#mainbar .button {
border: none;
background: url('../images/backgrounds/up.png') no-repeat top left;
padding: 2px 8px;
margin-top: 5px;
}
#mainbar .button:hover {
border: none;
background: url('../images/backgrounds/pressed.png') no-repeat top left;
padding: 2px 8px;
}
#mainbar .submit {
clear: both;
postition: relative;
left:341px;
}
#mainbar .center {
margin-left: auto;
margin-right: auto;
}
#mainbar br {
clear: left;
}
#footer {
/* width:80%; */
background-color:#253183;
border-top:1px solid #81C0FF;
border-bottom:5px solid #253169;
padding-top:5px;
padding-bottom:5px;
color:#FFFFFF;
position:relative;
margin-top: -54px; /* Total height of the footer */
clear: both;
bottom:0;
width:100%;
height:38px; /* Height of the footer */
text-align: center;
}
#footer a {
color:#81C0FF;
}
#footer a:hover {
color:#AFD7FF;
}
Can someone please help me understand why this is happening, and how to fix it?
Thank you very much in advance!!

Related

CSS content floats on the different size screen.

CSS is giving me bit of headache. I have this format for my page and would like to add contents to the center. I have problem with content moving or floating depending on the screen size, It looks great on my screen, but on someone who has wide screen this looks different. Any suggestion and assistance will be appreciated.
#navcontainer {
width: 150px;
height: 500px;
margin-top:auto;
}
#navcontainer ul {
margin-left: 0;
padding-left: 0;
list-style-type: none;
font-family: Arial, Helvetica, sans-serif;
}
#navcontainer a:link, #navlist a:visited {
color: #2200CC;
text-decoration: none;
display:block;
height:30px;
}
#navcontainer a:hover {
background-color: #369;
color: #fff;
display:block;
height:30px;
}
#navcontainer {
font-family: verdana,tahoma,helvetica;
font-size: 10pt;
background-color: #99CCFF;
border-top-width: 0;
border: solid 3px #d7d7d7;
border-top-color: #99CC66;
margin-left: 10pt;
float:left;
margin-top:-22px;
padding-left:20px;
}
#navcontainer #selected a {
background-color: white;
color:Black;
}
.basictab {
padding: 3px 0;
margin-left: 189px;
font: bold 12px Verdana;
border-bottom: 1px solid gray;
list-style-type: none;
text-align: left; /*set to left, center, or right to align the menu as desired*/
}
.basictab li {
display: inline;
margin: 0;
}
.basictab li a {
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 1px solid gray;
border-bottom: none;
background-color: #f6ffd5;
color: #2d2b2b;
}
.basictab li a:visited{
color: #2d2b2b;
}
.basictab li a:hover{
background-color: #DBFF6C;
color: black;
}
.basictab li a:active{
color: black;
}
.basictab li.selected a{ /*selected tab effect*/
position: relative;
top: 1px;
padding-top: 4px;
background-color: #DBFF6C;
color: black;
}
body {
margin:0;
padding: 0;
text-align: left;
font-family:"Adobe Garamond Pro Bold", Georgia, "Times New Roman", Times, serif;
font-size: 13px;
color: #061C37;
}
* {
margin: 0 auto 0 auto;
text-align:left;
}
.contentBox {
width:auto;
height:auto;
background-color:#FFFFFF;
margin-top:10px;
float:left;
display:inline;
margin-left:210px;
margin-top:-400px;
}
.contentBox .innerBox {
height:auto;
top:10px;
margin-left:10px;
padding-bottom:35px;
}
#GridView1 {
margin-left:130px;
}
http://jsfiddle.net/TMKev/
Thanks
Use media queries to target different screen sizes.
See http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-a-crash-course-in-css-media-queries/
Are you talking about a fixed width for your overall page that centers in the screen?
CSS
.wrapper {
border: 1px solid #ccc;
margin: 0 auto;
width: 960px;
}
.sidecol {
background: #ccc;
margin-right: 2%;
width: 18%;
}
.main-content {
background: #efefef;
width: 80%;
}
.sidecol, .main-content {
float: left;
height: 400px;
}
HTML
<div class="wrapper">
<aside class="sidecol">
<h3>My sidebar</h3>
</aside>
<section class="main-content">
<h3>Content</h3>
<p> My content</p>
</section>
</div>
Codepen sketch

CSS issue with top margin in safari

I can't get a top margin to show in safari. CSS works fine and the #divcontainer has a top margin and is centered in firefox and other browsers but not in safari.
I would like a 10px space to show above the container which will hold all other content.
Here is the CSS:
/* CSS Document */
body {
color: #000000; /*This sets all text to Black*/
/*background-color: #FFFFFF; /*This sets the bacground to white*/
margin: 100px auto; /*This sets the margin to zero*/
padding:0;
font-size:12px;
font-family:Verdana, Arial, Helvetica, sans-serif;
text-align:center;
}
p {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #000099;
}
h2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #000099;
}
h3 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #000099;
}
.redtext {
color: #FF0000;
}
a {
color: #009900;
}
a:link {
color: #000099;
text-decoration: underline;
}
a:visited {
color: #666666;
text-decoration: none;
}
a:hover {
text-decoration: none;
background-color: #CCCCCC;
}
a:active {
text-decoration: none;
}
.menu {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
}
.menu a:link {
color: #336600;
text-decoration: none;
}
.menu a:visited {
color: #666666;
text-decoration: none;
}
.menu a:hover {
color: #990000;
text-decoration: none;
}
.menu a:active {
color: #666666;
text-decoration: none;
}
div#container {
width: 960px;
height:760;
overflow:auto;
/*margin-left:0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
}
div#outer {
margin-left: auto;
margin-right: auto;
width: 960px;
}
div#header {
position:relative;
text-align: center;
width: auto;
}
div#nav {
width: auto;
padding: 10px;
margin-top: 1px;
position:relative;
}
div#main {
position:relative;
width: auto;
}
div#footer {
position:relative;
width:auto;
padding: 15px;
margin: 0px;
}#nav {
position: relative;
padding:20px;
width: auto;
}
You'll probably want to set the margin: 10px auto; on the #container. Usually, I do this:
body {
text-align: center;
padding: 0;
margin: 0;
}
#container {
width: 960px;
height: 760px;
text-align: left;
margin: 10px auto;
}
...assuming the #container div is the first element, that should work out.
You may also want to try out one of the css reset files out there.

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.

CSS 2.1 errors: not a known property name

Here is my code, I got it from an AJAX sample:
body, div, p, h1, h2, h3, h4, ul, li, table
{
margin:0;
padding:0;
border:none;
}
body
{
background: #B4B4B4 url(images/body_bg.gif) repeat left top;
font-family: Tahoma, Arial, sans-serif;
font-size:75%;
}
/* Master Page Layout */
#master_header
{
margin: -1px auto 0 auto;
width: 800px;
}
#master_headertop
{
background: url(images/headertop_img.jpg) no-repeat left top;
}
#master_headerbottom
{
background: url(images/headerbottom_img.png) no-repeat left top;
}
#master_page
{
margin: 5px auto 20px auto;
width: 800px;
}
#master_menu
{
float: left;
width: 240px;
padding-right: 10px;
}
.sidebar
{
width: 100%;
margin-bottom: 10px;
}
.sidebarheader
{
height: 24px;
padding: 10px 0 0 35px;
background: url(images/sidebar_header.png) no-repeat left top;
color: #FFF;
font-family: Arial, Sans-Serif;
font-size: 1.2em;
font-weight: bold;
text-transform: uppercase;
}
.sidebarcontent
{
border: 1px solid #0F2543;
padding: 20px 20px 20px 30px;
line-height: 1.5em;
font-weight: bold;
}
#master_sidebarSamples
{
padding-top: 72px;
background: #FFF url(images/samples_bg.gif) no-repeat left top;
}
#master_sidebarWalkthroughs
{
padding-top: 72px;
background: #FFF url(images/walkthrough_bg.gif) no-repeat left top;
}
.sidebarcontent a
{
padding: 2px 5px;
color: #5377A9;
text-decoration: none;
}
.sidebarcontent a:hover
{
background-color: #0F2543;
color: #FFF;
}
.sidebarcontent a:visited
{
font-weight: normal;
}
#master_content
{
float: left;
width: 550px;
margin-right: -550px;
color: #666666;
}
/*
#master_content a
{
color: #5377A9;
padding: 1px;
}
#master_content a:link
{
}
#master_content a:visited
{
}
#master_content a:hover
{
background-color: #BFBFBF;
color:#FFF;
}
*/
#master_content ul
{
margin: 0 25px 0 30px;
}
#master_contentheader
{
height: 19px;
background: url(images/rightcoltop.gif) no-repeat right top;
}
#master_contentplaceholder
{
padding: 30px 20px 40px 20px;
border-left: 1px solid #0F2543;
border-right: 1px solid #0F2543;
border-bottom: 1px solid #0F2543;
background-color: #EFEFEF;
line-height: 1.5em;
}
#master_contentfooter
{
clear: both;
padding: 10px 0 5px 10px;
color: #333;
font-size: 0.8em;
letter-spacing: 0.1em;
}
/* Content Page Layout */
.demoarea {
padding:20px;
background:#FFF url(images/demotop.png) no-repeat left top;
}
.demoarea p
{
padding:5px;
}
.demoheading {
padding-bottom:20px;
color:#5377A9;
font-family:Arial, Sans-Serif;
font-weight:bold;
font-size:1.5em;
}
.demobottom {
height:8px;
background:#FFF url(images/demobottom.png) no-repeat left bottom;
}
.heading {
padding: 1em 0 1em 0;
color:#5377A9;
font-family:Arial, Sans-Serif;
font-weight:bold;
font-size:1.2em;
}
.subheading{
padding:.8em 0 0.5em 0;
color:#0F2543;
font-weight:bold;
font-family:Arial, Sans-Serif;
font-size:1.1em;
}
p {}
em {font-style:italic}
i {font-style: italic;}
strong {font-weight:bold;}
.codeReference
{
font-family: 'Courier New', Monospace;
font-style: normal;
font-weight: bold;
}
pre, code {
display:block;
margin:15px 15px 15px 0;
padding:10px;
border:1px dashed #CCC;
background-color:#FFF;
color:#000;
font-family:'Courier New', Monospace;
font-size:0.9em;
font-style:normal;
}
.releaseList {
list-style-type:disc;
}
/* Styles for the Animation Reference */
.animationReferenceTable
{
}
.animationReferenceRow
{
}
.animationReferenceField
{
text-align: right;
vertical-align: top;
padding-top: 5px;
}
.animationReferenceCode
{
margin-top: 5px;
vertical-align: top;
font-family: 'Courier New', Monospace;
font-style: normal;
font-weight: bold;
display:block;
background-color:#FFF;
color:#000;
font-family:'Courier New', Monospace;
font-size:0.9em;
font-style:normal;
font-weight: bold;
margin-bottom: 5px;
}
.animationReferenceItems
{
vertical-align: top;
}
.animationReferenceItemTable
{
width: 100%;
padding: 0px;
margin: 0px;
}
.animationReferenceItemRow
{
width: 100%;
padding: 0px;
margin: 0px;
}
.animationReferenceItem
{
width: 100%;
padding: 0px;
margin: 0px;
padding-bottom: 10px;
}
.animationReferenceItemCode
{
display:block;
background-color:#FFF;
color:#000;
font-family:'Courier New', Monospace;
font-size:0.9em;
font-style:normal;
font-weight: bold;
}
/******************************/
/**Styling information specific to individual content pages**/
/* Accordion */
.accordionHeader
{
border: 1px solid #2F4F4F;
color: white;
background-color: #2E4d7B;
font-family: Arial, Sans-Serif;
font-size: 12px;
font-weight: bold;
padding: 5px;
margin-top: 5px;
cursor: pointer;
}
#master_content .accordionHeader a
{
color: #FFFFFF;
background: none;
text-decoration: none;
}
#master_content .accordionHeader a:hover
{
background: none;
text-decoration: underline;
}
.accordionContent
{
background-color: #D3DEEF;
border: 1px dashed #2F4F4F;
border-top: none;
padding: 5px;
padding-top: 10px;
}
/*Cascading DropDown*/
/*CollapsiblePanel*/
.collapsePanel {
background-color:white;
overflow:hidden;
}
.collapsePanelHeader{
width:100%;
height:30px;
background-image: url(images/bg-menu-main.png);
background-repeat:repeat-x;
color:#FFF;
font-weight:bold;
}
#master_content .collapsePanelHeader a {color:#FFF;}
#master_content .collapsePanelHeader a:hover {text-decoration:none;background:none;}
/*Confirm Button*/
/* DropShadow */
#master_content .dropShadowPanel span {color:white;text-decoration:underline;}
#master_content .dropShadowPanel span:hover {text-decoration:none;}
.dropShadowPanel
{
width:300px;
background-color:#5377A9;
color:white;
font-weight:bold;
}
/*Drag Panel*/
.dragMe {
width:100%;
height:21px;
background-color:#FFF;
background-image:url(images/header-opened.png);
text-align:center;
cursor:move;
font-weight:bold;
}
.overflowHidden {overflow:hidden;}
.overflowScroll {overflow:hidden;}
/*Hover Menu*/
.popupMenu {
position:absolute;
visibility:hidden;
background-color:#F5F7F8;
opacity:.9;
filter: alpha(opacity=90);
}
.popupHover {
background-image:url(images/header-opened.png);
background-repeat:repeat-x;
background-position:left top;
background-color:#F5F7F8;
}
/* PagingBulletedList */
.selectIndex {
font-weight: bold;
text-decoration:none;
}
.unselectIndex {
font-weight:normal;
text-decoration:underline;
}
/*Modal Popup*/
.modalBackground {
background-color:Gray;
filter:alpha(opacity=70);
opacity:0.7;
}
.modalPopup {
background-color:#ffffdd;
border-width:3px;
border-style:solid;
border-color:Gray;
padding:3px;
width:250px;
}
.sampleStyleA {
background-color:#FFF;
}
.sampleStyleB {
background-color:#FFF;
font-family:monospace;
font-size:10pt;
font-weight:bold;
}
.sampleStyleC {
background-color:#ddffdd;
font-family:sans-serif;
font-size:10pt;
font-style:italic;
}
.sampleStyleD {
background-color:Blue;
color:White;
font-family:Arial;
font-size:10pt;
}
/*Popup Control*/
.popupControl{
background-color:White;
position:absolute;
visibility:hidden;
}
/*Reorder List*/
.dragHandle {
width:10px;
height:15px;
background-color:Blue;
background-image:url(images/bg-menu-main.png);
cursor:move;
border:outset thin white;
}
.callbackStyle {
border:thin blue inset;
}
.callbackStyle table {
background-color:#5377A9;
color:Black;
}
.reorderListDemo li {
list-style:none;
margin:2px;
background-image:url(images/bg_nav.gif);
background-repeat:repeat-x;
color:#FFF;
}
.reorderListDemo li a {color:#FFF !important; font-weight:bold;}
.reorderCue {
border:dashed thin black;
width:100%;
height:25px;
}
.itemArea {
margin-left:15px;
font-family:Arial, Verdana, sans-serif;
font-size:1em;
text-align:left;
}
/* Rounded Corners*/
.roundedPanel
{
width:300px;
background-color:#5377A9;
color:white;
font-weight:bold;
}
/* ResizableControl */
.frameImage
{
width:130px;
height:65px;
overflow:hidden;
float:left;
padding:3px;
}
.frameText
{
width:100px;
height:100px;
overflow:auto;
float:left;
background-color:#ffffff;
border-style:solid;
border-width:2px;
border-color:Gray;
font-family:Helvetica;
line-height:normal;
}
.handleImage
{
width:15px;
height:16px;
background-image:url(images/HandleHand.png);
overflow:hidden;
cursor:se-resize;
}
.handleText
{
width:16px;
height:16px;
background-image:url(images/HandleGrip.png);
overflow:hidden;
cursor:se-resize;
}
.resizingImage
{
padding:0px;
border-style:solid;
border-width:3px;
border-color:#B4D35D;
}
.resizingText
{
padding:0px;
border-style:solid;
border-width:2px;
border-color:#7391BA;
}
/*Textbox Watermark*/
.unwatermarked {
height:18px;
width:148px;
font-weight:bold;
}
.watermarked {
height:20px;
width:150px;
padding:2px 0 0 2px;
border:1px solid #BEBEBE;
background-color:#F0F8FF;
color:gray;
}
/* Rating */
.ratingStar {
font-size: 0pt;
width: 13px;
height: 12px;
margin: 0px;
padding: 0px;
cursor: pointer;
display: block;
background-repeat: no-repeat;
}
.filledRatingStar {
background-image: url(Images/FilledStar.png);
}
.emptyRatingStar {
background-image: url(Images/EmptyStar.png);
}
.savedRatingStar {
background-image: url(Images/SavedStar.png);
}
/*Toggle Button*/
/*Setup*/
.walkthrough li {padding-bottom:5px;}
/*Using a sample extender*/
/*Creating a new extender*/
.walkthroughNote {
padding-left:25px;
font-style:italic;
}
/*Other neat stuff*/
/************ PasswordStrength Related Styles ***********************/
.TextIndicator_TextBox1
{
background-color:Gray;
color:White;
font-family:Arial;
font-size:x-small;
font-style:italic;
padding: 2px 3px 2px 3px;
}
.BarIndicator_TextBox2
{
color:Blue;
background-color:Blue;
}
.BarBorder_TextBox2
{
border-style:solid;
border-width:1px;
width:200px;
vertical-align:middle;
}
.TextIndicator_TextBox3
{
background-color:Blue;
color:Yellow;
font-size:small;
font-variant:small-caps;
padding: 2px 3px 2px 3px;
}
.TextIndicator_TextBox3_Handle
{
width:16px;
height:14px;
background-image:url(images/Question.png);
overflow:hidden;
cursor:help;
}
.dynamicPopulate_Normal
{
border:silver 1px inset;
padding:2px;
text-align:center;
height:2em;
margin:5px;
width:200px;
}
.dynamicPopulate_Updating
{
background-image:url(images/loading.gif);
background-repeat:no-repeat;
border:silver 1px inset;
text-align:center;
padding:2px;
height:2em;
margin:5px;
width:200px;
}
/************ MaskedEdit Related Styles ***********************/
.MaskedEditFocus
{
background-color: #ffffcc;
color: #000000;
}
.MaskedEditMessage
{
color: #ff0000;
font-weight: bold;
}
.MaskedEditError
{
background-color: #ffcccc;
}
.MaskedEditFocusNegative
{
background-color: #ffffcc;
color: #000000;
}
.MaskedEditBlurNegative
{
color: #ff0000;
}
.MyCalendar .ajax__calendar_container {
border:1px solid #646464;
background-color: lemonchiffon;
color: red;
}
.MyCalendar .ajax__calendar_other .ajax__calendar_day,
.MyCalendar .ajax__calendar_other .ajax__calendar_year {
color: black;
}
.MyCalendar .ajax__calendar_hover .ajax__calendar_day,
.MyCalendar .ajax__calendar_hover .ajax__calendar_month,
.MyCalendar .ajax__calendar_hover .ajax__calendar_year {
color: black;
}
.MyCalendar .ajax__calendar_active .ajax__calendar_day,
.MyCalendar .ajax__calendar_active .ajax__calendar_month,
.MyCalendar .ajax__calendar_active .ajax__calendar_year {
color: black;
font-weight:bold;
}
.validatorCalloutHighlight
{
background-color: lemonchiffon;
}
I am getting the following errors:
Error 1 Validation (CSS 2.1): 'opacity' is not a known CSS property
name. C:\Documents and Settings\agordon\My Documents\Visual Studio
2008\WebSites\WebSite3\StyleSheet.css 402 2 C:...\WebSite3\
Error 2 Validation (CSS 2.1): 'filter' is not a known CSS property
name. C:\Documents and Settings\agordon\My Documents\Visual Studio
2008\WebSites\WebSite3\StyleSheet.css 403 2 C:...\WebSite3\
Error 3 Validation (CSS 2.1): 'filter' is not a known CSS property
name. C:\Documents and Settings\agordon\My Documents\Visual Studio
2008\WebSites\WebSite3\StyleSheet.css 427 2 C:...\WebSite3\
Error 4 Validation (CSS 2.1): 'opacity' is not a known CSS property
name. C:\Documents and Settings\agordon\My Documents\Visual Studio
2008\WebSites\WebSite3\StyleSheet.css 428 2 C:...\WebSite3\
Error 5 Validation (CSS 2.1): 'lemonchiffon' is not a valid value for
the 'background-color' property. C:\Documents and Settings\agordon\My
Documents\Visual Studio
2008\WebSites\WebSite3\StyleSheet.css 738 23 C:...\WebSite3\
Error 6 Validation (CSS 2.1): 'lemonchiffon' is not a valid value for
the 'background-color' property. C:\Documents and Settings\agordon\My
Documents\Visual Studio
2008\WebSites\WebSite3\StyleSheet.css 759 23 C:...\WebSite3\
Does anyone know what I am doing wrong?
Validation errors are all fine, because they are using the proper CSS 2.1 Documentation and your trying to validate CSS3 properties in a CSS 2.1 context.
What you probably want is to build your application bypassing the CSS Errors, no matter what they are, for that you can transform this "errors" into warnings using Visual Studio Options:
in The Visual Studio menu click on:
Tools > Options... and drill down Text Editor > CSS > Miscellaneous
and just make the CSS Errors to be treated as warnings
2013 version
You're validating your stylesheets against CSS 2.1, but those properties are CSS3.
Change your stylesheet validation to CSS3.
The errors you are getting are validation errors. Opacity and filter are not in the CSS 2.1 spec despite being supported by all major browsers.
I realize that this response is a little late, but someone else may find this information useful.
To make the filter tag warning go away in VS2010 (as opposed to just ignoring it), close VS2010 and edit the following file:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\1033\schemas\CSS\css30.xml
You need to change the filter property from enum to composite.
Around line 387, you should find the following text:
<cssmd:property-def _locID="filter" _locAttrData="description,syntax" type="enum" ...
Change it to:
<cssmd:property-def _locID="filter" _locAttrData="description,syntax" type="composite" ...
Then restart VS2010.
You need to validate this as CSS3
http://jigsaw.w3.org/css-validator/#validate_by_input+with_options
When you do that, you will two errors for your opacity styles and a bunch of warnings dealing with duplicated background-colors.

CSS position problem for horizontal menu on Safari/Chrome of text

I have searched high and low for an answer to this - there are a few things i've tried such as removing charset UTF 8, adding clear both, ensuring all container widths are set, and so on.
Can any of you spot the problem though in the CSS and HTML below as to why when I converted this custom theme from html into Wordpress it suddenly decided that it would render the menu differently in webkit browsers? It still works fine on Firefox.
Any help would be very much appreciated so i can get some sleep again!
This is for http://silvermoths.com
This is the HTML for the header
<body>
<div id="wrapper">
<div id="header">
<div id="social">
<ul>
<li id="spotify">
<li id="myspace">
<li id="twitter">
<li id="facebook">
</ul>
<form id="email" action='http://madmimi.com/signups/subscribe/29549' method='post'>
<label for='signup_email'>Enter Email:</label>
<input id='signup_email' class="text" name='signup[email]' type='text' /><br />
<input name='commit' class='button' type='submit' value='Signup now to keep informed' />
</form>
</div><!--end of social-->
<div id="banner">
<a href="http://silvermoths.com"><img src="<?php echo(get_bloginfo('template_directory')); ?>/images/logo.png" width="468" height="189" alt="Silvermoths" class="logo" />
<h1>Silvermoths</h1>
</div><!--end of banner-->
<div id="nav">
<ul>
<?php wp_page_menu('show_home=1'); ?>
</ul>
</div><!--end of navigation-->
</div><!--end of header-->
This is the CSS:
/*
Theme Name: Silvermoths
Theme URI: http://silvermoths.com
Description: Custome theme for Silvemroths
Author: Rylan Holey
Version: 1.0
Tags: orange, social buttons, two coloumn
License:
License URI:
General comments (optional).
*/
html,body,div,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,form,p,blockquote,fieldset,input,hr {margin:0; padding:0;}
h1,h2,h3,h4,h5,h6,pre,code,address,caption,cite,code,em,strong,th {font-size:1em; font-weight:normal; font-style:normal;}
ul,ol {list-style:none;}
fieldset,img,hr {border:none;}
caption,th {text-align:left;}
table {border-collapse:collapse; border-spacing:0;}
td {vertical-align:top;}
/* CSS Document */
#font-face {
font-family: 'DejaVuSerifBook';
src: url('DejaVuSerif-webfont.eot');
src: local('☺'), url('DejaVuSerif-webfont.woff') format('woff'), url('DejaVuSerif-webfont.ttf') format('truetype'), url('DejaVuSerif-webfont.svg#webfontO0VgJAHF') format('svg');
font-weight: normal;
font-style: normal;
}
#font-face {
font-family: 'TendernessRegular';
src: url('Tenderness-webfont.eot');
src: url('Tenderness-webfont.eot?iefix') format('eot'),
url('Tenderness-webfont.woff') format('woff'),
url('Tenderness-webfont.ttf') format('truetype'),
url('Tenderness-webfont.svg#webfontaYPTm82W') format('svg');
font-weight: normal;
font-style: normal;
}
body {
margin: 0;
padding: 0;
background:url('images/body_bg.jpg');
background-color:#f05323;
background-repeat:no-repeat;
background-position:center top;
font-family:Georgia, "Times New Roman", Times, serif;
width: 100%;
display: table;
}
.aligncenter, div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
.wp-caption {
background-color: #f3f3f3;
border: 1px solid #ddd;
-khtml-border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px; /* optional rounded corners for browsers that support it */
margin: 10px;
padding-top: 4px;
text-align: center;
}
.wp-caption img {
border: 0 none;
margin: 0;
padding: 0;
}
.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 17px;
margin: 0;
padding: 0 4px 5px;
}
#wrapper {
position:relative;
text-align:left;
width: 960px;
margin-right: auto;
margin-left:auto;
border-bottom: #e87529 solid 10px;
}
#header {
width:960px;
height:350px !important;
}
#banner{
height: 189px;
width: 468px;
}
#banner img{
border-style: none;
}
#banner h1{
float:left;
text-indent: -9999px;
}
#banner .logo {
float:left;
width:468px;
margin-top: 45px;
margin-left: 20px;
}
#description h2{
text-indent: -9999px;
}
#social{
clear:both;
width:320px;
float:right;
margin-right: 10px
}
#social li, #social a {
height:64px;
display:block;
}
#social ul {
list-style:none;
margin:15px 0 0 0;
padding:0;
}
#social li {
display:inline;
float:right;
text-align:left;
margin-left:16px;
height:64px;
width:64px;
display:block;
}
#social a:link, #social a:visited {
text-decoration: none;
border-style: none;
}
#twitter {left:0px;width:64px;}
#twitter {background:url('images/twitter_sprite.png') 0 0;}
#twitter a:hover{background: url('images/twitter_sprite.png') 0 -65px;}
#twitter a:active{background: url('images/twitter_sprite.png') 0 -130px;}
#facebook {left:0px;width:64px;}
#facebook {background:url('images/facebook_sprite.png') 0 0;}
#facebook a:hover{background: url('images/facebook_sprite.png') 0 -65px;}
#facebook a:active{background: url('images/facebook_sprite.png') 0 -130px;}
#spotify {left:0px;width:64px;}
#spotify {background:url('images/spotify_sprite.png') 0 0;}
#spotify a:hover{background: url('images/spotify_sprite.png') 0 -65px;}
#spotify a:active{background: url('images/spotify_sprite.png') 0 -130px;}
#myspace {left:0px;width:64px;}
#myspace {background:url('images/myspace_sprite.png') 0 0;}
#myspace a:hover{background: url('images/myspace_sprite.png') 0 -65px;}
#myspace a:active{background: url('images/myspace_sprite.png') 0 -130px;}
#social img
{ border-style: none;
}
form#email
{
clear:both;
width:300px;
height:102px;
float:right;
display: block;
margin-top: 29px;
margin-bottom: 29px;
text-align: center;
padding:24px 0 0 0;
background-image: url(images/content_bg.png);
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
font-size:22px;
}
label
{
color:#FFF;
}
#email .button {
margin-top:15px;
width:238px;
height:37px;
font-weight: bold;
font-size: 15px;
font-family:Arial, Sans serif;
color: white;
border: none;
background: url('images/signup_button.png') 0 0;
}
#email .button:hover {
margin-top:15px;
width:238px;
height:37px;
font-weight: bold;
font-size: 15px;
font-family:Arial, Sans serif;
color: white;
border: none;
background: url('images/signup_button.png') 0 -38px;
}
#email .button:active {
margin-top:15px;
width:238px;
height:37px;
font-weight: bold;
font-size: 15px;
font-family:Arial, Sans serif;
color: white;
border: none;
background: url('images/signup_button.png') 0 -77px;
}
#email .text {
height:30px;
}
#nav {
float:left;
clear:both;
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color: #e5e8e6;
font-size:30px;
height:70px;
width:960px;
text-align:left;
background-image: url('images/content_bg.png');
z-index:0;
}
#nav ul {
list-style:none;
margin:17px 0 0 0;
padding:0;
}
#nav li {
display:inline;
float:left;
text-align:left;
margin-left:0;
height:70px;
z-index:100;
}
#nav a:link, #nav a:visited {
padding: 15px 0.5em 15.5px 0.5em;
color: #e5e8e6;
text-decoration:none;
}
#nav a:hover {
color:#FFF;
}
#nav a:active {
color:#FFF;
font-weight:bold;
}
#sidebar {
float:right;
width:260px;
margin:15px 10px 15px 10px ;
padding:20px;
background-image: url('images/content_bg.png');
height: 100%;
}
#single img {
border:none;
background:none;
}
#content {
clear:both;
float:left;
width:580px;
margin:15px 10px 15px 10px;
padding:20px;
background-image: url('images/content_bg.png');
}
#content .post-image img {
float:left;
margin:15px 15px 15px 10px;
border-top: 1px solid #555;
padding: 10px;
background: #3c3a3a;
-webkit-box-shadow: 5px 5px 6px #242424;
-moz-box-shadow: 5px 5px 6px #242424;
box-shadow: 5px 5px 6px #242424;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#placeholder {
height:350px;
border: 1px solid #bb3e26;
margin-top:10px;
background: #FFE7CF;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#placeholder .meta {
margin: 150px 10px 0 10px;
text-align:left;
}
#placeholder h3 {
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color: #bb3e26;
font-size:18px;
margin-top:0;
margin-bottom:0;
font-style: italic;
}
#text {
clear:both;
}
#footer h1, #sidebar h1, #content h1 {
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color:#FFF;
font-size:50px;
margin-top:0.3em;
margin-bottom:0;
font-weight:bold;
}
#sidebar h2, #content h2 {
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color:#FFF;
font-size:30px;
margin-top:0;
margin-bottom:0;
font-weight:bold;
}
#sidebar h3, #content h3 {
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color:#FFF;
font-size:22px;
margin-top:0;
margin-bottom:0;
font-weight:bold;
}
#sidebar h1+p, #sidebar h2+p, #content h1+p, #content h2+p, #placeholder h3+p {
margin-top:0;
}
#sidebar p, #content p {
font-family:Georgia, "Times New Roman", Times, serif;
color:#FFF;
font-size:14px;
}
#content a:link, #content a:visited {
color: #bb3e26;
text-decoration:none;
}
#content a:hover {
color:#5e1f12;
}
#post {
padding-top:0.5em;
border-bottom:2px solid #5e1f12;
height:125px;
}
#post .thumb {
float:right;
border-style:solid;
border-color:#5e1f12 ;
border-width:2px;
margin:5px 10px 2px 5px;
}
#content a:link, #content a:visited {
color: #1D4896;
text-decoration:none;
}
#content a:hover {
color:#FFF;
background-color:#3c3a3a;
}
#content .post {
border-style: none;
}
#sidebar ul {
list-style:none
}
#searchform input {
margin-left:45px
}
#footer {
clear:both;
width:920px;
height:150px;
background-color:#f05323;
font-family:Georgia, "Times New Roman", Times, serif;
color: #fff;
padding:20px;
}
#footer .copyright {
float:right;
}
Looks as though the problem is being caused by a phantom empty link within the <div class="menu"> just above the <ul>. See attached image.
It's weird because it doesn't seem to be in the source code which leads me to think it's being generated by wordpress?
If you use Chrome's developer plugin you can inspect the element to view where the link is being generated.

Resources