Block with the goods "dropped" under the unit categories - css

This is my problem:
If i used standart pictures and description (like picture 1) - i have good appearance of the site. But when I use the data from the database, the block catalog moves down the left (picture 2).
The code is the same in both cases, but the appearance is very different
#wrapper {
margin-top:40px;
width: 1200px;
margin: 0 auto;
height: auto !important;
}
#category
{
padding:10px 10px 10px 20px;
border-left: 1px solid #d9d9d9;
border-right: 1px solid #d9d9d9;
border-bottom: 1px solid #d9d9d9;
width:200px;
clear:both;
display:block;
}
#category ul li{
word-wrap: break-word;
list-style-image: url(/neoshop/images/check.png);
padding:10px 0px 10px 10px;
border-bottom:1px dotted #cccccc;
}
#category ul li:last-child{
border-bottom:0px dotted #cccccc;
}
#category ul li a{
font:15px/1.3 "Arial", Arial,Helvetica, sans-serif;
margin-top:0px;
font-weight:100;
display:block;
color:#2f3638;
text-decoration:none;
line-height:20px;
}
#category ul li a:hover{
color:#0bb1e8;
}
#category ul ul a{
list-style-image:none;
color:#8b8b8b;
background:#fff;
}
#category ul ul{
margin-top:5px;
display:none;
color:#8b8b8b;
background:#fff;
}
#category ul ul li{
word-wrap: break-word;
list-style-image: none;
padding:10px 0px 10px 10px;
border-bottom:1px dotted #cccccc;
}
.catalog
{
margin-left:12px;
float:left;
width:948px;
}
.product-main
{
width:236px;
height:285px;
float:left;
}
.product{
border-right:1px dotted #cccccc;
padding:0 15px;
}
.product h2{
color:#111017;
text-align:center;
font:bold 14px/1.3 Tahoma;
margin:0 0 15px 0;
}
.product h3{
color:#111017;
text-align:center;
font:bold 12px/1.3 Tahoma;
margin:0 0 15px 0;
}
.product-img{
text-align:center;
}
.product-img img{
weight:114px;
height:112px;
}
.price{
font:13px/1.3 "Arial", Arial,Helvetica, sans-serif;
color:#0bb1e8;
}
.price span{
font:13px/1.3 "Arial", Arial,Helvetica, sans-serif;
color:#111017;
text-align:center;
}
.price a{
clear:both;
float:right;
}
.bot-dot
{
border-bottom:1px dotted #cccccc;
margin:20px;
}
.product-main:nth-child(4n) .product
{
border-right:none;
}
.product-main:last-child .product
{
border-right:none;
}
.product-main:nth-child(4n) .bot-dot
{
margin: 20px 0 20px 20px;
}
.product-main:nth-child(4n+1) .bot-dot
{
margin: 20px 20px 20px 0px;
}
It must be like this:
But i have this:

when the actual images are being loaded,
the total width of your catalog increases more than 948px and so it has to move to next line.
in
.product-img img{
weight:114px;
height:112px;
}
instead of width you have specified weight by mistake

Related

My website is not fitting to each screen resolution of pc

