Related
I'm trying to move the Navigation position "menu" to the top, check the pic:
.site-header-layout-two .main-navigation {
position: absolute;
bottom: 0;
right: 20px;
margin: 0;
top: 1px;
}
But if I change the top value or bottom value automatically the menu will stuck at the bottom.
Am I doing it wrong! or there is other code line conflict with this one! Here is my full code if you want to check other things:
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;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
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: #808080;
font-size: 16px;
font-size: 14px;
line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
clear: both;
}
p {
margin: 0 0 25px;
}
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. */
background-position: center top;
background-size: cover;
}
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 25px 20px;
padding: 0 0 0 10px;
}
ul li,
ol li {
margin: 0 0 12px;
}
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. */
}
figure {
margin: 0;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
table {
margin: 0 0 1.5em;
width: 100%;
}
th {
font-weight: bold;
}
h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
font-weight: 300;
line-height: 1.0em;
word-wrap: break-word;
color: #5E5E5E;
margin-top: 0;
}
h1 {
font-size: 32px;
margin-bottom: .55em;
}
h2 {
font-size: 28px;
margin-bottom: .65em;
}
h3 {
font-size: 22px;
margin-bottom: .8em;
}
h4 {
font-size: 20px;
margin-bottom: 1.1em;
}
h5 {
font-size: 16px;
margin-bottom: 1.3em;
}
h6 {
font-size: 14px;
margin-bottom: 1.4em;
}
.entry-content code {
display: block;
background: #f7f7f7;
border: 1px solid #D8D8D8;
padding: 10px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
margin: 5px 0;
overflow-x: auto;
}
/*------------
# Navigation
------------*/
/*-----------
## Links
---------------*/
a {
text-decoration: none;
outline: none;
box-shadow: none;
}
a:visited {
}
a:hover,
a:focus,
a:active {
}
a:focus {
}
a:hover,
a:active {
outline: 0;
}
/*---------
## Menus
---------*/
.main-navigation ul {
display: block;
list-style: none;
margin: 0;
padding: 0;
}
.main-navigation li {
position: relative;
float: left;
margin: 0 5px;
text-transform: uppercase;
}
.main-navigation li a {
display: block;
text-decoration: none;
font-weight: 400;
color: #FFF;
}
.main-navigation li a span {
display: none;
}
.main-navigation ul ul {
background-color: rgba(0, 0, 0, 0.9);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
float: left;
position: absolute;
top: 57px;
left: -999em;
z-index: 99999;
display: none;
}
.main-navigation ul ul a {
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
white-space: nowrap;
text-align: left;
width: 100%;
padding: 15px 25px 15px 20px;
min-width: 190px;
float: none;
}
.main-navigation ul ul ul {
top: 1px;
}
.main-navigation ul ul li {
float: none;
width: 100%;
display: block;
margin: 0;
}
.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: 0;
display: block;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
right: 100%;
}
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a {
}
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
display: block;
}
#main-menu:after {
display: block;
content: '';
clear: both;
}
.header-menu-button {
display: none;
}
.menu-dropdown-btn {
display: none;
position: absolute;
top: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.1);
color: #838383;
margin: 0;
padding: 10px 14px;
/* box-shadow: -1px 0 0 rgba(0, 0, 0, 0.08); */
height: 35px;
line-height: 15px;
text-align: center;
font-size: 14px;
z-index: 9;
cursor: pointer;
}
.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%;
}
/* Small menu */
.menu-toggle {
display: none;
}
.main-menu-close {
display: none;
}
/*-----------
# 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:hover,
.screen-reader-text:active,
.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. */
}
/*--------------
# 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;
}
.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
clear: both;
}
/* -------- Header Elements -------- */
.site-header {
background-color: rgba(0, 0, 0, 0.8);
position: relative;
color: #FFF;
}
.site-header-layout-two .site-header {
box-shadow: 0 -6px 0 rgba(0, 0, 0, 0.6) inset;
padding: 0 0 5px;
}
.site-header .site-container {
position: relative;
max-width: 1280px;
}
.header-container {
position: relative;
z-index: 4;
}
.header-social-icon {
font-size: 15px;
color: inherit;
margin: 2px 0 0 10px;
display: inline-block;
vertical-align: top;
}
.site-branding {
float: left;
position: relative;
z-index: 12;
padding: 30px 0;
}
.site-branding-img {
padding: 0;
}
.site-branding a {
display: block;
line-height: inherit;
}
.site-branding a img {
display: block;
}
.site-title {
margin: 0;
padding: 0 0 10px;
font-size: 40px;
line-height: 50px;
font-weight: 300;
text-transform: uppercase;
}
.site-description {
margin: 0;
padding: 0;
font-size: 15px;
line-height: 16px;
font-weight: 300;
text-transform: uppercase;
color: inherit;
}
.site-header-right {
position: absolute;
top: 50%;
right: 20px;
margin: -70px 0 0;
text-align: right;
}
.site-header-right-txt {
margin: -52px 0 0;
}
.site-header-right-no-txt {
margin: -70px 0 0;
}
.site-header-right-no-ss {
margin: -38px 0 0;
}
.site-header-right-no-sst {
margin: -58px 0 0;
}
.site-header-signup {
}
.site-header-cart {
}
.site-header-right-top {min-height: 36px;}
.site-topbar-right-no {
font-size: 15px;
border-bottom: 1px dashed #FFF;
padding: 0 0 5px;
}
.site-topbar-right-no i.fa {
font-size: 14px;
margin: 0 2px 0 4px;
}
.site-topbar-right-no span {
font-size: 24px;
margin: 0 0 0 30px;
}
.site-header-right-bottom {
padding: 6px 0 0;
}
.site-header-social {
padding: 2px 0 0;
}
.social-pinterest span {
font-size: 11px;
position: relative;
top: -2px;
margin: 0 0 0 4px;
}
.header-cart {
display: inline-block;
vertical-align: middle;
padding: 0;
}
.header-cart a {
display: inline-block;
vertical-align: middle;
color: inherit;
text-transform: uppercase;
}
a.header-cart-contents {
color: inherit !important;
}
.header-cart-amount {
}
.header-cart-checkout {
margin: 0 0 0 4px;
font-size: 16px;
}
#main-menu {
text-align: center;
}
.main-navigation {
padding: 0;
-webkit-transition: right 0.4s ease 0s;
-moz-transition: right 0.4s ease 0s;
-ms-transition: right 0.4s ease 0s;
-o-transition: right 0.4s ease 0s;
transition: right 0.4s ease 0s;
}
.site-header-layout-one .main-navigation {
background-color: rgba(0, 0, 0, 1);
position: relative;
z-index: 4;
}
.site-header-layout-one .main-navigation li a {
padding: 18px 20px 18px;
}
.site-header-layout-one .main-navigation ul ul li a {
padding: 14px 25px 16px;
}
.main-navigation ul ul li {
position: relative;
}
.main-navigation ul ul ul {
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
right: auto;
left: 0;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
right: auto;
left: 100%;
}
/* -------- Header Layout Two -------- */
.site-top-bar {
background-color: rgba(0, 0, 0, 0.6);
}
.site-top-bar-left {
float: left;
padding: 2px 0 0;
min-height: 31px;
}
.site-top-bar-right {
float: right;
padding: 2px 0 0;
min-height: 31px;
}
.site-header-layout-two {
}
.site-header-layout-two .header-social-icon {
margin: 0 10px 0 0;
}
.site-header-layout-two .site-topbar-right-no {
display: inline-block;
font-size: inherit;
vertical-align: middle;
margin: 0 12px 0 0;
padding: 0;
border: 0;
}
.site-header-layout-two .site-topbar-right-no span {
font-size: inherit;
}
.site-header-layout-two .main-navigation {
position: absolute;
bottom: 0;
right: 20px;
margin: 0;
}
.site-header-layout-two .main-navigation li {
margin: 0;
}
.site-header-layout-two .main-navigation li a {
padding: 55px 25px 60px;
}
.site-header-layout-two .main-navigation ul li:last-child a {
padding: 55px 0 60px 25px;
}
.site-header-layout-two .main-navigation ul ul li a {
padding: 14px 25px 16px !important;
}
.site-header-layout-two .main-navigation ul ul {
top: 130px;
border-top: 6px solid #000;
}
.site-header-layout-two .main-navigation ul ul ul {
top: 1px;
border: 0;
}
.sabino-header-nav {
display: inline-block;
vertical-align: middle;
margin: -1px 8px 0 0;
}
.sabino-header-nav ul {
margin: 0;
padding: 0;
}
.sabino-header-nav ul li {
display: inline-block;
vertical-align: middle;
list-style-type: none;
margin: 0;
padding: 0;
}
.sabino-header-nav ul li a {
display: block;
text-transform: uppercase;
padding: 0px 3px;
margin: 0 2px;
color: inherit;
}
.sabino-header-nav ul li:first-child a {
padding: 0px 3px 0 0;
margin: 0 2px 0 0;
}
body.show-site-search .search-block {
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;
}
/*--------------------------------------------------------------
## 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;
}
#media only screen and (max-width: 960px) {
.menu-dropdown-btn {
display: block;
}
.header-menu-button {
display: block;
padding: 14px 0 16px;
text-transform: uppercase;
font-size: 17px;
cursor: pointer;
text-align: center;
}
.header-menu-button i {
font-size: 17px;
vertical-align: middle;
}
.header-menu-button span {
vertical-align: middle;
margin: 0 0 0 6px;
}
.site-header-layout-two .header-menu-button {
padding: 48px 0 60px 80px;
}
.main-navigation #main-menu {
color: #FFFFFF;
position: fixed;
top: 0;
right: -280px;
width: 280px;
max-width: 100%;
-ms-box-sizing: border-box;
box-sizing: border-box;
padding: 82px 22px 30px 22px;
background: #000000;
z-index: 99998;
height: 100%;
overflow: auto;
transition: right 0.4s ease 0s;
}
.main-navigation li {
display: block;
float: none;
}
.main-navigation li a {
display: block;
float: none;
padding: 8px 0 !important;
color: #C5C5C5 !important;
text-align: left;
}
.main-navigation ul ul {
position: relative !important;
top: 0 !important;
left: 0 !important;
float: none !important;
background-color: rgba(255, 255, 255, 0.14) !important;
padding: 0;
margin: 0;
display: none !important;
}
.main-navigation ul ul li:last-child a,
.main-navigation ul ul li a {
padding: 7px 10px;
width: auto;
}
.main-navigation ul ul li a {
background: none !important;
}
#primary-menu {
display: block;
}
.main-menu-close {
display: block;
border-radius: 4px;
position: absolute;
top: 10px;
right: 10px;
font-size: 30px;
color: #898989;
text-align: center;
padding: 0 8px 0 12px;
height: 40px;
line-height: 38px;
cursor: pointer;
z-index: 99;
}
.main-menu-close .fa-angle-left {
position: relative;
left: -4px;
}
li.open-page-item > ul.children,
li.open-page-item > ul.sub-menu {
display: block !important;
}
body.admin-bar .main-menu-close {
top: 52px;
}
body.admin-bar .header-cart {
top: 55px;
}
}
#media only screen and (max-width: 880px) {
.post-loop-thumbnail {
float: none !important;
width: 100% !important;
}
.post-loop-content {
float: none !important;
width: 100% !important;
padding: 20px 5px 0 !important;
}
.content-layout-blocks .sabino-blog-breakup .post-loop-thumbnail {
position: relative !important;
height: 400px !important;
}
.content-layout-blocks .sabino-blog-breakup .post-loop-content {
margin: 0 !important;
padding: 20px !important;
}
.content-layout-blocks .sabino-blog-breakup .blog-top-layout .post-loop-thumbnail {
height: auto !important;
}
}
#media only screen and (max-width: 782px) {
.page-template-default .content-area,
.woocommerce #container,
.woocommerce-page #container,
.content-area {
box-shadow: none;
width: 100%;
float: none;
padding: 25px 0 30px;
}
.content-layout-blocks.content-joined-widgets .content-area,
.content-layout-blocks.content-joined-widgets #container,
.content-layout-blocks.content-broken-widgets .content-area,
.content-layout-blocks.content-broken-widgets #container {
box-shadow: none;
width: 100%;
float: none !important;
padding: 25px 20px 30px;
}
.content-layout-blocks .site-container-main {
padding: 0 20px;
}
.page-template-default .widget-area,
.widget-area,
.content-layout-blocks.content-broken-widgets .widget-area {
box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08);
width: 100%;
float: none;
padding: 0 0 5px !important;
margin: 0 0 10px;
}
.page-template-template-left-sidebar-php .content-area {
box-shadow: none;
width: 100%;
float: none;
padding: 25px 0 30px;
}
.page-template-template-left-sidebar-php .widget-area,
.page-template-template-left-sidebar-php .content-layout-blocks.content-broken-widgets .widget-area {
box-shadow: none;
width: 100%;
float: none;
padding: 0 0 5px;
margin: 0 0 10px;
}
/*--------------------------------------------------------------
Header One Styling
--------------------------------------------------------------*/
.site-branding {
float: none;
padding: 10px 0;
text-align: center;
}
.site-header-right {
position: relative;
margin: 0;
top: auto;
right: auto;
text-align: center;
}
.site-header-right-top {
min-height: initial;
}
.site-header-right-bottom {
padding: 0 0 5px;
}
.site-header-layout-two .main-navigation {
position: relative;
right: auto;
}
.site-header-layout-two .header-menu-button {
padding: 5px 0 15px;
}
.site-top-bar-left {
float: none;
text-align: center;
min-height: 20px;
}
.site-top-bar-right {
float: none;
text-align: center;
padding: 2px 0 2px;
}
.search-block {
position: relative;
top: 0 !important;
right: 0;
padding: 12px;
}
.search-block .search-field {
width: 100%;
}
.site-footer-standard .site-footer-widgets .site-container > ul {
display: block;
}
.site-footer-standard .site-footer-widgets .site-container > ul > li {
display: block;
width: 100%;
padding: 10px 0 20px !important;
}
.site-footer-bottom-bar-left,
.site-footer-bottom-bar-right {
float: none;
text-align: center;
}
}
body.show-main-menu #main-menu {
right: 0px !important;
}
body.show-main-menu #page {
right: 280px !important;
}
change below class, reduce the padding
.site-header-layout-two .main-navigation li a {
padding: 19px 25px 6px;
}
and remove below code
.site-header-layout-two .main-navigation ul li:last-child a {
padding: 55px 0 60px 25px;
}
Maybe try setting float: left; on the "Martcor" logo, and float: right; on you navigation items on the right side.
Whenever I load my page, the content area for the product jumps to position (shifts downwards) and so do the social media icons in the footer. You'll see this happen if you refresh the page or simply click on either of the product categories on the left or the navigation links in the fixed footer.
This is happening predominately in Safari. I'm running 8.0.7 on Mac OS X 10.10.4 (Yosemite). Firefox 45.0.2 seems ok. Chrome 50.0.2661.86 acts a little weird with the icons flashing and copyright text, so I believe that has the same issue though the load time may be quicker.
I've looked at my CSS, but I can't fathom why it's doing it(?). I'm really stuck and realise it's perhaps something simple I'm overlooking. Driving me loopy! :-(
A friend told me it has something to do with the floats for the catalogue_wrapper_right, it shouldn't be there. That's for the content. And, I'm not sure again for the footer. Help much appreciated to get this fixed.
The product content text is being populated using PHP from my database.
The key elements here to look at are catalogue_wrapper and catalogue_wrapper_right for the content, and then container and social for the footer div blocks.
Thanks.
CSS:
/* ===============================
Author: Ashley Smith
Date: July 11, 2015
Notes:
Colour Palette:
---------------
Light Cream: #f2f3ee
Orange: #d17f38
Yellow: #e8c04f
Brown: #4b2707
=============================== */
/* General */
body {
background: url('../images/wood 4.jpg') top left no-repeat; top no-repeat; background-attachment: fixed;
background-size: 100% 100%;
color: black;
-webkit-font-smoothing: antialiased;
text-rendering: optimizelegibility;
font-size: 14px;
font-family: 'Open Sans', "Helvetica Neue", Arial, sans-serif;
}
.container {
width: 1280px;
margin: 0 auto;
padding: 30px 24px;
background: white;
-webkit-box-shadow: 0px 0px 19px 0px rgba(0,0,0,1);
-moz-box-shadow: 0px 0px 19px 0px rgba(0,0,0,1);
box-shadow: 0px 0px 19px 0px rgba(0,0,0,1);
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
clear: both;
}
/* Typography */
p {
margin: 0;
padding: 0;
}
a {
text-transform: uppercase;
text-decoration: none;
list-style: none;
padding: 0px 10px;
font-weight: bold;
color: black;
margin: 0;
}
/* Header */
header.main{
background: white;
padding: 10px;
margin-top: -30px;
margin-bottom: -30px;
height: 141px;
}
header nav {
text-align: center;
}
header nav ul {
margin: 0;
padding: 0;
list-style: none;
display: inline-block;
line-height: 141px;
}
header nav ul li {
display: inline-block;
padding: 0 20px;
}
header nav ul li a {
text-transform: uppercase;
text-decoration: none;
font-weight: bold;
}
header nav ul li#logo a {
display: block;
width: 200px;
height: 150px;
padding: 0;
background: url('../images/LogoM.svg') center center no-repeat;
background-size: 300px;
}
header nav ul li#logo a p {
opacity: 0;
}
/* Small Basket */
#small_basket {
width: 200px;
margin-bottom: 20px;
}
#basket_left dt {
clear: left;
width: 170px;
}
#basket_left {
margin-top: 30px;
margin-bottom: 0;
}
#basket_left dd {
text-align: right;
width: 150px;
margin-bottom: 15px;
}
#basket_left, #basket_left dd, #basket_left dt {
float: left;
}
#basket_left dd.bl_ti, #basket_left dd.bl_st, #basket_left dd.bl_vat, #basket_left dd.bl_total {
display: block;
width: 0px;
padding: 0;
clear: all;
margin-left: 0px;
}
.your_bas {
width: 200px;
border-bottom: dashed 1px #aaa;
padding-bottom: 9px;
}
.check_button {
border-bottom: dashed 1px #aaa;
}
.check_button, .check_button a {
clear: left;
padding: 0px 0px 14px 0px;
font-style: normal;
font-size: 14px;
font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
font-weight: normal;
text-transform: none;
}
.red {
color: red;
}
span.cart_pic {
background: url('../images/cart.png') center center no-repeat;
display: inline-block;
position: relative;
top: 10px;
left: 15px;
width: 30px;
height: 30px;
}
/* Store Content Styling */
#wrapper {
width: 1280px;
text-align:left;
margin:0 auto;
padding: 14px 0;
}
#outer {
width: 1280px;
margin: 0 auto;
padding: 30px 24px;
background: white;
-webkit-box-shadow: 0px 0px 19px 0px rgba(0,0,0,1);
-moz-box-shadow: 0px 0px 19px 0px rgba(0,0,0,1);
box-shadow: 0px 0px 19px 0px rgba(0,0,0,1);
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
#cat_left {
width: 150px;
}
#cat_left p {
font-size: 20px;
margin: -5px;
font-weight: 300;
text-indent: 5px;
}
#cat_right {
margin-left: 147px;
width: 900px
}
#cat_navigation {
margin-top: 20px;
margin-bottom: 14px;
width: 200px;
line-height: 35px;
list-style: none;
border-top: dashed 1px #aaa;
padding: 0;
float: left;
}
#cat_navigation li {
float: left;
background-color: rgba(209,209,209,0.4);
text-align: center;
width: 100%;
padding: 2px;
margin-bottom: 10px;
}
#cat_navigation li a {
width: 150px;
opacity: 0.2;
font-size: 14px;
font-weight: 300;
padding: 0;
}
#cat_navigation li a.act {
opacity: 1;
font-weight: 700;
}
#cat_prod {
border-bottom: dashed 1px #aaa;
margin-bottom: 0;
padding-bottom: 14px;
}
#cat_prod h1 {
font-size: 20px;
margin: -5px;
margin-bottom: 1px;
font-weight: 300;
}
/* Catalogue Styling For Products Alignment... Continued */
.catalogue_wrapper {
width:100%;
border-bottom: dashed 1px #aaa;
height: 100%;
display: block;
clear: both;
position: static;
}
.catalogue_wrapper_left {
display: inline-block;
width: 120px;
margin-top: 20px;
}
.catalogue_wrapper_right {
display: block;
width: 750px;
position: relative;
left: 150px;
height: 180px;
margin-top: -120px;
margin-bottom: -40px;
}
.catalogue_wrapper_right h4 a {
padding: 0;
font-size: 20px;
}
.catalogue_wrapper_left a img {
width: 120px;
height: 150px;
}
.catalogue_wrapper_left a {
padding: 0;
}
/* Catalaogue Floats */
#cat_left, #cat_right, #catalogue_wrapper, #catalogue_wrapper_left, #catalogue_wrapper_right {
float: left;
}
/* Catalogue Products Pages */
.catalogue_wrapper_product_right {
font-size: 20px;
font-weight: bold;
text-transform: uppercase;
display: block;
width: 750px;
position: relative;
left: 150px;
height: 180px;
margin-top: -70px;
margin-bottom: -40px;
}
.product_info {
font-size: 14px;
display: block;
width: 750px;
text-transform: none;
top: -63px;
}
/* Buttons */
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/* Basket and Checkout Buttons */
.sbm, .btn {
vertical-align: middle;
cursor: pointer;
display:block;
text-transform: uppercase;
font-weight: bold;
font-size: 14px;
}
.sbm_blue {
background: transparent;
background-color: #43a9d9;
border-radius: 4px;
border: none;
padding: 10px 15px;
}
.btn {
text-transform: uppercase;
background: transparent;
background-color: #43a9d9;
border: none;
border-radius: 4px;
color: white;
}
#btn_login {
text-transform: uppercase;
border-radius: 4px;
background: transparent;
background-color: #43a9d9;
border: none;
color: white;
padding: 0px 15px;
}
#btn {
text-transform: uppercase;
background-color: #43a9d9;
border-radius: 4px;
color: white;
padding: 0px 15px;
}
.fl_l {
float: left;
}
.fl_r {
float: right;
}
/* Basket Button */
.add_to_basket {
padding: 6px 12px;
text-transform: uppercase;
background-color: #43a9d9;
border-radius: 4px;
color: white;
}
/* Basket Page */
.ta_r, th.ta_r, .td.ta_r {
text-align: right;
padding: 10px;
}
.ta_left {
text-align: left;
padding: 10px;
}
.ta_right {
text-align: right;
padding: 10px 0px;
}
.col_15 {
width: 15%
}
.tbl_repeat {
width: 900px;
margin-top: 25px;
}
.ta_left_name {
text-align: left;
padding: 10px;
width: 650px;
}
.ta_left_qty input {
width: 40px;
}
.ta_r a {
padding: 0;
text-transform: none;
}
.fld_qty {
border: solid 1px #aaa
}
.fld_qty {
width: 30px;
text-align: right;
padding: 0
}
/* Checkout Page */
.tbl_insert {
margin-bottom:14px;
width: 900px;
line-height: 34.5px;
}
.tbl_insert td {
padding:3px;
}
.tbl_insert th {
padding: 3px 10px 3px 0;
width: 170px;
font-weight: normal;
vertical-align: top;
}
.fld {
width: 700px;
}
.warn {
display: block;
color: #900;
padding: 0;
vertical-align: text-bottom;
}
/* Orders Table */
.order_table {
width: 900px;
}
th.fix_width {
width: 900px;
}
hr#prod_break {
/* Gradient transparent - color - transparent */
border: 0;
height: 1px;
width: 600px;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}
.tbl_repeat
{
position:relative;
-webkit-box-shadow:0 1px 10px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow:0 1px 10px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.1) inset;
box-shadow:0 1px 10px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.1) inset;
}
.tbl_repeat:before, .tbl_repeat:after
{
position:absolute;
z-index:-1;
-webkit-box-shadow:0 0 20px rgba(0,0,0,0.8);
-moz-box-shadow:0 0 20px rgba(0,0,0,0.8);
box-shadow:0 0 20px rgba(0,0,0,0.8);
top:50%;
bottom:0;
left:10px;
right:10px;
-moz-border-radius:400px / 100px;
border-radius:400px / 100px;
}
/* Product Paging */
.paging {
list-style: none;
width: 900px;
float: left;
/* background: #efefef; */
padding: 10px 10px;
color: white;
}
.paging li {
float: left;
margin-right: 10px;
font-size: 14px;
}
.paging a {
text-transform: none;
text-decoration: underline;
color: black;
padding: 0;
font-weight: normal;
color: white;
}
/* Pagination Navigation Buttons
http://www.flaticon.com/packs/metrize - - no class colour: #D9D9D9
*/
a.first {
position: relative;
display: block;
width: 32px;
height: 32px;
background: url('../images/first.svg') top center no-repeat;
background-size: 32px;
}
a.firstno {
position: relative;
display: block;
width: 32px;
height: 32px;
background: url('../images/firstno.svg') top center no-repeat;
background-size: 32px;
}
a.previous {
position: relative;
display: block;
width: 32px;
height: 32px;
background: url('../images/previous.svg') top center no-repeat;
background-size: 32px;
}
a.previousno {
position: relative;
display: block;
width: 32px;
height: 32px;
background: url('../images/previousno.svg') top center no-repeat;
background-size: 32px;
}
a.next {
position: relative;
display: block;
width: 32px;
height: 32px;
background: url('../images/next.svg') top center no-repeat;
background-size: 32px;
}
a.nextno {
position: relative;
display: block;
width: 32px;
height: 32px;
background: url('../images/nextno.svg') top center no-repeat;
background-size: 32px;
}
a.last {
position: relative;
display: block;
width: 32px;
height: 32px;
background: url('../images/last.svg') top center no-repeat;
background-size: 32px;
}
a.lastno {
position: relative;
display: block;
width: 32px;
height: 32px;
background: url('../images/lastno.svg') top center no-repeat;
background-size: 32px;
}
a#top_of_page {
display: block;
position: relative;
text-transform: uppercase;
text-decoration: none;
font-weight: bold;
background-color: #43a9d9;
top: -31px;
left: 45px;
color: white;
border-radius: 4px;
padding: 7px;
}
/* Proceed to Paypal */
#frm_pp {
display: none
}
.dn {
display: none;
}
/* Google reCAPTCHA */
.g-recaptcha {
display: inline-block;
position: relative;
width: 304px;
height: 78px;
}
/* Footer */
footer.main, #footer {
bottom: 0px;
width: 100%;
height: 182px;
position: fixed;
text-align: center;
margin-bottom: -20px;
}
footer.main div.footbord {
border-top-left-radius: -10px;
border-top-right-radius: -10px;
background-color: blue;
}
#uncopyright, #credits {
width: 100%;
margin: 5px 5px;
text-align: center;
display: inline-block;
position: static;
clear: both;
}
#uncopyright {
display: inline-block;
position: static;
margin-top: -20px;
clear: both;
}
div.social img {
width: 40px;
position: relative;
margin: 5px;
display: inline-block;
}
.social {
position: static;
height: 56px;
display: inline-block;
}
.social, .social a {
text-transform: uppercase;
text-decoration: none;
list-style: none;
padding: 0px 10px;
font-weight: bold;
color: black;
margin: 0;
}
/* -- Center Placeholder For Form Text and Keep Entry Field Left -- */
::-webkit-input {
text-align: left;
}
::-webkit-input-placeholder {
text-align: center;
}
::-moz-placeholder {
text-align: center;
}
/* -- Blank Spacing At Bottom Of Main Container -- */
div.nav_top {
height: 30px;
width: 100px;
}
div.nav_top_after {
height: 30px;
width: 100px;
}
div.cont_bot {
height: 230px;
width: 100px;
}
div.cat_space {
height: 20px;
}
/* Force Elements To Self Clear Its Children: http://css-tricks.com/snippets/css/clear-fix/ */
.clearfix:after {
visibility: hidden;
display: block;
content: "";
clear: both;
height: 0;
}
* html .group { zoom: 1; } /* IE6 */
*:first-child+html .group { zoom: 1; } /* IE7 */
I fixed it by messing around all evening with floats in CSSEdit. A great application!
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;
}
}
I cant seem to figure out why the h1 tag is showing differently on mobile browsers.
The site is www.jd-financialservices.co.uk When I view the site on my desktop everything is fine. When I view it on my Nexus 4 however, the 10px gap between h1 and the .topbar div has gone. It's the same on Opera, Firefox and Chrome.
Can anyone help please?
Thank you in advance.
I would advise against using position:relative; and negative top on all of your elements.
With some minor changes to your css you will probably find that it fixes itself: here is my updated version of your css. See if that fixes things.
I updated: aside nav h1 .welcome and footer. By changing some of the header elements to use position:absolute and then using margin to space elements out. You will probably find the css is more compatible cross-browser/device.
#font-face { font-family: 'Constantia'; src: url('constantia/constantia.eot'); src: url('constantia/constantia.eot?#iefix') format('embedded-opentype'), url('constantia/constantia.svg#Constantia') format('svg'), url('constantia/constantia.woff') format('woff'), url('constantia/constantia.ttf') format('truetype'); font-weight: normal; font-style: normal;}
* {
margin-top: 0px;
margin-bottom: 0px;
}
html {
font-family: 'droid sans';
-webkit-font-smoothing: antialiased;
text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}
body {
width: 940px;
margin: 0 auto;
}
li {
list-style: none;
}
a {
text-decoration: none;
color: #ffffff;
}
a:hover {
text-decoration: underline;
}
header a:hover {
text-decoration: none;
}
h1 {
font-family: 'Constantia', helvetica;
position: absolute;
top: 20px;
}
header {
height: 140px;
position: relative;
margin-bottom: 40px;
}
nav {
width: 660px;
height: 30px;
background-color: #00788a;
position: absolute;
font-size: 1.2em;
bottom: 0;
right: 0;
}
nav li a {
color: #ffffff;
}
nav a:hover {
text-decoration: underline;
}
nav ul {
padding-left: 0px;
}
nav ul li {
display: inline;
line-height: 30px;
vertical-align: middle;
color: #ffffff;
padding-left: 70px;
padding-right: 65px;
}
aside {
height: 600px;
width: 240px;
float: left;
background-color: #00788a;
color: #ffffff;
clear: both;
position: relative;
text-align: center;
margin-bottom: 30px;
}
article a {
color: #00788a;
}
.contain {
width: 940px;
}
footer {
height: 100px;
clear: both;
background-color: #00788a;
color: rgba(255,255,255,0.5);
position: relative;
font-size: 0.85em;
padding: 0 10px;
line-height: 1.5em;
margin-top: 40px;
}
footer li {
display: inline;
border-left: 2px solid rgba(255,255,255,0.5);
padding: 0 5px;
}
footer li:first-child {
border: none;
}
footer ul {
padding-left: 0;
text-align: center;
}
.foot_fade {
color: rgba(255,255,255,0.5);
}
.first_initial {
font-size: 110px;
color: #00788a;
font-weight: lighter;
}
.second_initial {
font-size: 101px;
color: #00788a;
font-weight: lighter;
position: relative;
top: -6px;
}
.rest_of_title {
font-size: 26px;
position: relative;
left: -73px;
top: 20px;
font-weight: lighter;
}
header a {
color: #000000;
}
.header_background {
float: right;
position: relative;
z-index: -1;
}
.topbar {
width: 940px;
height: 30px;
background-color: #00788a;
}
.call_now {
padding: 10px 50px 10px 50px;
font-size: 1.5em;
line-height: 1.5em;
border-bottom: 5px solid #ffffff;
text-shadow: 2px 2px 2px #2a2a2a;
}
.home_service {
padding: 10px 40px 10px 40px;
font-size: 1.45em;
line-height: 1.5em;
border-bottom: 5px solid #ffffff;
text-shadow: 2px 2px 2px #2a2a2a;
}
.service_list {
font-size: 1.25em;
line-height: 3em;
text-align: left;
padding-top: 35px;
padding-left: 20px;
text-shadow: 2px 2px 2px #2a2a2a;
}
.welcome {
width: 660px;
float: right;
padding: 0px 0px 0px 40px;
font-size: 0.9em;
line-height: 2em;
color: #2a2a2a;
position: relative;
/* top: -95px; */
text-align: justify;
}
.services {
width: 660px;
float: right;
padding: 0px 0px 0px 40px;
position: relative;
top: -95px;
}
.services a {
text-decoration: none;
position: absolute;
top: 151px;
left: 0;
width: 275px;
color: #ffffff;
background-color: rgba(0,0,0,0.5);
padding: 10px 0 10px 10px;
}
.services div {
margin-bottom: 15px;
}
.services div:last-child {
margin-bottom: 0;
}
.savings_pic {
position: relative;
height: 190px;
width: 285px;
}
.retire_pic {
position: absolute;
top: 0;
right: 0;
height: 190px;
width: 285px;
}
.protection_pic {
position: relative;
height: 190px;
width: 285px;
}
.insurance_pic {
position: absolute;
top: 205px;
right: 0;
height: 190px;
width: 285px;
}
.mortgage_pic {
position: relative;
height: 190px;
width: 285px;
}
.retire {
width: 300px;
float: right;
margin: 0 0 10px 10px;
}
/*.shadow {
box-shadow: 0 0 3px 1px rgba(42,42,42,0.5);
margin: 3px 0;
}*/
.overlay {
background-color: rgba(0, 0, 0, 0.5);
bottom: 54px;
color: #FFFFFF;
padding: 10px;
position: relative;
width: 265px;
}
.overlay a {
text-decoration: none;
color: #ffffff;
}
.overlay a:hover {
}
.left {
float: left;
}
.right {
float: right;
}
.regulation {
font-style: italic;
color: #9a9a9a;
font-size: 0.9em;
}
.smallprint {
width: 520px;
font-size: 0.9em;
text-align: center;
position: absolute;
right: 210px;
top: 30px;
}
.copyright {
width: 310px;
margin: 0 auto;
}
.scapa {
position: absolute;
bottom: 0;
right: 10px;
font-size: 0.9em;
}
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/JScript.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/fns.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('li').removeClass("first active first-active");
$("a[href='DietPlan.aspx']").parent().addClass("first active first-active");
});
Doesnt work still highlights the tab.
my script contained in js/JScript.js
$(function () {
$("a[href='<%=System.IO.Path.GetFileName(Request.PhysicalPath)%>']").parent().addClass("first active first-active");
});
...
<ul>
<li>My Profile<span class="sep"> </span></li>
<li>My Diet Plan<span class="sep"> </span></li>
<li>My Workout Plan<span class="sep"> </span></li>
</ul>
css
/*----- Start "Main definitions" -----*/
* { padding: 0; margin: 0; outline: 0; }
body {
font-size: 12px;
line-height: 1.2;
font-family: Arial, "Trebuchet MS", sans-serif;
color: #a0a0a0;
background: url(images/bg.gif) repeat 0 0;
text-align: left;
}
a img { border: 0; }
a { color: #a0a0a0; text-decoration: underline; }
a:hover { text-decoration: none; }
.left { float: left; display: inline; }
.right { float: right; display: inline; }
.cl, .clear { display: block; height: 0; font-size: 0; line-height: 0; text-indent: -4000px; clear: both; }
.field { font-size: 12px; color: #484848; font-family: Arial, "Trebuchet MS", sans-serif; color: #000; border: solid 1px #a0a0a0; width: 140px; padding: 2px 5px; }
/*----- End "Main definitions" -----*/
.shell { width: 914px; margin: 0 auto; }
#page { padding-bottom: 30px; }
#header { width: 100%; position: relative; margin-bottom: 5px; }
#logo { text-transform: uppercase; line-height: 1; padding-bottom: 15px; }
#logo h1 { font-family: "Trebuchet MS", Arial, sans-serif; font-weight: bold; font-size: 30px; color: #fff; }
#logo h1 a { color: #fff; text-decoration: none; }
#logo h1 a span { color: #7ab7e2; }
#logo .description { font-size: 10px; color: #cfd2d9; }
#top-nav { float: right; display: inline; margin-bottom: 2px; }
#top-nav ul { float: left; display: inline; font-size: 10px; line-height: 31px; color: #fff; text-transform: uppercase; background: url(images/top-nav-bg.jpg) repeat-x 0 0; }
#top-nav ul li { float: left; display: inline; list-style-type: none; }
#top-nav ul li a { float: left; display: inline; color: #fff; text-decoration: none; padding: 0 10px 0 8px; background: url(images/top-nav-sep.gif) no-repeat right 0; }
#top-nav ul li a:hover { text-decoration: underline; }
#top-nav ul li.last { padding-right: 4px; background: url(images/top-nav-last.gif) no-repeat right 0; }
#top-nav ul li.last a { background: none; }
#top-nav ul li.home { width: 88px; background: url(images/top-nav-home.gif) no-repeat 0 0; }
#top-nav ul li.home a { background: none; width: 67px; height: 31px; line-height: 29px; padding: 0; color: #141414; font-weight: bold; padding-left: 21px; }
#main-nav { float: right; display: inline; line-height: 32px; background: url(images/main-nav-bg.gif) repeat-x 0 0; }
#main-nav .bg-right { background: url(images/main-nav-bg-right.gif) no-repeat right 0; }
#main-nav .bg-left { background: url(images/main-nav-bg-left.gif) no-repeat 0 0; padding-left: 32px; width: 676px; }
#main-nav ul { height: 32px; font-size: 10px; color: #a8a8a8; text-transform: uppercase; }
#main-nav ul li { float: left; display: inline; list-style-type: none; background: url(images/main-nav-sep.gif) no-repeat right 0; }
#main-nav ul li a { float: left; display: inline; text-decoration: none; color: #a8a8a8; padding: 0 11px 0 9px; }
#main-nav ul li a:hover { text-decoration: underline; }
#sort-nav { line-height: 46px; background: url(images/sort-nav-bg.gif) repeat-x 0 0; }
#sort-nav .bg-left { background: url(images/sort-nav-bg-left.gif) no-repeat 0 0; position: relative; height: 46px; }
#sort-nav .bg-right { background: url(images/sort-nav-bg-right.gif) no-repeat right 0; position: relative; height: 46px; }
#sort-nav ul li { float: left; display: inline; list-style-type: none; height: 46px; }
#sort-nav ul li a { float: left; display: inline; font-size: 13px; font-weight: bold; color: #282828; text-decoration: none; padding: 0 19px; }
#sort-nav ul li span.sep { float: left; display: inline; width: 2px; height: 46px; font-size: 0; line-height: 0; text-indent: -4000px; background: url(images/sort-nav-sep.gif); }
#sort-nav ul li a:hover { text-decoration: underline; }
#sort-nav ul li.active a { color: #fff; text-decoration: none; }
#sort-nav ul li.active a:hover { text-decoration: none; }
#sort-nav ul li.first-active a { background: url(images/nav-active-first.gif) no-repeat 0 0; }
#sort-nav ul li.active span.sep { background-image: url(images/nav-active-sep.gif); }
#sort-nav ul li.active { background: url(images/nav-active-bg.gif) repeat-x 0 0; }
#main { background: #050505 url(images/main-bg.gif) no-repeat 0 0; padding-top: 10px; }
#main-bot { background: url(images/main-bot-bg.gif) no-repeat 0 bottom; padding: 0 10px 2px 10px; height: 100%; position: relative; }
#sidebar { float: left; display: inline; width: 226px; }
#content { float: right; display: inline; width: 660px; }
.block { margin-bottom: 10px; background-repeat: no-repeat; background-position: 0 0; }
.block .block-bot { height: 100%; position: relative; background-repeat: no-repeat; background-position: 0 bottom; }
.block .block-cnt { padding: 10px 10px 10px 9px; }
.block .head { background: url(images/block-head.gif) no-repeat 0 0; padding-left: 15px; }
.block .head .head-cnt { background: url(images/block-head.gif) no-repeat right 0; line-height: 38px; height: 38px; padding-right: 13px; }
.block .head h3 { font-size: 15px; font-weight: bold; color: #262727; }
.block .head .view-all { float: right; display: inline; width: 61px; height: 18px; line-height: 16px; background: url(images/block-head-view-all.gif); margin-top: 12px; }
.block .head .view-all { color: #656565; font-size: 10px; text-decoration: none; text-align: center; }
.block .head .view-all:hover { text-decoration: underline; }
#content .block { background-image: url(images/content-block-top.gif); background-color: #313131; width: 657px; }
#content .block .block-bot { background-image: url(images/content-block-bot.gif); }
#sidebar .block { background-image: url(images/sidebar-block-top.gif); background-color: #484848; width: 226px; }
#sidebar .block .block-bot { background-image: url(images/sidebar-block-bot.gif); }
#search .block-cnt { padding: 5px 5px 5px 4px; }
#search .fieldplace { float: left; display: inline; width: 170px; height: 22px; background: url(images/search-field.gif) no-repeat 0 0; padding-left: 18px; }
#search .fieldplace .field { padding: 3px 6px 4px; width: 158px; border: none; background: none; }
#search .button { float: left; display: inline; width: 29px; height: 22px; font-size: 0; line-height: 0; text-indent: -4000px; cursor: pointer; border: 0; }
#search .button { background: url(images/search-button.gif) no-repeat 0 0; }
#sign .block-cnt { padding: 6px 5px 5px 5px; }
#sign .button { display: block; font-size: 11px; font-weight: bold; text-align: center; color: #fff; text-decoration: none; text-transform: uppercase; line-height: 29px; }
#sign .button { width: 105px; height: 29px; background: url(images/sign-button.gif) no-repeat 0 0; }
#sign .button:hover { background-position: 0 bottom; }
#sign .button-left { float: left; display: inline; }
#sign .button-right { float: right; display: inline; }
#sign .center { text-align: center; font-size: 11px; line-height: 16px; margin-top: 4px; }
#sign .center a { color: #35cfd9; }
#sidebar .articles .article { padding: 8px 7px; background: url(images/sidebar-article-sep.gif) repeat-x 0 bottom; font-size: 11px; color: #a0a0a0; }
#sidebar .articles h4 { color: #fff; font-weight: bold; font-size: 12px; }
#sidebar .articles h4 a { color: #fff; text-decoration: none; }
#sidebar .articles h4 a:hover { color: #ccc; }
#sidebar .articles .view-all { font-size: 10px; letter-spacing: 0.5px; line-height: 24px; float: right; display: inline; margin-right: 6px; }
#sidebar .image-articles .image { float: left; display: inline; width: 55px; }
#sidebar .image-articles .image img { padding: 1px; border: solid 1px #1e1e1e; width: 208px;
height: 148px; }
#sidebar .image-articles .cnt { float: right; display: inline; width: 150px; }
#sidebar .text-articles .article { padding: 8px 10px; font-size: 12px; }
#sidebar .text-articles h4 { font-size: 13px; }
#content .articles h4 { font-size: 19px; font-weight: bold; color: #ccc; margin: 4px 0 2px; }
#content .articles h4 a { text-decoration: none; color: #ccc; }
#content .articles h4 a:hover { color: #fff; }
#content .col-articles .image img { padding: 1px; border: solid 1px #050505; width: 194px; height: 194px; }
#content .col-articles .article { float: left; display: inline; margin: 17px 0 10px 15px; width: 198px; }
#content .row-articles .article { padding: 10px 15px 12px 15px; background: url(images/content-article-sep.gif) repeat-x 0 bottom; }
#content .row-articles .last-article { background: none; }
#content .row-articles .image { float: left; display: inline; width: 194px; }
#content .row-articles .image img { width: 194px; }
#content .row-articles .cnt { float: right; display: inline; width: 420px; }
#content .row-articles h4 { margin-top: 0; line-height: 20px; }
#content .row-articles h4 a { color: #e4e4e4; }
#slider { width: 638px; height: 357px; position: relative; }
#slider .buttons { position: absolute; top: 250px; right: 15px; z-index: 101; }
#slider .buttons span { float: left; display: inline; width: 28px; height: 27px; font-size: 0; line-height: 0; text-indent: -4000px; cursor: pointer; margin-left: 2px; }
#slider .buttons span.prev { background: url(images/button-prev.png) no-repeat 0 0; }
#slider .buttons span.next { background: url(images/button-next.png) no-repeat 0 0; }
#slider .holder { width: 638px; height: 357px; position: relative; overflow: hidden; }
#slider .content { height: 357px; width: 100000px; position: absolute; top: 0; left: 0; }
#slider .fragment { float: left; display: inline; width: 638px; height: 357px; list-style-type: none; }
#slider .fragment .image { position: relative; width: 638px; height: 287px; }
#slider .frame { width: 638px; height: 287px; position: absolute; top: 0; left: 0; z-index: 100; background: url(images/slider-image-bg.png) no-repeat 0 0; }
#slider .frame { font-size: 0; line-height: 0; text-indent: -4000px; }
#slider .fragment .cnt { margin-top: 5px; height: 49px; background: url(images/slider-cnt-bg.gif) repeat-x; color: #fff; font-size: 11px; line-height: 1.4; padding: 8px 15px; }
#slider .fragment .cnt .side-a { float: left; display: inline; width: 150px; }
#slider .fragment .cnt .side-b { float: right; display: inline; width: 430px; }
#slider .fragment .cnt h4 { font-size: 19px; font-weight: bold; color: #212121; text-transform: uppercase; margin-bottom: 5px; }
#slider .fragment .cnt .rating li { float: left; display: inline; list-style-type: none; font-size: 9px; color: #050505; text-transform: uppercase; margin-right: 1px; }
#slider .fragment .cnt .rating li .star { float: left; display: inline; width: 15px; height: 15px; font-size: 0; line-height: 0; text-indent: -4000px; }
#slider .fragment .cnt .rating li .empty-star { background: url(images/empty-star.gif); }
#slider .fragment .cnt .rating li .full-star { background: url(images/full-star.gif); }
#slider .fragment .cnt .rating li .votes { float: left; display: inline; margin-top: 3px; margin-left: 4px; }
#footer .copy { font-size: 10px; color: #363636; text-transform: uppercase; text-align: right; padding: 20px 0; }
#footer .copy a{ color: #363636; }
#footer .navs { background: #222 url(images/footer-navs-top.gif) no-repeat 0 0; text-align: center; font-size: 10px; text-transform: uppercase; color: #656565; height: 100%; position: relative; }
#footer .navs .navs-bot { background: url(images/footer-navs-bot.gif) no-repeat 0 bottom; height: 100%; position: relative; }
#footer .navs ul { margin: 10px 0; }
#footer .navs ul li { list-style-type: none; display: inline; padding: 0 6px; }
#footer .navs ul li a { color: #656565; text-decoration: none; }
#footer .navs ul li a:hover { text-decoration: underline; }
Assuming your link clicks reload the current page your "My Profile" tag will be always selected.
One option would be to select the current tab via server side script, this can be done many ways however here is one.
If the menu is on a master page, you will need to define some way to find out which page you are on server side.
<ul>
<li <%=CurrentPage == "Profile" ? "class=\"first active first-active\"" : "" %>>
My Profile
<span class="sep"> </span>
</li>
<li <%=CurrentPage == "DietPlan" ? "class=\"first active first-active\"" : "" %>>
My Diet Plan
<span class="sep"> </span></li>
<li <%=CurrentPage == "WorkOutPlan" ? "class=\"first active first-active\"" : "" %>>
My Workout Plan
<span class="sep"> </span></li>
</ul>
This is all pseudo code, but the idea is you only want to set class="first active first-active" when you are on the current page via some sort of server side conditional.
If the menu is on each page, UserProfileWall.aspx, DietPlan.aspx it is a bit easier...
UserProfileWall.aspx would be like this:
<ul>
<li class="first active first-active">My Profile<span class="sep"> </span></li>
<li>My Diet Plan <span class="sep"> </span></li>
<li>My Workout Plan<span class="sep"> </span></li>
<li>Research<span class="sep"> </span></li>
<li>Research<span class="sep"> </span></li>
</ul>
DietPlan.aspx would be like this...
<ul>
<li>My Profile<span class="sep"> </span></li>
<li class="first active first-active">My Diet Plan <span class="sep"> </span></li>
<li>My Workout Plan<span class="sep"> </span></li>
<li>Research<span class="sep"> </span></li>
<li>Research<span class="sep"> </span></li>
</ul>
And so on for the rest of your pages..
Now this is just one way you could also break this out to a user control that has a property as the current page for example.
This could be done via javascript as well (untested).
$(function(){
$("a[href='<%=System.IO.Path.GetFileName(Request.PhysicalPath)%>']").parent().addClass("first active first-active");
});
Which should generate something like this:
$(function(){
$("a[href='DietPlan.aspx']").parent().addClass("first active first-active");
});
Update
Having server script blocks in your *.js files will not be processed by .net (by default), try changing the following:
Change:
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/JScript.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/fns.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('li').removeClass("first active first-active");
$("a[href='DietPlan.aspx']").parent().addClass("first active first-active");
});
To:
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/JScript.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/fns.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("a[href='<%=System.IO.Path.GetFileName(Request.PhysicalPath)%>']").parent().addClass("first active first-active");
});
Define a selected class in your css.
ex:
.selected{
background:red;
}
Using jQuery you can do this.
$('li').click(function() {
$('li').removeClass('selected');
$(this).addClass('selected');
});
Now only the clicked li link will have the class="selected" and therefore the background red.
Check working example at http://jsfiddle.net/MRVpD/