Change color of sticky menu when scrolled - css

Am editing a client's website and one thing has got my head spinning.
I would like to change the color of the sticky menu once it is scrolled. Can someone help me with a custom css to make those changes?
Here is my css
/*
Theme Name: Malory
Theme URI: http://www.tommusrhodus.com
Version: 1.0.3
Description: Malory - A Multipurpose, Responsive WordPress Theme.
Author: Tom Rhodes
Author URI: http://www.tommusrhodus.com
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: white, custom-background, threaded-comments, translation-ready, custom-menu
*/
/*
WARNING! DO NOT EDIT THIS FILE!
To make it easy to update your theme, you should not edit the styles in this file. Instead use
the custom.css file to add your styles. You can copy a style from this file and paste it in
custom.css and it will override the style in this file. You have been warned! :)
*/
/*-----------------------------------------------------------------------------------*/
/* Visual Composer Styles
/*-----------------------------------------------------------------------------------*/
.vc_column_container > .vc_column-inner {
padding-left: 0;
padding-right: 0;
}
.wpb_row {
margin-bottom: 0;
}
.box {
width: 100%;
}
div[data-vc-parallax] .box,
div[data-vc-parallax-image] .box {
background: none;
}
/*-----------------------------------------------------------------------------------*/
/* Theme Styles
/*-----------------------------------------------------------------------------------*/
.admin-bar .navbar.fixed,
.admin-bar .slide-nav-container header,
.admin-bar .lg-toolbar {
top: 32px;
}
p:empty {
display: none;
}
.feature {
padding-bottom: 25px;
}
.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
background: none;
}
.social.bordered .goodshare:before {
display: none;
}
.social.bordered .goodshare {
padding: 0;
}
.single-portfolio.admin-bar .fotorama {
position: relative;
top: -32px;
}
.admin-bar .slide-nav-wrapper {
padding-top: 32px;
}
img {
max-width: 100%;
height: auto;
}
.tiles img {
max-width: none;
}
.select-wrap {
position: relative;
}
.select-wrap > span {
position: absolute;
right: 23px;
top: 7px;
pointer-events: none;
}
footer select {
border-color: #ccc;
}
footer address {
margin-bottom: 0;
}
/*-----------------------------------------------------------------------------------*/
/* WORDPRESS DEFAULT STYLES
/*-----------------------------------------------------------------------------------*/
.post-content ul, .post-content ol,
.wpb_text_column ul,
.wpb_text_column ol {
margin: 0 0 20px 0;
padding: 0;
list-style-position: inside;
}
.post-content ul ul, .post-content ol ol,
.wpb_text_column ul ul, .wpb_text_column ol ol {
margin: 0 0 0 40px;
}
.sticky {
}
.bypostauthor img.avatar {
}
.screen-reader-text {
}
select {
max-width: 100%;
}
.alignleft,
.aligncenter,
.alignright,
.alignnone {
margin-bottom: 25px;
}
.alignnone {
display: block;
}
.alignleft {
float: left;
margin: 0 30px 30px 0 !important;
}
.alignright {
float: right;
margin: 0 0 30px 30px !important;
}
.aligncenter {
display: block;
margin-right: auto;
margin-left: auto;
text-align: center;
}
figure.aligncenter a {
display: inline-block;
overflow: hidden;
position: relative;
}
.wp-caption {
max-width: 100%;
text-align: center;
}
.wp-caption img {
margin-bottom: 10px;
}
.gallery-caption {
margin: 20px 0;
max-width: 100%;
text-align: center;
z-index: 999;
}
.wp-caption-text,
.gallery-caption-text {
margin: 6px 0;
font-style: italic;
font-size: 95%;
line-height: 120%;
}
.aligncenter {
text-align: center;
}
table#wp-calendar {
border: 1px solid #cccccc
}
table#wp-calendar>tbody>tr>td>a {
text-decoration: underline
}
table#wp-calendar thead>tr>th {
width: 35px;
height: 20px;
text-align: center;
border: 1px solid #cccccc;
}
table#wp-calendar tbody>tr>td {
width: 35px;
height: 20px;
text-align: center;
border: 1px solid #cccccc;
}
table#wp-calendar tfoot>tr>td>a,
tfoot>tr>td>a:link,
tfoot>tr>td>a:visited,
tfoot>tr>td>a:hover,
tfoot>tr>td>a:active {
text-decoration: underline;
height: 23px;
margin-left: 10px;
padding-bottom: 3px;
}
table#wp-calendar tfoot>tr>td#prev {
width: 58px;
height: 20px;
text-align: left;
}
table#wp-calendar tfoot>tr>td#next {
width: 58px;
height: 20px;
text-align: right;
}
.post-content table,
.wpb_text_column table {
margin-bottom: 25px;
}
.post-content table tr,
.post-content table td,
#wp-calendar table tr,
#wp-calendar table td,
.wpb_text_column tr,
.wpb_text_column td {
padding: 10px 15px;
border: 1px solid #cccccc;
}
dd {
margin-bottom: 25px;
}
dt {
margin-bottom: 10px;
font-size: 18px;
}
.widget_rss li {
margin-bottom: 20px; padding-bottom: 20px;
}
.widget_rss li .rsswidget, .widget_rss li cite {
font-weight: bold; display: block;
}
.widget_rss li .rss-date {
display: block; margin-bottom: 10px;
}
.widget_rss li cite {
margin-top: 10px;
}
.post-content hr,
.wpb_text_column hr {
clear: both;
}
.post-content span.pull-right,
.post-content span.pull-left,
.wpb_text_column span.pull-right,
.wpb_text_column span.pull-left {
float: right;
display: inline-block;
width: 300px;
margin: 0 0 20px 20px;
font-size: 22px;
line-height: 30px;
}
.post-content span.pull-right,
.wpb_text_column span.pull-right {
float: right;
margin: 0 0 20px 20px;
text-align: right;
}
.post-content span.pull-left,
.wpb_text_column span.pull-left {
float: left;
margin: 0 20px 20px 0;
}
.post-content table,
.wpb_text_column table {
text-align: left;
width: 100%;
}
.post-content table td,
.post-content table th,
.wpb_text_column table td,
.wpb_text_column table th {
padding: 15px;
}
.post-content table tr:nth-child(even),
.post-content table thead tr,
.wpb_text_column table thead tr,
.wpb_text_column table tr:nth-child(even) {
background: #f5f5f5;
}
/*-----------------------------------------------------------------------------------*/
/* CONTACT FORM 7
/*-----------------------------------------------------------------------------------*/
div.wpcf7 .wpcf7-not-valid {
border: 2px solid #b54d4d
}
span.wpcf7-not-valid-tip {
display: none !important
}
div.wpcf7-validation-errors,
.highlight {
margin: 0;
padding: 10px;
background-color: #fcf8e3;
color: #c09853;
border: 2px solid #faebcc;
}
div.wpcf7-validation-errors {
margin-top: 20px;
}
div.wpcf7-mail-sent-ok {
margin: 0;
padding: 10px;
border: 2px solid #d6e9c6;
background-color: #dff0d8;
color: #468847;
}
div.wpcf7 textarea {
height: 110px;
}
div.wpcf7 input[type="submit"],
div.wpcf7 p {
margin-bottom: 0;
}

just add this at the end of your themes stylesheet:
.navbar.fixed{
background: rgba(255,255,255,0.6);
}
regarding the mobile question you need to search for appropriate media query in the css and add the above to the according block.