Hello i have created a website in 3 months using HTML, CSS, Jquery and PHP.
for design and layout i have used CSS, after building this website i have noticed that
Whenever i m opening my website in small screens so there is need of width scroll to see
whole page especially the language dropdown selection in right corner of page.
in my CSS i have used PX for divs such as wrapper, header and etc
Someone told me to use Percentage instead of PX, but i have reached to end.
First guys what i should do to solve this problem?
Second is there any way to convert from PX to Percentage.
.wrapper
{
width:1320px;
height:760px;
border:solid 1px #000;
margin:0 auto;
background:url(images/Background_Image.jpg) no-repeat;
}
.wrapper .logo
{
background:url(images/logo.png) no-repeat bottom;
width:360px;
height:180px;
margin-left:345px;
margin-top:10px;
float:left;
}
.wrapper .language
{
float:right;
background-color:#006;
padding:5px 10px;
border-radius:4px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
-ms-border-radius:4px;
-o-border-radius:4px;
border:#00AEEF;
color: #FFFFFF;
font:bold 1.2em "Calibri";
margin:0px 0px 0px 0px;
cursor:pointer;
text-align:center;
}
.wrapper .language a
{
color:#FFF;
text-decoration:none;
font:"calibiri";
}
.wrapper .search_property
{
width:300px;
height:500px;
margin-right:58px;
margin-top:80px;
float:right;
}
.wrapper .search_property .title
{
background:url(images/protitle.fw.png) no-repeat;
width:295px;
height:80px;
margin-bottom:10px;
float:left;
text-align:center;
color:#FFF;
font: bold 1.7em "Calibri";
}
.wrapper .search_property .province
{
background:url(images/proprovince.fw.png) no-repeat;
width:295px;
height:70px;
float:left;
margin-bottom:10px;
text-align:center;
}
/* start design for the province */
select
{
width:195px;
margin-top:23px;
padding:3px 3px 3px 46px;
font: bold 1em "Calibri";
-webkit-border-radius:1px;
-moz-border-radius:1px;
border-radius:1.3px;
-webkit-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
-moz-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
background: #f6f6f8;
color:#000;
border:none;
outline:none;
display: inline-block;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
cursor:pointer;
}
option
{
text-align:center;
}
/* Targetting Webkit browsers only. FF will show the dropdown arrow with so much padding. */
#media screen and (-webkit-min-device-pixel-ratio:0) {
select {padding-right:18px}
}
.la
{
position:relative;
}
.la:after {
content:'<>';
font:11px "Consolas", monospace;
color:#000;
-webkit-transform:rotate(90deg);
-moz-transform:rotate(90deg);
-ms-transform:rotate(90deg);
transform:rotate(90deg);
right:8px; top:2px;
padding:0 0 2px;
border-bottom:1px solid #ddd;
position:absolute;
pointer-events:none;
}
.la:before {
content:'';
right:3.5px;
top:-1px;
width:25px; height:22px;
background:#ccc;
position:absolute;
pointer-events:none;
display:block;
}
/* end design for the province */
.wrapper .search_property .district
{
background:url(images/prodistrict.fw.png) no-repeat;
width:295px;
height:70px;
float:left;
margin-bottom:10px;
text-align:center;
}
.wrapper .search_property .propertystatus
{
background:url(images/prostatus.fw.png) no-repeat;
width:295px;
height:90px;
float:left;
margin-bottom:10px;
color:#FFF;
padding:20px 0 0 0;
}
radio
{
cursor:pointer;
}
.wrapper .search_property .probutton
{
width:270px;
height:50px;
float:left;
margin-bottom:3px;
padding:0 0 0 25px;
}
.wrapper .search_property .postprobutton
{
width:285px;
height:40px;
float:left;
margin-top:5px;
padding:0 0 0 10px;
}
#Submitbutton
{
background: #006 url(images/a.fw.png) no-repeat right;
padding:5px 15px;
border-radius:4px;
width:233px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
-ms-border-radius:4px;
-o-border-radius:4px;
border:#00AEEF;
color: #FFFFFF;
font:bold 1.5em "Calibri";
margin:0px 0px 0px 0px;
cursor:pointer;
text-align:left;
}
#pypbutton
{
background: #006 url(images/Property%20List.png) no-repeat right;
padding:5px 15px;
border-radius:4px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
-ms-border-radius:4px;
-o-border-radius:4px;
border:#00AEEF;
color: #FFFFFF;
font:bold 1.4em "Calibri";
margin:0px 0px 0px 0px;
cursor:pointer;
text-decoration:none;
}
.wrapper .slideshow
{
width:395px;
height:264px;
margin-left:325px;
margin-top:24px;
float:left;
}
.wrapper .menu
{
width:412px;
height:20px;
margin-left:327px;
margin-top:40px;
float:left;
}
.wrapper .menu .aboutus
{
width:68px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .myaccount
{
width:85px;
height:18px;
color:#fff;
margin:0px 5px 0px 0px;
font: 1em Arial, Helvetica, sans-serif;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .services
{
width:65px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .career
{
width:54px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .contactus
{
width:87px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
}
.wrapper .footer
{
background:url(images/footerbg.jpg) bottom;
width:1120px;
height:155px;
margin-top:15px;
float:left;
margin-left:100px;
}
.wrapper .footer .footer_in
{
width: 900px;
height: auto;
margin: auto;
padding: 14px 0px 0px 0px;
}
.wrapper .footer .footer_in .footer_navigation
{
/*width:412px;*/
height:128px;
float:left;
font-size:11px;
background:url(images/border.jpg) right no-repeat;
font: 1em "Calibri";
width:350px;
}
.wrapper .footer .footer_in .footer_navigation .fn_heading
{
width:310px;
font: 1em "Calibri";
color:#fff;
height:37px;
font-size:12px;
background:url(images/footerimg.png) no-repeat;
padding-left:10px;
line-height:24px;
}
.wrapper .footer ..footer_in .footer_navigation ul {
float:left;
width:320px;
padding-left:9px;
}
.wrapper .footer .footer_in .footer_navigation li {
float:left;
width:127px;
background:url(images/listimg.gif) no-repeat left;
padding-left:12px;
display:block;
padding-bottom:4px;
}
.wrapper .footer .footer_in .footer_navigation li a
{
color:#fff;
text-decoration:none;
}
.wrapper .footer .footer_in .footer_navigation li a:hover {
text-decoration:underline;
}
.wrapper .footer .footer_in .copyright
{
background: url(images/border.gif) no-repeat scroll right center transparent;
color: #FFFFFF;
float: left;
font: 1em "Calibri";
min-height: 94px;
padding-left: 14px;
padding-right: 30px;
padding-top: 35px;
}
.wrapper .footer .footer_in .copyright a
{
padding-bottom:5px;
color:#fff;
text-decoration:none;
}
.wrapper .footer .footer_in .copyright a:hover
{
text-decoration:underline;
}
.wrapper .footer .footer_in .footer-add
{
text-align:center;
width:220px;
float:right;
margin-left:10px;
font: 1em "Calibri";
}
.wrapper .footer .footer_in .footer-add a
{
color:#fff;
background:url(images/link_for_scale-new_03.png) no-repeat bottom;
height:122px;
display:block;
}
Check your monitor resolution (By the CSS, my guess is that it is 1440x768).
Now do this math with every pixel value: ("Pixel Width Value"/1440)*100 and ("Pixel Height Value"/768)*100.
That is your value in %!
Some elements might not work properly, but it's a good way to start.
There are also other units that can work depending on the screen size
check one of them here.
However I think % might be the best for you to start out.

CSS href text link jumps to a new line when clicked

My navigation bar works perfectly fine, any image links work fine, but all text links on my page jump down when I click on them. Most of them jump so far you cannot actually click it.
I also noticed my a:visited links are inheriting the color #000 from somewhere, when they should be #616161. There is no issue when browsing on my Android device, but happens in IE11 and Chrome32.
The HTML is nothing special. Just
Page Name
type links. It has to be something with the CSS.
The CSS:
body {
background-color: #7296d9;
max-width:1000px;
}
#wrapper {
width:auto;
background:url(../images/bg.jpg);
background-repeat:repeat;
margin:4px;
}
#content {
width:98%;
text-align:center;
margin:auto;
}
#paragraph {
width:80%;
font-size:18px;
color: #666;
font-weight:100;
text-align:justify;
margin:10px auto 25px auto;
}
.reviews {
width:80%;
margin:auto;
text-align:justify;
color: #666;
}
p {
margin:10px 0 10px 0;
}
h1 {
line-height:48px;
font-size:36px;
font-weight:bold;
text-align:center;
margin-top:10px;
}
h2 {
line-height:42px;
font-size:24px;
font-weight:bold;
text-align:center;
}
a:link, a:visited {
color: #616161;
text-decoration: underline;
}
a:hover, a:active {
color: #ffffff;
text-decoration: underline;
}
#header {
height:86px;
max-height:86px;
width:98%;
min-width:500px;
position:relative;
background-image:url(../images/logo.png);
background-repeat:no-repeat;
}
#header .left {
float:left;
height:auto;
}
#header .media-header {
float:right;
margin-top:50px;
margin-right:-20px;
}
#menu ul li:hover > ul {
display: block;
}
#menu {
display:table;
width:100%;
background: -webkit-linear-gradient( #d5d5d5, #595959); /* For Safari */
background: -o-linear-gradient( #d5d5d5, #595959); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient( #d5d5d5, #595959); /* For Firefox 3.6 to 15 */
background: linear-gradient( #d5d5d5, #595959); /* Standard syntax */
-webkit-border-radius: 25px;
-o-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
}
#menu ul ul {
display: none;
}
#menu ul {
height:auto;
font-size: 16px;
font-family: "Times New Roman", Times, serif;
font-weight: bold;
text-align: center;
text-shadow: 2px 2px 2px #cccccc;
text-decoration:none;
list-style: none;
position: relative;
display: table-row;
}
#menu a:link, a:visited {
display:block;
text-decoration: none;
color: #000000;
padding: 8px auto 8px auto;
}
#menu a:hover, a:active {
display:block;
padding:5px;
text-decoration:none;
color: #fff;
}
#menu ul:after {
content: "";
clear:both;
display: block;
}
#menu ul li {
display:table-cell;
width:auto;
}
#menu ul a:link, a:visited {
display: block;
padding: 5px;
color: #000;
text-decoration: none;
}
#menu ul a:hover, a:active {
display:block;
padding:5px;
text-decoration:none;
color: #fff;
}
#menu ul ul {
background: #999;
border-radius: 0px;
padding: 0;
position: absolute;
}
#menu ul ul li {
width:auto;
border-top: 1px solid #ccc;
position: relative;
display:block;
}
#menu ul ul li a {
padding: 5px;
text-align:left;
color: #000;
}
#menu ul ul li a:hover {
color: #FFF;
}
#menu ul ul:last-child, nav ul ul:last-child a {
-webkit-border-bottom-right-radius: 10px;
-o-border-bottom-right-radius: 10px;
-moz-border-radius-bottomright: 10px;
border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-o-border-bottom-left-radius: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-left-radius: 10px;
}
.center {
text-align:center;
}
#reviews {
width:80%;
text-align:justify;
overflow:hidden;
margin:25px auto 25px auto;
}
#reviews img {
position:relative;
float:left;
}
#form {
color: #666;
margin:0px auto 0px auto;
width:350px;
}
#form p {
color: #666;
margin:0px auto 0px auto;
width:350px;
}
.bottombar {
margin:auto;
width:100%;
}
#footer {
display:block;
font-size:12px;
color: #616161;
text-align:center;
width:auto;
margin:5px auto 5px auto;
}
#footer img {
text-align:center;
color: #616161;
width:100%;
margin:5px auto 5px auto;
}
#media-footer {
text-align:center;
margin:10px 0 15px 55px;
}
#media-footer img {
text-align:center;
margin:10px 0 15px 55px;
}
nav ul {
display:none;
}
#minimenu {
display:none;
}
It's because you are adding padding to the element when it is :active:
#menu ul a:hover, a:active {
display: block;
padding: 5px;
text-decoration: none;
color: #fff;
}
It's worth noting that you are repeating the same styling in different instances.
#menu a:hover, a:active {
display: block;
padding: 5px;
text-decoration: none;
color: #fff;
}
Just remove the padding from both declarations and it will work as expected.

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.

div overlapping/misplaced

I have a footer on my page, where the content is placing correctly, under div#main (which includes div#left and div#right), but the background (the big blue thing) is placed way over div#main.
I have tried display:block and z-indexing the divs, to no avail.
Anyone have any idea what's going on?
Code:
body {
background:url(aaa-bg.jpg) repeat-x #e7e9e9;
margin:0;
padding:0;
color:#383838;
font:12pt verdana;
}
img {
border:0;
}
a:link {
color:#e29511;
text-decoration:none;
}
a:hover {
color:#e29511;
text-decoration:underline;
}
a:visited {
color:#808080;
}
/* header ------------------------------------------------------------------------------ */
#header {
margin:10px auto 10px;
width:800px;
height:97px;
}
/* nav ------------------------------------------------------------------------------ */
#nav {
width:800px;
margin:0px auto 3px;
height:30px;
}
#nav ul {
margin:0 0px 0px 0;
padding:0;
list-style:none;
}
#nav ul li {
width:140px;
height:20px;
padding:5px 0 5px 0;
float:left;
margin:0 10px 0 0;
background:#cdcdcd;
color:#000000;
position:relative;
z-index:99999;
text-align:center;
border-top-left-radius:10px;
border-top-right-radius:10px;
border-top:3px solid transparent;
border-left:3px solid transparent;
border-right:3px solid transparent;
}
#nav ul li:hover {
cursor:pointer;
border-top:3px solid #e29511;
border-left:3px solid #e29511;
border-right:3px solid #e29511;
}
#nav ul li.home {
width:140px;
height:20px;
padding:5px 0 5px 0;
float:left;
margin:0 10px 0 0;
background:#cdcdcd;
color:#000000;
position:relative;
z-index:99999;
text-align:center;
border-top-left-radius:10px;
border-top-right-radius:10px;
border-top:3px solid transparent;
border-left:3px solid transparent;
border-right:3px solid transparent;
}
#nav ul li.home:hover {
cursor:pointer;
-moz-box-shadow: 5px 5px 2px #656565;
-webkit-box-shadow: 5px 5px 2px #656565;
box-shadow: 5px 5px 2px #656565;
}
#nav ul li ul {
width:140px;
margin:5px 0 0 -3px;
float:left;
-moz-box-shadow: 5px 5px 2px #656565;
-webkit-box-shadow: 5px 5px 2px #656565;
box-shadow: 5px 5px 2px #656565;
background:url(aaa-navbg3.png) repeat-x #ffffff;
border-bottom:3px solid #e29511;
border-left:3px solid #e29511;
border-right:3px solid #e29511;
}
#nav ul li ul li {
width:140px;
font-weight:normal;
font-size:10pt;
background:none;
border-top:1px solid #808080;
border-left:none;
border-right:none;
border-top-left-radius:0px;
border-top-right-radius:0px;
}
#nav ul li ul li:hover {
background:url(aaa-libg2.png) repeat-x;
border-top:1px solid #808080;
border-left:none;
border-right:none;
}
/* toppane ------------------------------------------------------------------------------ */
#toppane {
width:100%;
height:210px;
background:url(aaa-toppane3.jpg) repeat-x;
padding:20px 0 20px;
margin:0px 0 20px 0;
position:relative;
z-index:-1;
border-top:1px solid #000000;
border-bottom:1px solid #000000;
}
#toppane-inner {
width:800px;
height:210px;
margin:0px auto;
}
/* slideshow ------------------------------------------------------------------------------ */
#window {
clear:both;
width:800px;
height:210px;
overflow:hidden;
position:relative;
margin:0;
padding:0;
}
#slideshow {
width:1600px;
height:420px;
overflow:hidden;
position:relative;
margin:0;
padding:0;
}
#slideshow li {
width:800px;
height:210px;
float:left;
display:inline;
margin:0;
padding:0;
}
/* main ------------------------------------------------------------------------------ */
#main {
width:800px;
margin:5px auto;
padding:0px;
}
#left {
width:390px;
margin:0 20px 0 0;
padding:0px;
float:left;
}
#right {
width:390px;
font-size:11pt;
margin:0;
padding:0px;
float:right;
}
#right img {
margin:0 0 5px 0;
}
#right a:link {
text-decoration:none;
color:#383838;
}
#right a:hover {
text-decoration:none;
color:#383838;
}
#right a:visited {
text-decoration:none;
color:#383838;
}
h2 {
width:390px;
font:14pt verdana;
border-bottom:1px solid #383838;
margin:0 0 5px 0;
text-align:right;
}
.segment {
margin:0 0 40px 0;
}
#footer {
background:blue;
width:800px;
margin:30px auto;
color:#ffffff;
}
#footer table {
width:800px;
}
#footer tr {
width:800px;
}
#footer td {
width:200px;
}
Adding clear:left; to your footer solves this problem.
The issue you're seeing is that #left and #right both extend outside of the #main div since they're floating and nothing inside the #main div is clearing those floats.
The footer is then stacking vertically against the #main div which is not the same height as #left and #right.
One thing you can do to pull the main div down over the floated items is add something at the end of it to clear the floats. You can do this with CSS as follows:
#main:after{
content:".";
display:block;
clear:both;
visibility:hidden;
}
What you need to use is what's called a "clear fix". Things are overlapping because the browser doesn't know when to stop "floating" things, so to speak.
You can either:
a) Add after your main divs the following
<div style="clear: both;"> </div>
b) Add the clear: both style to your footer itself.