This is a rough example but hopefully you get the concept. You can a class to the header once it has scrolled.
Any styling changes to that class like the color are defined in your css but you will need some simple JS to detect your scrolling. Please see this example (I took my own liberties with the styling like the height changing) and customize to your needs
$(function() {
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 97) {
$("header").addClass('shrink');
} else {
$("header").removeClass("shrink");
}
});
});
.container {
height: 900px;
overflow-y: scroll;
}
header {
background-color: blue;
width: 100%;
height: 100px;
position: fixed;
}
h1 {
font-size: 22px;
color: white;
}
header.shrink {
height: 50px;
background-color: red;
}
h1.shrink {
font-size: 14px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<body class="container">
<header><h1>I'm a header</h1></header>
</body>

You should provide us with some of your code to be able to help properly.. but in short
you need a scroll listener (if using jquery)
jQuery(window).scroll(function() {
if (jQuery(document).scrollTop() > 50) {
jQuery('.navbar-nav').addClass('redColored');
} else {
jQuery('.navbar-nav').removeClass('redColored');
}
});
and the CSS
.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
background:none;
}
.navbar-default .navbar-nav.redColored{
background:#ff0000;
}

Related

Padding on both sides on mobile

On my site, the items under home-boxes class on the mobile phone appear to have extra padding on the left. How can I avoid it?
<div class="container">
<div class="row space" >
<div class="col-md-3 col-xs-12 ">
<a href="http://www.inspuratesystems.com/clf/why-we-are-needed/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/11.jpg">
<div class="col-xs-12" id="home-boxes">
<h3>Why we are needed</h3>
<p>More than half of Karachi’s population lives in low-resource densely-packed neighborhoods, where there are few or no qualified doctors conveniently located. Pollution is high, and diseases are rampant.</p>
</div>
</a>
</div>
<div class="col-md-3 col-xs-12 ">
<a href="http://www.inspuratesystems.com/clf/emergency-care-2/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/21.jpg">
<div class="col-xs-12" id="home-boxes" >
<h3>Emergency Care</h3>
<p>During the floods of 2010, CNN correspondent Dr. Sanjay Gupta did a news segment on the dilapidated children’s emergency room (ER) at Civil Hospital, Karachi.</p>
</div>
</a>
</div>
<div class="col-md-3 col-xs-12">
<a href="http://www.inspuratesystems.com/clf/primary-care-2/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/3.jpg">
<div class="col-xs-12" id="home-boxes">
<h3>Primary Care</h3>
<p>ChildLife Foundation initiated a partnership with SINA Trust in 2012 under the leadership of their common trustee, Dr. Naseeruddin Mahmood. Since 1998, SINA has been operating primary care clinics in low-income.</p>
</div>
</a>
</div>
<div class="col-md-3 col-xs-12">
<a href="http://www.inspuratesystems.com/clf/preventive-care/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/5.jpg">
<div class="col-xs-12" id="home-boxes">
<h3>Preventive Care</h3>
<p>394,000 children in Pakistan die before their fifth birthdays. 122,000 of them did not make it past their first year of life. As a result, Pakistan has the third highest mortality rate in the world, primarily because of preventable... </p>
</div>
</a>
</div>
</div>
</div>
CSS:
/*
Theme Name: Child Life Foundation
Theme URI: http://underscores.me/
Author: Fahad Uddin
Author URI: http://underscores.me/
Description: Inspurate has created a website template for Child Life Foundation
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: child-life-foundation
Tags:
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
Child Life Foundation is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
## Links
## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
## Posts and pages
## Asides
## Comments
# Infinite scroll
# Media
## Captions
## Galleries
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden],
template {
display: none;
}
a {
background-color: transparent;
color:#dbff98;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
mark {
background: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 1em 40px;
}
hr {
box-sizing: content-box;
height: 0;
}
pre {
overflow: auto;
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
color: inherit;
font: inherit;
margin: 0;
}
button {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
input {
line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
input[type="search"] {
-webkit-appearance: textfield;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
}
optgroup {
font-weight: bold;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
textarea {
color: #404040;
/* font-family: sans-serif;
*/
font-size: 16px;
font-size: 1rem;
line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
clear: both;
text-transform: uppercase;
color:#9bbd1b;
}
p {
margin-bottom: 1.5em;
}
dfn,
cite,
em,
i {
font-style: italic;
}
blockquote {
margin: 0 1.5em;
}
address {
margin: 0 0 1.5em;
}
pre {
background: #eee;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 15px;
font-size: 0.9375rem;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1.6em;
}
code,
kbd,
tt,
var {
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
font-size: 15px;
font-size: 0.9375rem;
}
abbr,
acronym {
border-bottom: 1px dotted #666;
cursor: help;
}
mark,
ins {
background: #fff9c0;
text-decoration: none;
}
big {
font-size: 125%;
}
/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
box-sizing: border-box;
}
*,
*:before,
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
box-sizing: inherit;
}
body {
background: #fff; /* Fallback for when there is no custom background color defined. */
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
}
blockquote,
q {
quotes: "" "";
}
hr {
background-color: #ccc;
border: 0;
height: 1px;
margin-bottom: 1.5em;
}
ul,
ol {
/* margin: 0 0 1.5em 3em; */
/* margin: 0 0 1.5em 3em; */
/* margin: 0 0 1.5em -2em; */
}
ul {
list-style: disc;
}
ol {
list-style: decimal;
}
li > ul,
li > ol {
margin-bottom: 0;
margin-left: 1.5em;
}
dt {
font-weight: bold;
}
dd {
margin: 0 1.5em 1.5em;
}
img {
height: auto; /* Make sure images are scaled correctly. */
max-width: 100%; /* Adhere to container width. */
}
table {
margin: 0 0 1.5em;
width: 100%;
}
/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
border: 1px solid;
border-color: #FFF;
border-radius: 0px;
background: #9bbd1b;
/* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05); */
color: #FFF;
font-size: 12px;
font-size: 0.75rem;
line-height: 1;
padding: .6em 1em .4em;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
border-color: #ccc #bbb #aaa;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
}
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
border-color: #aaa #bbb #bbb;
box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
color: #666;
border: 0px solid #FFF;
border-radius: 0px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
color: #111;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"] {
padding: 3px;
}
textarea {
padding-left: 3px;
width: 100%;
}
/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
color: #dbff98;
}
/*
a:visited {
color: purple;
}
*/
a:hover,
a:focus,
a:active {
color: #FFFFFF;
}
a:focus {
outline: thin dotted;
}
a:hover,
a:active {
outline: 0;
}
/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
clear: both;
display: block;
float: left;
width: 100%;
}
.main-navigation ul {
display: none;
list-style: none;
margin: 0;
padding-left: 0;
}
.main-navigation li {
float: left;
position: relative;
}
.main-navigation a {
display: block;
text-decoration: none;
}
.main-navigation ul ul {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
float: left;
position: absolute;
top: 1.5em;
left: -999em;
z-index: 99999;
}
.main-navigation ul ul ul {
left: -999em;
top: 0;
}
.main-navigation ul ul a {
width: 200px;
}
.main-navigation ul ul li {
}
.main-navigation li:hover > a,
.main-navigation li.focus > a {
}
.main-navigation ul ul :hover > a,
.main-navigation ul ul .focus > a {
}
.main-navigation ul ul a:hover,
.main-navigation ul ul a.focus {
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
left: auto;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
left: 100%;
}
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a {
}
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
display: block;
}
#media screen and (min-width: 37.5em) {
.menu-toggle {
display: none;
}
.main-navigation ul {
display: block;
}
}
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
margin: 0 0 1.5em;
overflow: hidden;
}
.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
float: left;
width: 50%;
}
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
float: right;
text-align: right;
width: 50%;
}
/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
}
.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000; /* Above WP toolbar. */
}
/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
outline: 0;
}
/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
display: inline;
float: left;
margin-right: 1.5em;
}
.alignright {
display: inline;
float: right;
margin-left: 1.5em;
}
.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}
/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
content: "";
display: table;
table-layout: fixed;
}
.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
clear: both;
}
/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
margin: 0 0 1.5em;
}
/* Make sure select elements fit in widgets. */
.widget select {
max-width: 100%;
}
/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
display: block;
}
.hentry {
margin: 0 0 1.5em;
}
.byline,
.updated:not(.published) {
display: none;
}
.single .byline,
.group-blog .byline {
display: inline;
}
.page-content,
.entry-content,
.entry-summary {
margin: 1.5em 0 0;
}
.page-links {
clear: both;
margin: 0 0 1.5em;
}
/*--------------------------------------------------------------
## Asides
--------------------------------------------------------------*/
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
display: none;
}
/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
word-wrap: break-word;
}
.bypostauthor {
display: block;
}
/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
display: none;
}
/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
display: block;
}
/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
border: none;
margin-bottom: 0;
margin-top: 0;
padding: 0;
}
/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
max-width: 100%;
}
/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
margin-bottom: 1.5em;
max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
display: block;
margin-left: auto;
margin-right: auto;
}
.wp-caption .wp-caption-text {
margin: 0.8075em 0;
}
.wp-caption-text {
text-align: center;
}
/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
margin-bottom: 1.5em;
}
.gallery-item {
display: inline-block;
text-align: center;
vertical-align: top;
width: 100%;
}
.gallery-columns-2 .gallery-item {
max-width: 50%;
}
.gallery-columns-3 .gallery-item {
max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
max-width: 25%;
}
.gallery-columns-5 .gallery-item {
max-width: 20%;
}
.gallery-columns-6 .gallery-item {
max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
max-width: 11.11%;
}
.gallery-caption {
display: block;
}
.site{
border-top: 10px solid #9bbd1b;
}
.line{
border-top: 5px solid #9bbd1b;
}
.site-header{
background-color:#ffffde;
}
/* Small devices (tablets, 768px and up) */
#media (min-width: 768px) {
.nav>li{
display: inline-block !important;
padding: 0 0 0 34px;
width: 160px;
}
.footerspace{
margin-top:65px;
}
}
.nav>li a{
font-size: 13px;
text-transform: uppercase;
color:#484848;
font-weight: bold;
font-family: HelveticaRounded;
}
.nav > li > a:hover{
background-color:#9bbd1b !important;
color:#FFF;
}
.nav li ul{
list-style-type: none;
}
.nav li li a{
font-size: 13px;
text-transform: uppercase;
color:#FFF;
font-weight: bold;
font-family: HelveticaRounded;
text-decoration:none;
margin-left:-10px;
width: 160px;
padding: 10px 15px 10px;
background-color:#9bbd1b !important;
}
.search{
height:50px;
width:50px;
}
#media screen and (min-width: 769px) {
/*
.navbar{
margin-top: 15px;
}
*/
.search{
margin-top: 100px; /* 10 pixel extra than navbar because in navbar there is a padding-top of 10 pixel on text. */
}
.donate{
margin-top: 60px;
}
.space{
margin: 50px 0;
}
.logo{
margin-top: 13px;
}
}
h3{
font-size:19px;
}
.navbar{
float:right;
}
.footerwidget{
font-size:14px; color:#989898; margin-top:33px;
}
.footerheading h2{
font-size: 18px;
color: #FFF;
text-transform: capitalize;
}
#media screen and (max-width: 769px) {
.nav {
margin-top:50px;
}
.footertext, .footertext a{
text-align:center;
}
}
.green{
background-color:#8ab51e;
margin: 0 auto;
}
.green h3{
color:#FFF;
}
.navbar{
margin-top: -7px;
margin-bottom: -12px;
}
.btn{
background-color:#9bbd1b;
}
.white, .white a {
color: #fff;
}
.btn-danger:hover{
background-color: #000000;
}
.greenIcon, .greenIcon a {
color: #9bbd1b;
}
.btn-white {
background: #FFF;
color: #ffffff;
}
.btn-white:hover {
background: #FFF;
color: #ffffff;
}
.input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group{
background-color: #9bbd1b !important;
border: 1px solid #9bbd1b !important;
}
.primary-menu{
font-family: HelveticaRounded;
}
#home-boxes{
border: 1px solid #ddd; border-style: solid;
border-top: solid #8ab51e; height: 265px;
color:#404040;
}
#home-boxes:hover{
background-color:#8ab51e;
color:#FFF;
}
#home-boxes:hover h3{
background-color:#8ab51e;
color:#FFF;
}
#
.donate_bg{
background-image: url("http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/donate_image.png");
}
.donate_bg h3{
font-size: 25px;
font-family: HelveticaRounded;
}
.footertext, .footertext a{
color:#989898;
font-size:16px;
margin-top:30px;
}
.navbar .nav>li>a:focus, .navbar .nav>li>a:hover{
color:#FFFFFF;
}
.input-group .form-control, .input-group-addon, .input-group-btn{
height: 31px;
}
#secondary{
background-color: #FAFAFA;
}
.ubermenu-skin-grey-white .ubermenu-submenu, .ubermenu-skin-grey-white .ubermenu-submenu .ubermenu-target{
color:#FFF !important;
}
#media screen and (min-width: 769px) {
#main{
margin-top:50px;
}
#main a{
color:#9bbd1b;
}
#secondary a{
color:#808080;
}
#secondary li{
line-height: 20px;
padding: 15px 50px;
list-style-type: 009B;
font-size: 18px;
}
#secondary li:before {
content: "\00BB \0020";
}
#secondary ul {
list-style:none;
}
.col-md-9.donate .col-md-3 > a {
background: #D20059 none repeat scroll 0% 0%;
font-family: HelveticaRounded;
color: #fff;
font-size: 16px;
padding: 5px 20px;
display: inline-block;
}
.col-md-9.donate .col-md-3 > a > img
{
width: 20px;
}
#media only screen and (min-width:300px) and (max-width: 992px) {
.col-md-9.donate .col-md-3 > a {
width: 100% !important;
float: left;
margin: 10px 0;
border-radius: 5px;
text-align: center;
height:31px;
}
}
#media only screen and (max-width:992px){
.inner-sidebar{
display:none;
}
}
.mobile{
margin: 0;
}
html, body{
overflow-x: hidden;
}
#flexslider-title{
display:none;
}
#comment{
border: 1px solid #174946;
}
Fiddle.
Take a look with the developer tools of your browser.
Assuming that we're looking at the same elements, the extra 15px on the left side is due to this on the line 732 of bootstrap-combined.no-icons.min.css:
#media (max-width: 767px) {
.row, .thumbnails {
margin-left: 0;
}
}
which resets the negative margin on the left side but not on the right side. You could counter that with setting it back to -15px on .row:
#media (max-width: 767px) {
.row {
margin-left: -15px;
}
}
Just had a look at your site. It seams the the Bootstrap css file is adding 20px padding to left and right side of the Body element using a #media query after 767px.
All you need to do is override this in your own css file. Like this:
#media screen and (max-width: 767px) {
body {
padding-left: 0px !important;
padding-right: 0px !important;
}
}
The !important extensions will do as they say. It will override the styling no matter what the css hierarchy is. I'm putting these in to be safe as Bootstrap may override your custom css without !important extensions. Try the code above without !important extensions and see if it works also.