CSS Validation Error : Same colors for color and background-color in two contexts

I need help to resolve validation css.
Here I got 20 same error in W3 validation. I am not understand properly.
If you resolve this issue so I would greatly appreciate you.
Error:
Same colors for color and background-color in two contexts
Here is CSS Code for your review:
#charset "utf-8";
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: normal;
color: #222222;
text-align: left;
margin: 0px;
padding: 0px;
}
a {
text-decoration:none;
color:#222222
}
a:hover {
color:#29a1d6;
}
span.redclr {
color:#FF0000
}
.clr-blue {
color:#29a1d6
}
.clr-green {
color:#85be2e
}
.g-font-18px {
font-family:Georgia, "Times New Roman", Times, serif;
font-size:18px;
font-style:italic
}
.img-brd-5px {
border:5px solid #f1f1f1;
padding:10px
}
p {
text-align:left;
margin:0px;
padding:0px 0px 8px 0px;
line-height:140%
}
p.pdg-btm-2px {
padding-bottom:2px
}
.textfield {
border:1px solid #cfe8f4;
padding:3px 5px;
text-align:left;
font-family:Arial, Helvetica, sans-serif;
font-size:13px
}
.textfield:hover {
border:1px solid #abd6eb;
background-color:#f2faff
}
.captcha {
border:1px solid #cfe8f4;
padding:3px 5px;
text-align:center;
color:#29a1d6;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
font-weight:bold;
width:119px;
margin-left:5px
}
.captcha:hover {
border:1px solid #abd6eb;
background-color:#f2faff
}
.button-bg {
background:url(../images/btn-bg.jpg) repeat-x center top;
padding:0px;
margin:0px;
color:#FFFFFF;
height:28px;
font-size:14px;
font-weight:bold;
cursor:pointer;
border:0px solid #5fa000;
}
.button-bg:hover {
background:url(../images/btn-bg-hover.jpg) repeat-x center top;
border:0px solid #198dbf
}
.header1-brd-btm {
font-size:20px;
font-weight:bold;
color:#29a1d6;
text-align:left;
margin-bottom:10px;
padding-bottom:5px;
border-bottom:1px solid #cfe8f4
}
.green-header1-brd-btm {
padding:0px 0px 5px 0px;
font-size:18px;
color:#85be2e;
background:none;
font-weight:normal;
border-bottom:1px solid #cfe8f4;
margin-bottom:10px
}
.header-1 {
font-size:33px;
color:#ffffff;
padding:10px 0px 0px 0px;
text-shadow:2px 1px 0px #00648e;
}
.header-2 {
font-size:22px;
color:#29a1d6;
padding:0px 0px 5px 0px;
text-shadow:2px 2px 0px #f1f1f1;
font-weight:bold;
border-bottom:1px solid #cfe8f4;
margin-bottom:10px;
}
.header-3 {
font-size:18px;
color:#85be2e;
padding:0px 0px 5px 0px;
font-weight:bold;
margin-bottom:10px;
}
.header-3-bg {
font-size:18px;
color:#000000;
padding:5px 15px 7px 15px;
font-weight:bold;
margin-bottom:10px;
background-color:#f1f1f1;
overflow:hidden;
clear:left;
}
.text18pt {
font-size:18px;
text-align:left;
line-height:normal;
}
.top-bg {
background:url(../images/top-gradiant-bg.jpg) repeat-x center top;
height:86px;
width:100%;
}
.main {
width:950px;
margin:0px auto;
overflow:hidden;
border:0px solid #000000;
}
.logo {
width:300px;
overflow:hidden;
border:0px solid #000000;
margin-top:15px;
float:left
}
.header-right {
width:645px;
float:right;
border:0px solid #000000;
}
.toplink {
margin:10px 0px 0px 0px;
padding:0px;
text-align:right;
width:645px;
overflow:hidden
}
.toplink ul {
margin:0px;
padding:0px;
}
.toplink ul li {
margin:0px;
padding:5px;
list-style:none;
float:right;
font-size:14px;
font-weight:bold
}
.toplink ul li a {
color:#222222
}
.toplink ul li a:hover {
text-decoration:none;
color:#29a1d6
}
.top-navigation {
margin:20px 0px 0px 0px;
padding:0px;
border:0px solid #000000;
clear:both;
float:right
}
.top-navigation ul {
margin:0px;
padding:0px;
}
.top-navigation ul li {
margin:0px;
padding:0px 15px;
list-style:none;
float:right;
font-size:15px;
font-weight:bold
}
.top-navigation ul li a:hover {
text-decoration:none
}
.main-banner {
width:100%;
background:url(../images/main-banner-bg123.png) repeat-x;
margin:2px auto;
}
.middlebar-bg {
background:url(../images/middle-gradiant-bg.jpg) repeat-x center top;
width:100%;
}
.main3servicesbox {
width:960px;
margin:0px auto;
overflow:hidden;
}
.mainservices-box{
background:url(../images/main-box-bg.png) no-repeat left top;
width:280px;
height:180px;
float:left;
padding:20px 19px 0px 20px;
cursor:pointer
}
.mainservices-box:hover{
background:url(../images/main-box-bg-hover.png) no-repeat left top;
}
.mainservices-title {
font-size:16px;
font-weight:bold;
color:#29a1d6;
text-align:left;
border-bottom:1px solid #29a1d6;
padding-bottom:2px;
margin-bottom:10px
}
.mainservices-link {
margin:0px 0px 0px 0px;
padding:0px;
overflow:hidden;
}
.mainservices-link ul {
margin:0px;
padding:0px;
}
.mainservices-link ul li {
margin:0px;
padding:0px 0px 10px 18px;
list-style:none;
background: url(../images/bullet-small.gif) no-repeat 0px 4px;
font-size:13px;
font-weight:bold
}
.home-content-bg {
background:url(../images/homepage-content-bg.jpg) no-repeat left top;
width:915px;
height:257px;
padding: 20px 10px 0px 25px;
margin:5px 0px 10px 0px;
overflow:hidden
}
.capabilities {
padding:0px 0px 0px 0px;
margin:0px;
border:0px solid #000000;
width:205px;
float:left
}
.capabilities ul {
margin:0px;
padding:0px;
}
.capabilities ul li {
margin:0px;
padding:5px 0px 7px 18px;
list-style:none;
background:url(../images/bullet.gif) no-repeat 0px 9px;
border-top:1px solid #cfe8f4;
font-weight:bold
}
.capabilities ul li.title {
padding-left:0px;
font-size:18px;
border:none;
color:#85be2e;
background:none;
font-weight:normal;
padding-bottom:3px
}
.capabilities ul li a:hover {
text-decoration:none
}
.home-main-content-module {
border:0px solid #000000;
overflow:hidden;
float:left;
margin:0px 0px 0px 45px;
width:650px
}
.footer {
background-color:#f4f4f4;
border-top:2px solid #dfdfdf;
padding-bottom:20px;
margin-top:10px
}
.footerlink {
margin:10px 70px 0px 0px;
padding:0px;
border:0px solid #330000;
float:left
}
.footerlink ul {
margin:0px;
padding:0px;
}
.footerlink ul li {
margin:0px;
padding:0px 0px 4px 0px;
list-style:none;
font-size:12px;
}
.footerlink ul li b {
color:#222222
}
.footerlink ul li a {
color:#545454
}
.footerlink ul li a:hover {
text-decoration:none;
color:#29a1d6
}
.footer-getAquote {
border:0px solid #000000;
float:left
}
.socialMedia-icon {
margin:10px 0px 0px 0px;
padding:0px;
border:0px solid #000000;
overflow:hidden
}
.socialMedia-icon ul {
margin:0px 0px;
padding:0px;
}
.socialMedia-icon ul li {
margin:0px;
padding:0px 0px 0px 25px;
list-style:none;
float:left;
}
.copyrighttext {
width:100%;
height:23px;
background-color:#27a1d5;
color:#FFFFFF;
font-size:12px;
padding-top:13px;
text-align:center
}
/*** services page****/
.page-header-bg {
background: url(../images/page-header-bg.jpg) repeat-x center top;
height:63px;
width:100%;
margin:2px 0px
}
.breadcrumb-bg {
background-color:#ddf7ff;
width:100%;
padding:10px 0px;
margin-bottom:15px
}
.breadcrumb {
margin:0px;
padding:0px;
overflow:hidden;
}
.breadcrumb ul {
margin:0px;
padding:0px;
}
.breadcrumb ul li {
margin:0px;
padding:0px 1px;
list-style:none;
display:inline;
font-size:12px;
}
.breadcrumb ul li a:hover {
text-decoration:none
}
.leftbar {
width:225px;
float:left;
}
.rightbar {
width:700px;
float:left;
margin-left:25px
}
* html .rightbar {
width:698px;
float:left;
margin-left:25px
}
.left-module {
margin:0px 0px 20px 0px;
overflow:hidden
}
.leftbar-navigation {
width:225px;
overflow:hidden;
}
.leftbar-nav-bg-top {
background:url(../images/leftbar-top-bg.jpg) no-repeat 0px 0px;
height:20px
}
.leftbar-nav-bg-middle {
background:url(../images/leftbar-middle-bg.jpg) repeat-y center top
}
.leftbar-nav-bg-bottom {
background:url(../images/leftbar-bottom-bg.jpg) no-repeat 0px bottom;
height:15px;
}
.left-nav {
margin:0px auto;
padding:0px;
width:190px
}
.left-nav ul {
margin:0px;
padding:0px;
}
.left-nav ul li {
margin:0px;
font-size:12px;
list-style:none;
font-weight:bold;
border-top:1px solid #cfe8f4;
}
.left-nav ul li.title {
font-size:15px;
border:none;
padding-bottom:5px
}
.left-nav ul li a {
display:block;
cursor:pointer;
background:url(../images/bullet.gif) no-repeat left 10px;
padding:6px 0px 7px 20px;
}
.left-nav ul li a:hover {
text-decoration:none;
background:url(../images/bullet-12px-hover.gif) no-repeat left 9px;
}
.left-nav ul li.sublink {
border-top:0px;
font-weight:normal;
line-height:normal;
font-size:12px
}
.left-nav ul li.sublink a {
padding:0px 0px 4px 20px;
background-image:none;
}
.left-nav ul li.sublink a:hover {
text-decoration:none;
background:none
}
.leftbar-optin {
margin:0px 0px 0px 0px;
padding:0px;
width:225px;
}
.leftbar-optin ul {
margin:10px 0px 0px 0px;
padding:0px;
}
.leftbar-optin ul li {
margin:0px;
padding:0px 0px 3px 0px;
list-style:none
}
.leftbar-optin ul li .textfield {
width:213px;
}
.leftbar-optin ul li .textfield-h {
width:213px;
height:100px
}
.leftbar-optin ul li .textfield122 {
width:107px;
margin-left:5px
}
.leftbar-optin ul li .submit-btn {
width:225px;
text-align:center;
}
.left-testimonials {
margin:0px;
padding:0px;
}
.left-testimonials ul {
margin:0px;
padding:0px;
}
.left-testimonials ul li {
margin:0px;
padding:0px;
list-style:none;
line-height:140%
}
.left-testimonials ul li.text {
background:url(../images/quote.jpg) no-repeat 0px 0px;
padding:2px 15px 5px 0px;
text-indent:25px;
}
.left-testimonials ul li.boldtext {
color:#29a1d6;
font-size:14px;
font-weight:bold;
line-height:normal;
padding:5px 0px 0px 0px
}
.left-testimonials ul li .border {
border:1px solid #ececec;
margin-bottom:7px;
padding:0px 10px
}
/***rightbar***/
/****ecommerce solutions****/
.overview-key-module {
margin:10px auto 15px auto;
padding:0px;
border:0px solid #666666;
overflow:hidden
}
.overview-key {
width:210px;
border:0px solid #000000;
margin:0px 10px;
float:left;
}
* html .overview-key {
margin:0px 8px
}
.overview-key.overview-key1 {
background-color:#f9ecfe
}
.overview-key.overview-key2 {
background-color:#fef5e6
}
.overview-key.overview-key3 {
background-color:#fff0f3
}
.overview-key-header {
background:url(../images/overview-key-header.jpg) no-repeat;
width:210px;
height:110px;
}
.overview-key-header.overview-key-header1 {
background-position:0px 0px;
}
.overview-key-header.overview-key-header2 {
background-position:0px -120px;
}
.overview-key-header.overview-key-header3 {
background-position:0px -240px;
}
.key-features {
margin:10px 0px;
padding:0px;
}
.key-features ul {
margin:0px;
padding:0px;
}
.key-features ul li {
margin:0px;
padding:6px 0px 8px 15px;
list-style:none;
font-weight:bold;
}
.key-features ul li.keycolor1 {
background-color:#f6e4fe
}
.key-features ul li.keycolor2 {
background-color:#fcebd4
}
.key-features ul li.keycolor3 {
background-color:#fde4e6
}
.feature-point-module {
margin:0px 0px 25px 0px;
width:698px;
clear:left;
float:left;
}
.features-points {
margin:0px 0px 0px 20px;
padding:0px;
border:0px solid #000000;
width:500px;
float:left;
}
.features-points ul {
margin:0px;
padding:0px;
}
.features-points ul li {
margin:0px;
padding:0px 0px 5px 20px;
list-style:none;
background:url(../images/bullet.gif) no-repeat 0px 3px;
line-height:normal
}
.features-points ul li.subpoint {
background:url(../images/sub-bullet.jpg) no-repeat 22px 5px;
padding:0px 0px 3px 35px
}
.features-point-icon {
width:150px;
float:left;
margin-left:25px;
border:0px solid #000000;
}
.features-top {
font-size:12px;
font-weight:bold;
width:30px;
text-align:right;
background-color:#cfe8f4;
padding:5px 10px;
float:right;
margin-right:0px;
text-decoration:none
}
.features-top:hover {
text-decoration:none
}
.features-top-width {
width:698px;
}
.integration-module {
margin:0px 0px 40px 0px;
clear:both;
overflow:hidden
}
.ecommerce-logo {
width:150px;
height:75px;
border:1px solid #f1f1f1;
text-align:center;
float:left;
margin:0px 10px 20px 10px
}
* html .ecommerce-logo {
margin:0px 8px 20px 8px
}
.quicktour {
margin:0px auto;
padding:0px;
width:510px;
}
.quicktour ul {
margin:0px;
padding:0px;
}
.quicktour ul li {
margin:0px;
padding:0px 0px 15px 0px;
list-style:none;
text-align:center
}
.quicktour ul li img {
border:5px solid #f1f1f1;
padding:10px
}
* html .portfolio {
margin-right:8px;
margin-left:8px
}
.portfolio {
margin:10px 10px 20px 10px;
padding:0px;
float:left
}
.portfolio ul {
margin:0px;
padding:0px;
}
.portfolio ul li {
margin:0px;
padding:0px 0px 5px 0px;
list-style:none;
font-weight:bold;
text-align:center
}
.portfolio ul li img {
border:1px solid #f1f1f1;
padding:5px
}
.portfolio ul li img:hover {
border:1px solid #29A1D6;
padding:5px
}
.portfolio ul li a:hover {
text-decoration:none
}
.optin-form-module {
background-color:#f2fafe;
width:650px;
margin:0px auto 50px auto;
overflow:hidden;
border:1px solid #CFE8F4;
padding:0px
}
.optin-form {
margin:0px auto;
padding:0px 0px 20px 0px;
overflow:hidden;
width:600px;
border:0px solid #000000;
}
.optin-form ul {
margin:0px;
padding:0px;
}
.optin-form ul li {
margin:0px;
padding:0px 0px 3px 0px;
list-style:none;
float:left;
}
.optin-form ul li span {
color:#FF0000;
padding-left:5px;
vertical-align:top
}
.optin-form ul li.col1 {
width:255px;
line-height:normal;
padding:3px 10px 0px 0px;
text-align:right
}
.optin-form ul li.col2 {
width:335px;
}
.optin-form ul li.sub-col1 {
width:25px;
}
.optin-form ul li.sub-col2 {
width:305px;
line-height:150%;
}
.optin-form ul li .textfield {
width:300px
}
.optin-form ul li .textfield-h {
width:300px;
height:100px
}
.optin-form ul li .submit-btn {
width:233px;
}
.optin-form ul li.title {
border-bottom:1px solid #CFE8F4;
padding:20px 0px 5px 2px;
margin-bottom:10px;
width:600px;
font-size:18px;
}
.optin-form ul li.privacy {
background:url(../images/lock-icon.gif) no-repeat 20px 10px;
padding:10px 0px 0px 55px;
border-top:1px solid #CFE8F4;
margin-top:10px;
width:545px
}
/***** seo****/
.bullet-point-common {
margin:0px 0px 10px 0px;
padding:0px;
}
.bullet-point-common ul {
margin:0px;
padding:0px;
}
.bullet-point-common ul li {
margin:0px;
padding:0px 0px 5px 20px;
list-style:none;
background:url(../images/bullet.gif) no-repeat 0px 3px;
line-height:normal
}
.bullet-point-common ul li.subpoint {
background:url(../images/sub-bullet.jpg) no-repeat 22px 5px;
padding:0px 0px 3px 35px
}
.bullet-point-common ul li.title {
font-size:18px;
color:#29a1d6;
padding:0px 0px 3px 0px;
text-shadow:2px 2px 0px #f1f1f1;
font-weight:bold;
border-bottom:1px solid #cfe8f4;
margin:10px 0px;
background:none
}
.contactus-module {
border:0px solid #000000;
overflow:hidden;
}
.contact-adrs {
margin:10px 70px 0px 0px;
padding:0px;
float:left;
border:0px solid #000000;
}
.contact-adrs ul {
margin:0px;
padding:0px;
}
.contact-adrs ul li {
margin:0px;
padding:0px 0px 3px 0px;
list-style:none
}
.contact-adrs ul li img {
border:1px solid #dddddd
}
.contact-adrs ul li img:hover {
border:1px solid #abd6eb
}
.contactus-option-module {
overflow:hidden;
border:0px solid #000000;
margin:30px 0px 0px 0px;
clear:left
}
.contactus-optin {
margin:15px 0px;
padding:0px;
width:350px
}
.contactus-optin ul {
margin:0px;
padding:0px;
}
.contactus-optin ul li {
margin:0px;
padding:0px 0px 3px 0px;
list-style:none;
float:left;
width:350px
}
.contactus-optin ul li.col1 {
width:80px;
padding:5px 0px 0px 0px
}
.contactus-optin ul li.col2 {
width:250px;
}
.contactus-optin ul li .textfield {
width:225px;
}
.contactus-optin ul li .textfield-h {
height:100px;
}
.contactus-optin ul li span {
color:#FF0000;
padding:0px 0px 0px 5px;
vertical-align:top
}
.contactus-optin ul li .submit-btn {
width:238px;
}
.client-ranking-module {
margin:0px 0px 20px 0px;
padding:10px 0px 15px 15px;
border-top:0px solid #85be2f;
background-color:#f5f5f5
}
.client-ranking-module ul {
margin:0px;
padding:0px;
}
.client-ranking-module ul li {
list-style:none;
font-size:13px;
font-weight:bold;
padding:0px 0px 5px 0px
}
.client-ranking-module ul li.screenshort {
border:1px solid #dddddd;
width:665px;
padding-top:5px
}
/***** tstimonials********/
#testimonials {
border-bottom:1px dotted #8ecae7;
margin-bottom:20px;
padding-bottom:20px;
clear:left;
overflow:hidden
}
#testimonials p.title {
font-size:14px;
font-weight:bold;
color:#29a1d6;
padding-bottom:0px;
line-height:normal
}
#testimonials p .text {
font-size:13px;
color:#222222;
font-weight:normal
}
/**** careers****/
.apply-now{
background:url(../images/apply-now.jpg) no-repeat left top;
width:510px;
margin:20px auto;
height:47px;
font-size:16px;
padding: 6px 0px 0px 190px;
display:block;
color:#FFFFFF;
font-weight:bold
}
.apply-now:hover {
color:#ffffff;
text-decoration:none
}
/****** portfolio*****/
#portfolio-main {
border:0px solid #000000;
overflow:hidden;
clear:left;
float:left;
margin-bottom:30px;
width:700px
}
.ecommerce-box {
border:1px solid #CFE8F4;
background-color:#f2faff;
padding:10px 15px;
margin-bottom:10px
}
.casestudy-mrgn {
margin:20px 0px 5px 0px
}
.caseStudy-img {
float:right;
margin:0px 0px 10px 10px;
border:2px solid #f1f1f1;
padding:5px
}
.caseStudy-table{
margin:8px 0px 10px 0px;
padding:0px;
border:1px solid #cccccc;
border-bottom:none;
width:698px;
overflow:hidden
}
.caseStudy-table ul{
margin:0px;
padding:0px;
}
.caseStudy-table ul li{
margin:0px;
float:left;
line-height:200%;
list-style:none;
padding-left:8px;
border-right:1px solid #cccccc;
border-bottom:1px solid #cccccc;
}
.caseStudy-table ul li.col1{
width:123px;
}
.caseStudy-table ul li.col2{
width:190px;
}
.caseStudy-table ul li.col3{
width:180px;
}
.caseStudy-table ul li.col4{
width:170px;
border-right:0px;
}
.caseStudy-table ul li.backgrnd {
background:#f6f6f6;
color:#222222
}
.caseStudy-table ul li.boldtext {
background-color:#29A1D6;
color:#FFFFFF;
font-weight:bold
}
Well, the CSS validator shows you at which line the error/warning is, so that is already a start.
Now to what (example)
Same colors for color and background-color in two contexts .caseStudy-table ul li.boldtext and a:hover
means:
Your background color is the same as the text color. The validator shows a warning because it might not be possible to read the text. (Ever try to read white text on white background?)
.caseStudy-table ul li.boldtext {
background-color : #29a1d6; /* background-color */
color : #ffffff;
font-weight : bold;
}
a:hover {
color : #29a1d6; /* text color */
}
If you don't have a link in .caseStudy-table ul li.boldtext then it is ok. That is why the message is a warning and not an error.
The nasty thing here is that the mentioned color is used in the hover pseudo class for anchors, globally, so whenever you move your mouse over a link in the caseStudy-list-"context", it hides.

Resources