items on chrome change position (css)

im trying to make compatible this template on chrome, the main problem is that every time i refresh the page, items are changing position this is the site zygi.loginet.gr and it works fine on mozilla.
/* reset/default rules */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, acronym, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, thead, tr, th, td {
margin: 0;
padding: 0;
font-size: 100%;
vertical-align: baseline;
border: 0;
outline: 0;
background: transparent;
font-family: 'open_sansregular';
}
blockquote, q {
quotes: none;
}
:focus {
outline: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
a img, :link img, :visited img {
border: 0;
}
img {
max-width: 100%;
height: auto;
}
q:before, q:after, blockquote:before, blockquote:after {
content: "";
}
a, .inputbox {
outline-width:0;
}
a {
/*transition: all 0.5s ease;*/
text-decoration: none;
color: #90AF63;
}
a:hover {
color: #B1BC42;
text-decoration: none;
}
body {
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
background: #fff;
color: #777;
}
html {
height:100%;
width:100%;
}
p {
font-size: .9em;
font-weight: 400;
line-height: 1.8;
}
.block {
display: inline-block;
width: 100%;
padding: 2.5em 0;
}
.block-clients {
background-color: #f6f6f6;
display: inline-block;
width: 100%;
padding: 2.5em 0;
}
.block-clients h3 {
font-size: 2em;
font-weight: 300;
letter-spacing: -1px;
padding-bottom: 1em;
text-align: center;
}
.block-services {
display: inline-block;
width: 99%;
padding: .5em 0 1.5em 0;
}
.innerBlock, .contentTop .vendor-store-desc p, .contentTop .vendor-store-desc .page-header, .contentTop .topten-view, .contentTop .category-view .row {
max-width: 1210px;
margin: 0 auto;
}
/* /reset/general rules */
/*---------------------------------------------------------------------------------------*/
/* base typography */
h1{ font-size: 1.6em }
h2{ font-size: 1.4em; line-height: 1.4em; }
h3{ font-size: 1.3em }
h4{ font-size: 1.2em }
h5{ font-size: 1.1em }
h6{ font-size: 1em }
/* /base typography */
/* buttons */
button, .button, .btn, .btn-primary, #input .button {
padding: .3em 1em;
color: #fff;
border-radius: 2px;
margin-top: .5em;
transition: all .2s linear;
}
input.button:not([type="checkbox"]) {
border-top: none;
border-right: none;
border-left: none;
color: #fff;
}
a.button{
display: inline-block;
}
/* colors for diferent buttons */
.button.common {
background: transparent;
border: 2px solid rgba(255, 255, 255, .65);
}
.button.common:hover, .button.common:focus {
border: 2px solid rgba(255, 255, 255, 1);
}
/* /colors for diferent buttons */
.form-actions {
background: none;
}
/* slider / bg image */
.slider {
background-image: url(../images/mainIntroImg.jpg);
margin-top: -3px;
padding: 2em 0;
position: relative;
text-align: center;
line-height: 2.4em;
color: #fff;
background-size: auto;
}
.slider .innerBlock > .moduletable {
background: url(../images/sliderInnerBg.png) no-repeat bottom right;
}
.slider a {
display: inline-block;
color: #fff;
}
.slider a:hover {
color: #cdcdcd;
}
.slider h1 {
border-bottom: 1px solid #fff;
color: #fff;
font-size: 2.5em;
font-weight: bold;
padding: 3% 0 2% 0;
text-align: left;
width: 50%;
}
.slider p {
font-size: 1.4em;
font-weight: 100;
line-height: 1.8em;
}
.slider-content {
display: inline-block;
margin-bottom: 5px;
width: 100%;
text-shadow: 5px 5px 10px #888;
}
.slider-content-desc {
width: 53%;
}
ul.slider-services {
background: rgba(125, 167, 217, .7);
padding: 29.5px 2%;
width: 48.6%;
}
ul.slider-services li {
display: inline-block;
}
ul.slider-services li::after {
content: "//";
color: #B4A16D;
text-shadow: 0px 1px 1px #333;
padding: 0 4px;
}
.blog .item {
text-align: center;
transition: all .2s linear;
margin: 1em 1%;
padding: 1em 0;
}
.blog .item:hover, .services ul li:hover {
background: #eee;
}
.blog .item h2 {
font-size: 1em;
}
.blog .item-image.pull-left {
float: none;
}
.blogPreview .servicesImg {
text-align: center;
}
.services ul li, .contentCustomers ul li, .blogPreview ul li {
padding: .25%;
margin: 0 .25%;
text-align: center;
display: inline-block;
vertical-align: top;
}
.services ul li {
width: 23.7%;
transition: all .2s linear;
padding-bottom: .5em;
}
.blogPreview ul li {
width: 23.7%;
transition: all .2s linear;
padding-bottom: .5em;
}
.contentCustomers ul li {
width: 15.3%;
}
.servicesImg, .blogPreview ul li > img {
display: inline-block;
width: 100%;
transition: .2s linear all;
border-radius: 50%;
}
.blogPreview .servicesImg img, .logiBlog .leadingArt > .item-image img {
/*max-height: 171px;*/
max-width: 100%;
height: auto;
padding: 6px;
background: #fff;
border: 1px solid #ddd;
box-sizing: border-box;
}
.blogPreview li:hover .servicesImg img {
border: 1px solid #999;
}
.mod-articles-category-title {
color: #343433;
transition: color 0.2s linear 0s;
line-height: 1em;
padding: .3em 0;
margin-bottom: .4em;
display: inline-block;
}
a.mod-articles-category-title:hover {
color: #71A45B;
}
p.mod-articles-category-introtext{
font-size: .9em;;
font-weight: 400;
line-height: 1.6;
min-height: 6.3em;
}
.services .mod-articles-category-title {
font-size: 1.3em;
}
/* /services */
/* blogPreview */
.blogPreview li a, .blogPreview li span {
text-align: left;
display: inline-block;
width: 100%;
}
.blogPreview a.mod-articles-category-title {
color: #6190be;
font-size: .9em;
line-height: 1.2em;
font-weight: 700;
}
.blogPreview a.mod-articles-category-title:hover {
color: #444;
}
.blogPreview .mod-articles-category-date {
font-size: .8em;
}
/* /blogPreview */
/* content blocks and particular (.)block - sections styling */
.contentTop {
padding: 0 0;
}
.xselling a, .xselling {
color: #000;
text-align: center;
}
..xselling a {
margin: .2em 0;
}
.xselling {
padding: 1em 0;
float: left;
border-top: 1px solid #000;
}
.page-header, .topten-view h4, .xselling h3 {
font-size: 1.8em;
font-weight: 300;
letter-spacing: -1px;
text-align: center;
padding: 0;
border: none;
position: relative;
}
.page-header, .topten-view h4 {
margin: 2em auto!important;
}
.page-header h2 {
display: inline;
line-height: 0;
padding: 0 .5em;
}
.topten-view h4:before, .topten-view h4:after, .xselling h3:before, .xselling h3:after {
background: #90AF5F;
}
.page-header:before, .page-header:after{
background: #000;
}
.page-header:before, .page-header:after,
.topten-view h4:before, .topten-view h4:after,
.xselling h3:before, .xselling h3:after {
content: "";
display: block;
width: 30%;
height: 2px;
position: absolute;
top: 40%;
}
.page-header:before,
.topten-view h4:before,
.xselling h3:before {
left: 0;
}
.page-header:after,
.topten-view h4:after,
.xselling h3:after {
right: 0;
}
.block h3 {
font-size: 2em;
font-weight: 300;
letter-spacing: -1px;
text-align: center;
padding-bottom: .5em;
}
.pxBg {
background-attachment: fixed;
background-position: center 0;
background-repeat: no-repeat;
background-size: cover;
}
.whiteTrans {
background: rgba(255,255,255,.45);
padding: 2.5em 0;
text-align: center;
}
.vendor-store-desc {
background-image: url(../images/shopBg.jpg);
margin: 0;
color: #000;
}
.communication {
background: #6190BE;
text-align: center;
display: inline-block;
margin: auto;
width: 100%;
padding: 2% 0;
}
.communicationCont {
display: inline-block;
margin: auto;
width: 48%;
}
.communicationText {
display: block;
margin: auto;
color: #fff;
font-size: 2em;
line-height: 2em;
}
.communicationImg {
display: block;
float: left;
}
.communicationImg img {
}
.bgContThree, .contentHeader {
background-image: url(../images/logiPxBg1.jpg);
color: #fff;
font-size: 1.4em;
line-height: 1.2em;
}
.bgContThree {
background: #6190BE;
}
/* content blocks and particular (.)block - sections styling */
/* preFooter */
.preFooter {
background: #6190be;
color: #fff;
text-align: center;
font-size: 1.2em;
line-height: 1.6em;
font-style: italic;
margin-bottom: -4px;
}
.preFooter img {
vertical-align: middle;
}
/* pre foter quote + contnent header*/
.bottomQuote {
color: #fff;
}
.contentHeader, .bottomQuote {
text-align: center;
}
.contentHeader h1 {
padding-bottom: .3em;
margin-bottom: .3em;
}
.bottomQuote p, .contentHeader p {
font-weight: 100;
line-height: 1.25;
padding-bottom: 20px;
display: inline-block;
width: 100%;
}
.bottomQuote p {
font-size: 1.4em;
}
/* /preFooter */
/* Footer */
.footTop > div {
display: block;
float: left;
border-right: 1px solid #91B062;
width: 24%;
margin-right: 1%;
}
.footer.block {
display: block;
}
.footTop > div:last-child {
border: none;
margin-right: 0;
}
.footerBottom .innerBlock > div {
display: inline-block;
width: 48%;
}
.footer3 span, .footer4 p > *{
display: block;
float: left;
width: 65%;
margin-left: 20%;
padding: .5em;
}
.footAdd:before, .footPhone:before {
content: '';
display: block;
width: 17px;
height: 20px;
margin-right: .4em;
background-image: url(../images/miniSprite.png);
background-repeat: no-repeat;
float: left;
}
.footAdd:before {
background-position: 0 0;
}
.footPhone:before {
background-position: -17px 0;
}
a.footFbLnk {
background: #fff;
color: #4C4C4C;
border-radius: 4px;
font-weight: 700;
}
.copyYear {
float: right;
text-align: right;
}
/* SOCIAL ICONS */
.social, .social > li {
display: inline-block;
}
.social > li.skype {
width: 100%;
text-align: center;
}
.social > li > a {
background: #fff;
border-radius: 50%;
color: #000;
display: inline-block;
font: 1.3em/2.3em 'icons';
height: 2.3em;
width: 2.3em;
position: relative;
text-align: center;
transition: all 0.4s ease-out 0s;
text-decoration: none;
margin: .2em;
}
.social > li a:hover {
background: #000;
color: #fff;
}
.social i {
font: 1em/2em 'icons';
}
/* footer */
.footer{
background: #363636;
color: #91B062;
padding: 1em 0;
font-size: 90%;
}
.footer .logo {
width: 100%;
}
.footer h3 {
color: #91B062;
margin-bottom: .5em;
}
.footTop {
padding: 1em 0;
}
.footer ul.menu li a {
color: #91B062;
font-size: .9em;
margin-bottom: .2em;
}
.footer ul.menu li a:hover, .footer ul.menu li a:focus {
background: transparent;
}
/** mailchimp form **/
#mc_embed_signup {
background: #202020;
display: inline-block;
width: 90%;
padding: 1.2em 5% 1.7em;
text-align: left;
border-radius: 3px;
}
#mc_embed_signup h2 {
font-size: .8em;
color: #ccc;
}
#mc_embed_signup label {
display: none;
}
#mc_embed_signup input#mce-EMAIL {
color: #ecebe9;
float: left;
margin: 0 18px 0 0;
max-width: 100%;
position: relative;
width: 280px;
color: #444;
z-index: 10;
}
#mc_embed_signup input.button {
vertical-align: top;
display: inline-block;
float: right;
max-width: 20%;
margin: 0;
}
.mc-field-group {
position: relative;
max-width: 50%;
}
.mce_inline_error {
}
/** /mailchimp form **/
/* /footer */
/* footer bottom */
.footerBottom {
padding: 1em 0;
margin: .7em 0;
}
/* /footer bottom */
/* Contact Form additions */
.contact {
width: 70%;
text-align: center;
padding-bottom: 1em;
}
.contact h2 {
border-bottom: 1px solid #E8E8E8;
color: #676767;
line-height: 0;
margin: 1.5em 0 1em;
font-size: 2em;
font-weight: 300;
letter-spacing: 0.5px;
}
.contact h2 span {
background: #fff;
padding: 0 1em;
}
.contact, .contactRight {
display: inline-block;
vertical-align: top;
}
.contactRight {
width: 28%;
margin: 9.55em 0 0 1.5%;
}
.contact h3 {
font-size: 2em;
padding: 1em 0;
margin: .5em 0;
}
input:not([type='checkbox']),input:not([type='submit']), textarea {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-radius: 0;
background-color: #efefef;
border-color: -moz-use-text-color -moz-use-text-color #fff;
border-image: none;
border-style: none none solid;
border-width: 0 0 1px;
box-shadow: 1px 5px 9px rgba(0, 0, 0, 0.09) inset;
color: #555;
font-size: .8em;
font-weight: 400;
line-height: 1.2em;
padding: .8em 1%;
transition: all 0.2s linear 0s;
width: 98%;
}
input:not([type='checkbox']):focus, input:not([type='submit']):focus, textarea:focus {
box-shadow: 0!important;
}
/** contact form labels **/
.contact-form label {
display: inline-block;
width: 100%;
text-align: left;
padding-bottom: .3em;
}
.contact-form .form-horizontal .control-label {
display: inline-block;
width: 100%;
}
.contact-form .form-horizontal .controls {
margin: 0;
}
.contact-form .form-horizontal .form-actions {
padding: 0;
border: none;
text-align: left;
}
/** /contact form labels **/
/** contact block inside the sidebar **/
.sidebar > .contactSidebar h3 {
text-align: center;
}
.sidebar > .contactSidebar {
padding: 2em;
box-sizing: border-box;
border: 1px solid #e3e3e3;
text-align: center;
}
/** /contact block inside the sidebar **/
/* /normal blog layout - using the parent class .logiBlog */
/* bootstrap overrides and additional exceptions */
.contactRight .dl-horizontal dt {
width: auto;
}
.contactRight .dl-horizontal dd {
margin-left: 2em;
}
dl.contact-address {
padding: 0 0 1em 0;
margin: .5em 0;
}
dl.contact-address span {
display: inline-block;
width: 100%;
}
dl.contact-address > dt, dl.contact-address > dd {
display: inline-block;
padding: .3em 0;
}
dl.contact-address > dd {
width: 80%;
}
.item-page ol, .item-page ul {
margin: 0 0 10px 25px;
padding: 0;
font-size: 0.9em;
font-weight: 400;
line-height: 1.8;
}
#portfolioMini ul, .portfolioSide ul, ul.latestnews {
margin: 0;
list-style: none;
}
/* bootstrap overrides */
/* career page */
ul.careerDpts {
display: block;
width: 100%;
margin: 0 auto;
position: relative;
height: 100%;
min-height: 40em;
}
ul.careerDpts li {
width: 20%;
height: 100%;
min-height: 4.5em;
display: inline-block;
padding: 1em 0;
color: #fff;
border-radius: 20px;
background: #ccc;
margin: 4%;
position: absolute;
height: 3em;
text-align: center;
font-size: 1.2em;
font-weight: 700;
line-height: 1.4em;
transition: .2s all linear;
cursor: pointer;
}
ul.careerDpts li span {
display: inline-block;
vertical-align: middle!important;
width: 70%;
height: 100%;
margin-top: 6%;
}
ul.careerDpts li:nth-child(6) span, ul.careerDpts li:nth-child(2) span {
width: 65%;
}
ul.careerDpts li:nth-child(4) span {
width: 60%;
}
ul.careerDpts li:nth-child(1) span, ul.careerDpts li:nth-child(5) span, ul.careerDpts li:nth-child(6) span {
margin: 0;
}
ul.careerDpts li:hover, ul.careerDpts li:hover:after {
background: #ccc!important;
color: #6190be;
}
ul.careerDpts li:after {
content: "";
display: block;
height: 9.25em;
background: #6190be;
width: .2em;
border-radius: 5px;
position: absolute;
}
ul.careerDpts li:nth-child(1):after {
height: 5.2em;
right: 49%;
bottom: -6em;
}
ul.careerDpts li:nth-child(2):after {
right: 138%;
top: -109px;
transform: rotate(-78deg);
}
ul.careerDpts li:nth-child(3):after {
left: 138%;
top: -109px;
transform: rotate(78deg);
}
ul.careerDpts li:nth-child(4):after {
left: 138%;
bottom: -109px;
transform: rotate(-78deg);
}
ul.careerDpts li:nth-child(5):after {
right: 138%;
bottom: -109px;
transform: rotate(78deg);
}
ul.careerDpts li:nth-child(6):after {
height: 0;
width: 0;
}
ul.careerDpts li:nth-child(1) {
background: #E80719;
top: 0;
left: 36%;
}
ul.careerDpts li:nth-child(2) {
background: #0156EF;
bottom: 0;
right: 0;
}
ul.careerDpts li:nth-child(3) {
background: #EF7700;
bottom: 0;
left: 0;
}
ul.careerDpts li:nth-child(4) {
background: #01AF00;
top: 15%;
left: 0;
}
ul.careerDpts li:nth-child(5) {
background: #7101D2;
top: 15%;
right: 0;
}
ul.careerDpts li:nth-child(6) {
top: 40%;
left: 36%;
color: #6190be;
/* elements revealing effects */
.checkElm {
transition: .5s all linear;
}
.hiddenElm {
opacity: 0;
}
.hiddenElm.checkedElm {
opacity: 1;
}
.revealElm {
opacity: 1;
}
/* elements revealing effects */
/* VM Related */
.browseProductImage {
max-width: 100%;
max-height: inherit;
height: auto;
}
.contentTop .category-view .row .category .spacer h2 a img {
max-width: 125px;
height: auto;
}
.innerRight .xselling h3 {
margin: .3em 0;
}
.topten-view h4, .xselling h3 {
color: #90AF5F;
}
.contentTop block .innerBlock ,.xselling .moduletable h3{
background-color:#8ec640;
color:#fff;
height:25px;
text-align:center;
vertical-align:top;
border-radius:10px;
}
.contentTop block .innerBlock ,.xselling .moduletable h3:before, .xselling .moduletable h3:after{
display:none;
text-align:center;
}
.contentTop block .innerBlock ,.xselling .moduletable .vmgroup{
padding-top:17px;
}
.topten-view {
padding: 0 0 2em 0;
}
.contentTop div.product {
border: none;
position: relative;
}
.contentTop div.vm-details-button {
display: none;
position: absolute;
top: 0;
transition: .3s all linear;
}
.contentTop div.vm-details-button a.product-details {
background: none;
border: 2px solid #fff;
color: #fff;
margin-top: 57%;
}
.contentTop div.product:hover div.vm-details-button {
display: block;
background: rgba(145,176,98,.65);
height: 70%;
width: 100%;
}
.contentTop .vm3pr-0 .addtocart-area {
min-height: inherit;
}
.contentTop .horizontal-separator {
background: #959595;
}
/* vm hom categories layout */
.simple.category-view .category {
max-width: 25%;
margin: .3em 4%;
}
.category-view .category h2 {
padding: .3em 6%;
}
.slider.category-view {
float: left;
width: 100%;
}
.slider.category-view .category {
float: left;
max-width: 25%;
background: rgba(0,0,0,.65);
}
.slider.category-view .category {
}
.slider.category-view .category img {
max-height: 120px;
}
.slider.category-view .category:first-child {
margin-left: 25%;
}
.slider.category-view .category:nth-child(3){
margin-right: 6%;
padding: 0 20% 0 15%;
}
.slider.category-view .category:nth-child(6) {
padding: 0 3%;
}
.slider.category-view .category:nth-child(7) {
padding: 0 3% 0 6%;
margin-right: 20%;
}
.slider.category-view .category:nth-child(8) {
padding: 0 10% 0 10%;
margin-left: 14%;
}
.slider.category-view .category:nth-child(10) {
padding: 0 9% 0 21%;
}
.slider.category-view .category:nth-child(11) {
padding: 0 4% 0 11%;
margin-left: 37%;
}
.slider.category-view .category:last-child {
padding: 0 17% 0 0;
}
.slider.vm-product-descr-container-0 h2 a {
color: #000;
font-size: 1.2em;
}
.slider.vm-product-descr-container-0 {
text-align: center;
}
.breadCr {
color: #ebebeb;
padding: .4em 0;
background: #EBEBEB;
box-shadow: inset 0 0 10px #000;
font-size: 1.3em;
}
.contentTop .breadcrumb {
background: none;
margin: 0;
padding: 0;
color: #ebebeb;
}
.contentTop .breadcrumb li.active span {
color: #90AF63;
}
.contentTop .breadcrumb > li {
}
/* /vm hom categories layout */
/* VM product details */
.contentTop .vm-product-container .vm-product-media-container {
float: right;
width: 40%;
}
.contentTop .vm-product-container .vm-product-details-container {
float: left;
width: 56%;
margin-right: 4%;
}
.vm-product-details-container span.title {
display: block;
width: 100%;
margin-bottom: .5em;
font-size: 1.5em;
color: #000;
}
.product-description {
padding-bottom: 2em;
min-height: 14.3em;
}
.product-description, .product-description span {
color: #000;
font-size: 1em;
line-height: 1.5em;
}
.product-fields {
margin-top: 1em;
background-color:#e5f1d4;
border-radius:12px;
padding-left:10px;
}
.productdetails .product-fields .product-field {
margin: 0;
/*border-bottom: 1px solid #000;*/
}
.product-fields > div span.product-fields-title-wrapper {
float: left;
min-width: 45%;
}
.product-fields > div div.product-field-display {
float: left;
padding: 8px 0;
}
.product-fields > div:first-child {
/*border-top: 1px solid #000;*/
}
.product-fields > div:last-child {
border-bottom: none;
}
.product-fields > div:nth-child(odd) {
background: #e5f1d4;
border-radius:12px;
}
/* VM product details */
.product h2 a {
color: #000;
}
.product .vm-product-descr-container-0 {
text-align: center;
}
.product div.vm-details-button a {
width: 94%;
padding: 11px 3%;
}
.productdetails h1 {
color: #90AF63;
font-size: 1.45em;
font-weight: 700;
text-align: left;
border-top: 2px solid #000;
padding: .5em 0;
}
.innerRight {
padding-top: 1em;
}
/* VM product details */
/* VM Cat sidebar */
.innerRight {
width: 77%;
display: inline-block;
vertical-align: top;
}
#media screen and (min-width: 1081px) {
.slider.category-view .category, .simple.category-view .category {
width: 25%!important;
max-width: 25%!important;
}
}

When suggested results display in our search box, we are unable to click through to the suggested product sku; how can we fix this?

/* =============================================================================
Global settings
========================================================================== */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
display: block;
}
audio,
canvas,
video {
display: inline-block;
*display: inline;
*zoom: 1;
}
audio:not([controls]) {
display: none;
}
[hidden] {
display: none;
}
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
html,
button,
input,
select,
textarea {
font-family: sans-serif;
color: #222;
}
body {
margin: 0;
font-size: 1em;
line-height: 1.4;
}
::-moz-selection {
background: #fe57a1;
color: #fff;
text-shadow: none;
}
::selection {
background: #fe57a1;
color: #fff;
text-shadow: none;
}
a {
color: #00e;
}
a:visited {
color: #551a8b;
}
a:hover {
color: #06e;
}
a:focus {
outline: thin dotted;
}
a:hover,
a:active {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
blockquote {
margin: 1em 40px;
}
dfn {
font-style: italic;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
ins {
background: #ff9;
color: #000;
text-decoration: none;
}
mark {
background: #ff0;
color: #000;
font-style: italic;
font-weight: bold;
}
pre,
code,
kbd,
samp {
font-family: monospace, serif;
_font-family: 'courier new', monospace;
font-size: 1em;
}
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
q {
quotes: none;
}
q:before,
q:after {
content: "";
content: none;
}
small {
font-size: 85%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
ul,
ol {
margin: 0;
padding: 0;
}
dd {
margin: 0 0 0 40px;
}
nav ul,
nav ol {
list-style: none;
list-style-image: none;
margin: 0;
padding: 0;
}
img {
border: 0;
-ms-interpolation-mode: bicubic;
vertical-align: middle;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 0;
}
form {
margin: 0;
}
fieldset {
border: 0;
margin: 0;
padding: 0;
}
label {
cursor: pointer;
}
legend {
border: 0;
*margin-left: -7px;
padding: 0;
white-space: normal;
}
button,
input,
select,
textarea {
font-size: 100%;
margin: 0;
vertical-align: baseline;
*vertical-align: middle;
}
button,
input {
line-height: normal;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer;
-webkit-appearance: button;
*overflow: visible;
}
button[disabled],
input[disabled] {
cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
*width: 13px;
*height: 13px;
}
input[type="search"] {
-webkit-appearance: textfield;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
vertical-align: top;
resize: vertical;
}
input:valid,
textarea:valid {} input:invalid,
textarea:invalid {
background-color: #f0dddd;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td {
vertical-align: top;
}
.chromeframe {
margin: 0.2em 0;
background: #ccc;
color: black;
padding: 0.2em 0;
}
.ir {
display: block;
border: 0;
text-indent: -999em;
overflow: hidden;
background-color: transparent;
background-repeat: no-repeat;
text-align: left;
direction: ltr;
*line-height: 0;
}
.ir br {
display: none;
}
.hidden {
display: none !important;
visibility: hidden;
}
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
.invisible {
visibility: hidden;
}
.clearfix:before,
.clearfix:after {
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
/* =============================================================================
Fonts
========================================================================== */
/* =============================================================================
Theme Global settings
========================================================================== */
#container {
min-height: 100%;
}
.content {
position: relative;
display: block;
width: 1024px;
margin: 0 auto;
}
.nav_hover {
background: #fff;
}
/* =============================================================================
Header
========================================================================== */
header {
position: relative;
width: 100%;
height: 100px;
background: url('../images/feral/header-bg.png') repeat-x;
}
header #logo {
float: left;
width: 33%;
padding: 18px 0 0 0;
margin-right: 25px;
}
/* =============================================================================
Nav
========================================================================== */
nav {
float: left;
width: 33%px;
height: 100px;
}
nav #site_tools {
float: left;
margin-left: 25px;
margin-right: 50px;
}
nav #site_tools a {
font-size: 14px;
color: #fff;
padding: 10px 10px 0 0;
text-decoration: none;
text-shadow: 0px 2px 1px #000;
}
nav #site_tools,
nav #display_search {
padding: 10px 0 0 10px;
}
nav #display_search input[type=text] {
width: 200px;
height: 10px;
font-size: 12px;
font-weight: bold;
padding: 10px;
margin: 0;
}
nav #display_search input[type=submit] {
width: 21px;
height: 21px;
background: url('../images/feral/search-icon.png') repeat-x;
border: none;
padding: 0;
margin: 0 0 0 5px;
}
#callus {
padding-top: 10px;
}
#top_nav {
height: 40px;
background: #8e744f;
}
#top_nav #display_menu_1 {
width: 1024px;
margin: 0 auto;
}
/* =============================================================================
Body
========================================================================== */
#main {
position: relative;
width: 100%;
background: #f4f4f4;
overflow: hidden;
}
#main #left_nav {
width: 214px;
background: #e5e4e4;
}
#main #left_nav h3 {
height: 26px;
font-size: 15px;
color: #fff;
background: #c2c0c0;
padding: 6px 0 0 15px;
}
#main #left_nav #display_menu_2 a {
color: #301f14;
}
#main #left_nav #display_menu_2 a:hover {
color: #fff;
background: #002284 left center no-repeat;
}
#main #content_area {
margin: 0;
padding: 6px 6px 15px 19px;
text-align: left;
width: 810px;
background: #fff;
}
#main #div_articleid_1 ul,
#main #div_articleid_5 ul {
margin-left: 0;
padding-left: 18px;
}
#main #div_articleid_1,
#main #div_articleid_4,
#main #div_articleid_5 {
line-height: 22px;
}
#main #div_articleid_4 strong {
margin-bottom: 10px;
}
table ul {
margin: 0 0 0 25px;
}
#slideshow {
position: relative;
height: 350px;
}
#slideshow A {
position: absolute;
top: 0;
left: 15px;
z-index: 8;
opacity: 0.0;
}
#slideshow A.active {
z-index: 10;
opacity: 1.0;
}
#slideshow A.last-active {
z-index: 9;
}
.special-products {
margin: 0 0 0 40px;
}
/* =============================================================================
Footer
========================================================================== */
footer {
position: relative;
width: 100%;
background: #575450;
border-top: 4px solid #900101;
}
footer .content {
height: 140px;
padding-top: 30px;
}
footer .content .left,
footer .content .center,
footer .content .text {
float: left;
width: 18%;
}
footer .content .left {
padding: 0 0 0 20px;
}
footer .content .center {
width: 80%;
font-size: 14px;
color: #fff;
}
footer .content .center a {
font-size: 14px;
color: #fff;
}
footer .content .center ul,
footer .content .text ul {
float: left;
}
footer .content .center ul {
margin-left: 25px;
}
footer .content .center ul li,
footer .content .text ul li {
list-style: none;
}
footer .content .center ul li.title {
font-weight: bold;
}
footer .content .text {
width: 100%;
clear: both;
text-align: center;
}
footer .content .text ul {
float: none;
margin: 40px 0 0 250px;
}
footer .content .text ul li {
float: left;
color: #fff;
font-size: 12px;
margin-right: 15px;
}
/* =============================================================================
Print
========================================================================== */
#media print {
* {
background: transparent !important;
color: black !important;
box-shadow: none !important;
text-shadow: none !important;
filter: none !important;
-ms-filter: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href)")";
}
abbr[title]:after {
content: " (" attr(title)")";
}
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
#page {
margin: 0.5cm;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}
.productnamecolorLARGE > span:nth-child(1) {
font: 20px Arial;
}
This is our css template. I've been told there is something within the css that is interfering with a default function that would allow one to click on a drop-down suggestion from the search results and be redirected to the relevant page.
The links in the dropdown seem to work fine, you might be referring to the cursor.
Add
Located: jquery-ui.css line 101
.ui-menu .ui-menu-item a{
cursor: pointer !important;
}
or change
Located: jquery-ui.css line 69
.ui-autocomplete {
cursor:pointer
}

Internet Explorer, when highlighting text it changes font and/or size

When highlighting text with IE 8 on a webpage that I'm currently developing the font changes and/or sometimes the size. The same thing happens sometimes when I hover over the menu.
This is how my css looks like and I don't know why the error occurs? One more thing that is very strange is that I have installed Windows 7 with paralells on my osx and the error does not occur there but only on PC computers. I have tried changing fonts but with no help...
This is my css:
body {
font-family: verdana, sans-serif;
font-size: 14px;
}
#wrapper, .wrapper {
width: 900px;
padding: 0 30px;
margin-left: auto;
margin-right: auto;
}
#header {
background: url('http://localhost:8888/wp-content/uploads/2012/09/120920_scam_banner.jpg') no-repeat;
height: 150px;
margin: 20px 0;
}
#header div {
width: 900px;
height: 150px;
margin-left: auto;
margin-right: auto;
position: relative;
background: none;
}
#header div a {
text-indent: -9999px;
position: absolute;
width: 900px;
height: 150px;
}
#header div a:hover {
background: none;
}
#section {
}
#menu {
float: left;
width: 175px;
padding: 20px 25px 0 0;
border-right: 2px solid #000;
text-align: right;
}
#menu a, a {
color: #000;
text-decoration: none;
}
.mp-formdiv {
float: right;
}
img {
border: 1px solid #000;
}
#menu a:hover, a:hover {
color: #fff;
background: #000;
}
.menu li {
margin: 3px 0;
text-align: right;
}
#menu h3 {
line-height: 52px;
}
#menu .artists {
padding-left: 10px;
}
#menu-artists li {
}
#content {
float: right;
width: 670px;
padding: 20px 0 50px 20px;
}
#footer {
overflow:hidden;
clear: both;
}
#white_footer {
float: left;
width: 300px;
background: #fff;
height: 20px;
}
#footer_content {
height: 20px;
}
.store {
overflow-y: scroll;
}
#the_store {
margin-top: 10px;
}
/* FONTS */
h1 {
font-size: 3em;
margin-bottom: 40px;
white-space: nowrap;
line-height: 0%;
}
h1.storefront {
font-size: 2em;
}
h2 {
font-size: 2em;
}
h3 {
font-size: 1.5em;
}
#content p strong {
font-weight: bold;
}
#content p img {
float: left;
margin: 5px 20px 20px 0;
}
#content p img:after {
margin-top: 20px;
}
#subscribe_mail input[type=text]{
width: 85px;
height: 12px;
font-size: 0.60em;
margin-bottom: 5px;
float: left;
margin-right: 4px;
}
#subscribe_mail input[type=text]:focus {
font-size: 0.75em;
}
#subscribe_mail input[type=submit] {
border: 1px solid #999;
font-size: 0.75em;
float: left;
}
.mp-message, .mp-loading {
font-size: 0.75em;
}
.MailPressFormName {
display: none;
}
#artist_info {
display: none;
margin-top: 40px;
overflow: hidden;
clear: both;
}
.more-less {
background: #000;
float: left;
color: #fff;
padding: 0 2px;
margin-top: 10px;
}
#artist_less {
display: none;
}
.gallery-icon a:hover {
background: none;
}
.gallery dl {
margin-top: 0 !important;
margin-bottom: 15px;
}
.gallery dl dd {
font-size: 0.75em;
}
.newsletterH {
margin-bottom: 5px;
}
I would use Firefox's Firebug plugin to see where the styles are coming from. IE provides a less friendly developer tool window that does something similar (I only use this if the style issue is only occurring in IE). I'd check your :hover and :focus rules first since those would cause things to happen on hover or select.

How can I clean this CSS code; making it shorter or delete unnecessary parts (CSS perfectionist needed)

How can I clean this CSS code: making it shorter, nesting properties together, deleting unnecessary code, etc.
/* reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
:focus { outline: 0; } /* remember to define focus styles! */
ins { text-decoration: none; } /* remember to highlight inserts somehow! */
del { text-decoration: line-through; } /* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
/* tags */
body {
background: #F9F9F9;
color: #888;
font-family: Arial, "微软雅黑", "MS Trebuchet", sans-serif;
font-size: 75%
}
h1 {
font-size: 32px;
}
h2 {
/*color: #999;*/
color: #999;
font-size: 14px;
margin: 0 0 20px 0;
}
p {
line-height: 160%;
}
a {
color: #69C;
list-style: none;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* structure */
.container {
margin: 0 auto;
overflow: hidden;
padding: 0 15px;
width: 960px;
}
/* header */
#header {
background: #EEE;
}
#header h1 {
float: left;
}
#header h1 a {
background: url(../images/logo.png) no-repeat scroll 0 0;
float: left;
height: 30px;
text-indent: -9999px;
width: 500px;
}
/* banner */
#header-top {
border-bottom: 1px solid #DDD;
padding: 0 0 15px 0;
margin: 30px 0;
overflow: hidden;
width: 960px; /* ie6 hack */
}
#lang {
float: right;
padding: 20px 0 0 0;
}
#lang li {
float: left;
}
#lang li a {
font-size: 10px;
float: left;
margin: 0 0 0 20px;
}
#lang li a.current {
color: #888;
}
/* intro */
#header-bottom {
overflow: hidden;
padding: 0 0 30px 0;
}
#tagline {
float: left;
margin: 0 40px 0 0;
width: 540px; /* 560 */
}
#tagline h2 {
font-size: 24px;
}
#tagline h2 strong {
/*color: #69C;*/
}
#about {
float: right;
width: 380px;
}
/* work */
#content {
background-color: #F9F9F9;
}
.showcase {
border-bottom: 1px solid #DDD;
margin: 30px 0 0;
overflow: hidden;
padding: 0 0 30px;
width: 960px; /* ie hack */
}
.showcase div.right {
display: inline; /* ie hack */
float: left;
}
.showcase div.left {
display: inline; /* ie hack */
float: left;
height: 211px;
margin: 0 20px 0 0;
position: relative;
width: 290px;
}
.showcase div img {
border: 2px solid #EEE;
width: 630px;
height: 190px;
padding: 8px;
}
.showcase div img:hover {
border: 2px solid #CDE;
}
.showcase div p {
margin: 0 0 20px 0;
}
.showcase div ul#sites {
position: absolute;
bottom: 0;
overflow: hidden;
line-height: 160%;
}
.showcase div ul#sites li {
float: left;
}
.showcase div ul#sites li a {
border: 1px solid #9CF;
color: #69C;
float: left;
padding: 0 5px;
margin: 0 20px 0 0;
text-decoration: none;
}
.showcase div ul#sites li a:hover {
border: 1px solid #69C;
}
.showcase div ul#details {
line-height: 160%;
}
/* footer */
#footer {
background-color: #333;
color: #BBB;
clear: both;
}
#footer h2 {
color: #EEE;
}
#footer p {
color: #BBB;
}
/* contact */
#footer-top {
border-bottom: 1px solid #444;
line-height: 160%;
overflow: hidden;
padding: 30px 0;
width: 960px; /* ie6 hack */
}
#footer-top div {
overflow: hidden;
}
#contact {
float: left;
margin: 0 40px 0 0;
overflow: hidden;
}
#contact form {
margin: 20px 0 0;
}
#sendmail label {
width: 250px;
margin: 0 0 10px 0;
}
#sendmail label.error{
color: #FF4444;
margin: 0 0 20px 0;
}
#sendmail label {
display: block;
vertical-align: top;
cursor: hand;
}
#name, #email, #message {
border: 0;
background-color: #444;
font-family: Arial, "MS Trebuchet", sans-serif;
color: #BBB;
font-size: 12px;
padding: 6px;
margin: 0 0 10px;
width: 380px;
}
#name:focus, #email:focus, #message:focus {
background-color: #555;
}
#message {
height: 200px;
overflow: auto;
}
#button {
background-color: #69C;
border-color: #69C;
border-style: solid;
border-width: 1px;
color: #FFFFFF;
cursor: pointer;
display: block;
font-family: Arial, "MS Trebuchet", sans-serif;
margin-top: 10px;
padding: 2px;
width: 100px
}
#button:hover {
background-color: #49C;
border-color: #49C;
}
/*\*//*/ form.contact legend { display: inline-block; } /* IE Mac legend fix */
#info {
float: right;
width: 303px;
margin: 0 0 0 40px;
}
#tools {
float: right;
margin: 0 0 0 40px;
width: 83px;
}
/* about */
#footer-bottom {
font-size: 10px;
margin: 15px auto;
}
EDIT: ...or do you know any css optimizer which nest css selector and properties together?
You can delete /*\*//*/ form.contact legend { display: inline-block; } /* IE Mac legend fix */ — even Microsoft doesn’t support Mac IE any more.
First of all remove all css hacks and place them in other, browser specific, files, which you'll be including via conditional comments.
Cleancss.com seems to do the trick. You can choose between a bunch of different options. Check it out and see if it's something that could work for you!
if you have margin: 0 0 20px 0; - you can remove the last 0 as this is the left margin which is the same as the right.
There are a few online tools that can optimize css if you google for them(e.g. http://flumpcakes.co.uk/css/optimiser/). There is a fine line between optimisation and maintainability though. If you remove all the comments etc that will make the file smaller but less maintainable. Again you can remove all the line breaks to make a smaller file but not sure that is better.
I would probably not use a reset.
To me you CSS seems pretty compact already.
You've got 5kb of cacheable, gzippable CSS there, which would be even less if you stripped comments and whitespace. Trying to optimise any further than that I don't think is worth more than about 3 seconds of your time, really.
On #button
border-color: #69C;
border-style: solid;
border-width: 1px;
can be written more concisely as
border:1px solid #69c;

Resources