one page of my website is locking like that:
http://www.pflanzspass.bplaced.net/
Yesterdy I tried to integrate a slideshow:
http://www.pflanzspass.bplaced.net/indextest.php
The slideshow is working, but now there are some new layout problems:
now:
before:
I don't know why.
This is my new css-Code for the slideshow:
* {box-sizing: border-box}
/*body {
font-family: Verdana, sans-serif;
margin:0
}*/
.mySlides {display: none}
img {vertical-align: middle;}
.slideshow-container {
max-width: 1000px;
position: relative;
margin: auto;
}
/* Next & previous buttons */
.prev, .next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -22px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
background-color: rgba(0,0,0,0.8);
}
/* Caption text */
.text {
color: #ffffff;
font-size: 15px;
padding: 8px 12px;
position: absolute;
bottom: 8px;
width: 100%;
text-align: center;
}
/* Number text (1/3 etc) */
.numbertext {
color: #ffffff;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}
/* The dots/bullets/indicators */
.dot {
cursor: pointer;
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #999999;
border-radius: 50%;
display: inline-block;
transition: background-color 0.6s ease;
}
.active, .dot:hover {
background-color: #111111;
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
#-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
#keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
/* On smaller screens, decrease text size */
#media only screen and (max-width: 300px) {
.prev, .next,.text {font-size: 11px}
}
This is the css-code, already online before added the slide-show css-code:
*{
margin: 0px;
padding: 0px;
}
body {
font-family:Verdana;
font-size:10px;
}
#wrapper{
width:1000px;overflow:hidden;
margin:0 auto 10px auto;background-image: url(./grafics/bg.gif);background-repeat:repeat-y;
}
/*-------------------------------------------------------------------*/
/* font-size */
/*-------------------------------------------------------------------*/
h1 {
font-size: 25px;
}
h2 {
font-size: 19px;
}
h3{
font-size:18px;
color:#660033;
}
h4, h5, h6 {
font-size: 16px;
}
p{
font-size: 14px;
margin-right:20px;
}
h2, h3, h4, h5, p{
margin-bottom:10px;
}
h5{
}
/*-------------------------------------------------------------------*/
/* links */
/*-------------------------------------------------------------------*/
a:link, a:visited, a:active, a:hover{
text-decoration:none;
color:#634142;
font-size:12px;
font-weight:bold;
}
a:active, a:hover{
text-decoration:underline;
}
/*-------------------------------------------------------------------*/
/* header */
/*-------------------------------------------------------------------*/
#header {
width:968px;
height:161px;
margin:0 13px 0 13px;
border:3px solid #000;
background-color: #000;
}
#header2{
width:974px;
height:65px;
padding:5px 0 0 0;
margin:0 13px 0 13px;
background:#fff;
clear:both;
}
#logo {
width:222px;
margin: 0 0 0 0;
padding: 0 5px 0 0;
float: left;
overflow: hidden;
}
#header-title {
height: 160px;
background: transparent url(banner_2.jpg) no-repeat 0 0;
float:left;
}
#ueberschrift {
padding:60px 0 0 20px;
color:#fff;
}
#ueberschrift p{
font-size:16px;
}
#content-header{
width:990px;height:60px;
padding:0 0 20px 10px;
}
#like{
width:77px;
margin:5px 30px 0 10px;
float:left;
}
#kaktus-banner{
width:468px;
margin:5px 0 0 129px;
float:left;
}
#wobinich{
width:964px;height:16px;
margin:0 13px 0 13px;
font-size:12px;
border-bottom:1px solid #000;
background:#fff;
float:left;padding:0 0 0 10px;
}
h2.title{
text-align:center;
height:40px;
font-size:30px;
background: transparent url(./grafics/bg-title1.gif) no-repeat 0px 35px;
}
h2.title2{
height:40px;
font-size:30px;
background: transparent url(./grafics/bg-title3.gif) no-repeat 0px 35px;
}
h2.gb{
height:30px;
background: transparent url(./grafics/bg-title3.gif) no-repeat 0px 25px;
}
/*-------------------------------------------------------------------*/
/* content */
/*-------------------------------------------------------------------*/
#content {
width:974px;
margin:0 13px 0 13px;
background:#fff;
float:left;
}
#content p{
line-height:24px;
}
#links{
width:185px;
margin:0 0 0 0;
float:left;
}
#mitte{
width:609px; /*609px*/
padding:10px 10px 0 10px;
float:left;
}
#mitte_a-z{
width:873px;
padding:10px 0 0 20px;
}
#mitte1{
width:767px;
padding:10px 10px 0 10px;
float:left;
}
#rechts{
width:160px;
margin:0 0px 10px 0;
float:right;
}
#film{
margin:10px 0 10px 182px;
}
#footer{
width:974px;height:30px;
font-size:12px;
line-height: 27px;
text-align:center;
color:#000;
border-top:1px solid #000;background:#fff;border-bottom:1px solid #000;background:#fff;
float:left;
}
#footer a{
font-weight:normal;
color:#000;
}
/*-------------------------------------------------------------------*/
/* navigation */
/*-------------------------------------------------------------------*/
.navtitle{
margin:0px;
background:#7fb37f;
text-align:center;
}
#navigationsleiste{
margin:0 16px 20px 0;padding:0 0 10px 0;
width:185px;background:#a5e8a5;
}
#navigationsleiste a{
display: block;
height: 20px;
padding:8px 0 0 19px;
color: #000;
text-decoration: none;
}
#navigationsleiste a:hover{
background: transparent url(./grafics/liste.gif) no-repeat 5px 12px;
}
#navigationsleiste a.aktiv{
background: transparent url(./grafics/liste.gif) no-repeat 5px 12px;
}
.link{
/*margin:0 16px -2000px 0;padding-bottom:2000px;*/
width: 185px;background:#a5e8a5;
}
.link a{
display: block;
height: 20px;
margin:2px;
padding:10px 0 10px 9px;
font-size:12px;
}
.link-re{
/*margin:0 0px -2500px 0;padding:0 0 2500px 0;*/
width: 160px;background:#a5e8a5;
}
.link-re a{
display: block;
height: 20px;
margin:0px;
padding:2px 0 0 20px;
font-size:12px;
font-weight:bold;
}
#zapp{
width:964px;height:20px;
margin:0 13px 0 13px;
font-size:12px;
background:#fff;
border-bottom:1px solid #000;
padding:10px 0 0 10px;
float:left;
}
.up{
margin:10px 0 10px 0px;
text-align:right;
}
.up a{
font-weight:bold;
}
.back{
margin:0 60px 0 0;
float:left
}
.zurueck{
float:left;
}
.ist{
float:left;
color:#a5a5a5;
margin-left:30px;
}
.vor{
margin:0 0 0 30px;
float:left;
}
/*-------------------------------------------------------------------*/
/* listenelemente */
/*-------------------------------------------------------------------*/
ul{
list-style-type:none;
}
li{
}
#mitte ul{
list-style-type:disc;
margin-left:15px;
}
#mitte li a{
}
ol{
font-size:14px;
margin:0 0 0 20px;
line-height:24px;
}
.cb{
clear:both;
}
img{
}
#table{
}
p.hn {
color: #870B0B;
}
p.se {
color:#057C11;
}
p.nanl {
color:#64057C;
}
p.bild {
float:left;
}
Remove height:20px form this style
.link a{
display: block;
height: 20px;
margin:2px;
padding:10px 0 10px 9px;
font-size:12px;
}
* {
box-sizing: border-box;
}
.link a {
display: block;
height: auto;
margin: 2px;
padding: 10px 0 10px 9px;
font-size: 12px;
}
I need to build a small website and I'm having problems with the page resizing.
I want that the png image that I put as header is resizable with the whole page (zooming in or out).
I use this css
div#container {
overflow: hidden;
min-width:900px;
width:50%;
margin:0px auto;
background-color:#ffffff;
}
div#header {
background: url('header.png') no-repeat center center;
height:20%;
min-width:900px;
width:inherit;
margin:0px auto;
position:relative;
}
div#upper_nav {
position: absolute;
bottom:0%;
right:0%;
text-align:center;
z-index:9999;
background-color:#e6e6e6;
}
and here the html part
<div id="upper_nav">
<ul id="menu_header">
<li class="active">Home</li>
<li>Link11</li>
<li>Link22</li>
<li>Link33</li>
<li>Link44</li>
</ul>
</div>
Here a link with the test code: https://jsfiddle.net/809ofmvr/1/ I don't know how to add image in the test. Let's say that in the upper part there is the header image and in the bottom part the footer.
I use for the header, a div header and inside the upper_nav div with some links. I think the problem is inside the header div but I don't know where. I also tried to replace position:relative; with display:block; but gives me the same problem.
What can I do to allow a complete resize of the entire page when changes the monitor resolution, zoom, using a smartphone or whatever? With the content it resizes in the correct way.
You can use 20vw to force the header to have a height:
html {
margin:0;
padding:0;
background-color:#ffffff;
}
body {
font-family: Tahoma, Geneva, sans-serif;
color:#000;
text-align:justify;
background-image: url('http://placehold.it/800x200');
background-repeat: no-repeat;
background-attachment:fixed;
background-size: cover;
}
div#container {
overflow: hidden;
min-width:900px;
/*max-width:2000px;*/
width:50%;
margin:0px auto;
background-color:#ffffff;
}
div#header {
background: url('http://placehold.it/800x200') no-repeat center center;
background-size: cover;
height:20vw;
min-width:900px;
width:inherit;
margin:0px auto;
position:relative;
}
div#upper_nav {
position: absolute;
bottom:0%;
right:0%;
text-align:center;
z-index:9999;
background-color:#e6e6e6;
}
div#navigation_left {
padding:5px 5px;
float: left;
width:22%;
background-color:#e6e6e6;
box-shadow: 5px 5px 2px #888888;
padding-bottom: 99999px; margin-bottom: -99999px;
}
div#content {
overflow:auto;
margin-left:25%;
background-color:#e6e6e6;
box-shadow: 5px 5px 2px #888888;
padding-bottom: 99999px; margin-bottom: -99999px;
}
div#footer {
clear:both;
background: url('footer.png') no-repeat center center;
height:105px;
position:relative;
}
div#footer_content {
position: relative;
bottom:-50%;
text-align:center;
z-index:9999;
background-color:#fff;
}
P {
font-size: 17px;
color:#000;
font-family:Tahoma;
}
a {
text-decoration: none;
color:#0066FF;
font-size: 17px;
}
a:hover {
color: #0066FF;
text-decoration: underline
}
h1 {
background-color: #737373;
color: #fff;
font-family: verdana;
font-size: 200%;
}
h2,h3,h4,h5,h6,h7,h8 {
background-color: #737373;
color: #fff;
font-family: verdana;
font-size: 150%;
}
ul#menu_left{
font-size: 11px;
list-style: none;
}
ul#menu_left li {
display: block;
width: 150px;
height: 30px;
margin: 2px;
}
ul#menu_left li a {
color:#000;
display: block;
line-height: 30px;
text-decoration: none;
text-align: left;
}
ul#menu_left li.active, ul#menu_left li:hover {
background-color: #c9c9c9;
}
ul#menu_header {
font-size: 11px;
margin: 0;
padding: 0;
list-style: none;
}
ul#menu_header li {
background-color: #737373;
display: block;
width: 150px;
height: 30px;
margin: 2px;
float: left; /* elementi su singola riga */
}
ul#menu_header li a {
color: #fff;
display: block;
line-height: 30px;
text-decoration: none;
width: 150px;
height: 30px;
text-align: center;
}
ul#menu_header li.active, ul#menu_header li:hover {
background-color: #b1b1b1;
}
<div id="container">
<div id="header">
<div id="upper_nav">
<ul id="menu_header">
<li class="active">Home</li>
<li>Link11</li>
<li>Link22</li>
<li>Link33</li>
<li>Link44</li>
</ul>
</div>
</div>
<div id="navigation_left">
<ul id="menu_left">
<a hfre="#">links</a>
</ul>
</div>
<div id="content"><p>text</p></div>
<div id="footer"><div id="footer_content">text</div></div>
</div>
Also, I added background-size: cover; to make sure the background image always fills the container
I'm trying to implement this portfolio in this link :
http://www.htmldrive.net/items/demo_show/1258
I download and implement it in my mvc5 project and it works fine,but I have some problem in css and media query used in this portfolio .I want to make some changes in size of images and number of columns when I shrink the browser . in this portfolio all images should be 144x144px in 4 columns but I don't want it . I want bigger images, also I want it worke like bootstrap grid system , but when I shrink the browser columns changed to 1 column.can anyone help me ?
I don't know anything about media query.
2 css files :
/* CSS reset */
body,div,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
margin:0;
padding:0;
}
html,body {
margin:0;
padding:0;
height: 100%;
}
img {
border:0;
}
header{
display: block;
}
/* General Demo Style */
body{
font-family: Arial, Helvetica, sans-serif;
background:url(images/bg.png);
font-size: 14px;
color: #3a2127;
}
a{
color: #333;
text-decoration: none;
}
#container{
position: relative;
}
.clr{
clear: both;
}
#container > header{
padding: 20px 20px 20px 20px;
position: relative;
display: block;
text-align: center;
}
#container > header h1{
position: relative;
color: #275973;
font-weight: 700;
font-style: normal;
font-size: 25px;
padding: 0px 0px 5px 0px;
text-shadow: 0px 1px 1px rgba(255,255,255,0.8);
}
#container > header h1 strong{
font-family: 'Open Sans Condensed','Arial Narrow', Arial, sans-serif;
padding:0px 5px 0px 5px;
line-height:35px;
color:#275973;
font-size:28px;
text-transform: uppercase;
}
#container > header h1 span{
font-family: 'Alegreya SC', Georgia, serif;
font-size: 20px;
line-height: 20px;
display: block;
font-weight: 400;
font-style: italic;
color:#5a99ba;
text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}
/* Buttom Style */
.freshdesignweb-top{
text-align:center;
color:#275973;
line-height: 44px;
font-size: 11px;
background: rgba(0, 0, 0, 0.1);
text-transform: uppercase;
position: relative;
box-shadow: 3px 0px 5px rgba(0,0,0,0.2);
}
.freshdesignweb-top a{
color:#fcca00;
}
.freshdesignweb-top a:hover{
color:#0b2f42;
}
.freshdesignweb-top h1{
margin:0 auto;
width:490px;
background:url(images/logo.png) no-repeat;
font-weight:bold;
font-family: 'Open Sans Condensed','Arial Narrow', Arial, sans-serif;
text-transform: uppercase;
font-size:36px;
text-shadow: 2px 2px 0px #F2F2F2, 1px 2px 0px #B1B1B2;
}
/* Buttom Style */
.freshdesignweb-buttom{
font-family: 'Open Sans Condensed','Arial Narrow', Arial, sans-serif;
color:#009;
line-height: 24px;
font-size: 11px;
background: rgba(0, 0, 0, 0.1);
text-transform: uppercase;
position: relative;
box-shadow: 3px 0px 5px rgba(0,0,0,0.2);
}
.freshdesignweb-buttom a{
padding: 0px 10px;
letter-spacing: 1px;
text-shadow: 0px 1px 1px #fff;
display: block;
float: left;
}
.freshdesignweb-buttom a:hover{
background:#FFF;
}
.freshdesignweb-buttom span.right{
float: right;
font-weight:bold;
}
.freshdesignweb-buttom span.right a{
display: block;
}
.freshdesignweb{
margin:0 auto;
width:650px;
}
/* Portolio Hover */
.da-thumbs li ,
.da-thumbs li img {
display: block;
position: relative;
}
.da-thumbs li {
overflow: hidden;
}
.da-thumbs li article {
position: absolute;
background-image:url(images/image_hover.png);
background-repeat:repeat;
width: 100%;
height: 100%;
}
.da-thumbs li article.da-animate {
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
/* Initial state classes: */
.da-slideFromTop {
left: 0px;
top: -100%;
}
.da-slideFromBottom {
left: 0px;
top: 100%;
}
.da-slideFromLeft {
top: 0px;
left: -100%;
}
.da-slideFromRight {
top: 0px;
left: 100%;
}
/* Final state classes: */
.da-slideTop {
top: 0px;
}
.da-slideLeft {
left: 0px;
}
.da-thumbs li article a {
color:#fff;
padding:20px;
display:block;
}
.da-thumbs {
text-align:center;
}
.da-thumbs li article h3{
color:#fff;
padding-top:30px;
}
.da-thumbs li article em{
margin-bottom:10px;
color:#fff;
display:block;
}
.da-thumbs li article span{
display:inline-block;
}
span.link_post{
display:block;
width:35px;
height:35px;
background-color:#DF6232;
border-radius:50px;
cursor:pointer;
background-image:url(images/link_post_icon.png);
background-repeat:no-repeat;
background-position:center;
margin-right:10px;
}
span.zoom{
overflow:hidden;
display:block;
width:35px;
height:35px;
background-color:#DF6232;
border-radius:50px;
cursor:pointer;
background-image:url(images/zoom_icon.png);
background-repeat:no-repeat;
background-position:center;
margin-left:10px;
}
.portfolio_2col article h3{
padding-top:70px !important;
}
/* Image Grid */
.image_grid {
float:left;
overflow:hidden;
width:700px;
position:relative;
}
.image_grid li{
float: left;
line-height: 17px;
color: #686f74;
list-style:none;
overflow:hidden;
margin-bottom:23px;
margin-right:23px;
text-align:center;
}
/* Responsive image grid*/
/* Mobile landscape width 320 */
#media only screen and (max-width: 767px) {
.image_grid{
width:300px;
}
.image_grid li img{
width:220px;
}
.portfolio_4col .da-thumbs li article h3{
padding-top:70px;
}
.portfolio_3col .da-thumbs li article h3{
padding-top:50px;
}
.portfolio_2col .da-thumbs li article h3{
padding-top:53px !important;
}
}
#media only screen and (min-width: 480px) and (max-width: 767px) {
.image_grid{
width:450px;
}
.image_grid li{
width:178px !important;
}
.portfolio_4col .da-thumbs li article h3{
padding-top:58px;
}
.portfolio_3col .da-thumbs li article h3{
padding-top:34px;
}
.portfolio_2col .da-thumbs li article h3{
padding-top:23px !important;
}
}
You can use the same code and style in the example with larger image.
Delete or Change the width in the below style rules.
.freshdesignweb {
margin: 0 auto;
width: 650px;
}
.image_grid {
float: left;
overflow: hidden;
width: 700px;
position: relative;
}
Issue- properly coded div executes fine in DW, not executing in browser.
Need- to change the bg color on one page only, not globally.
Page in question- www.pointbank.com/testerfile/
I think we have narrowed it down to another CSS file disallowing, preventing, or overriding the execution of the div id=PBredbackground600 - a simple background color command. When isolated in JSFIddle, the PBredbackground600 code works as it should, and in DW it works, but not in browser. There is no background or font change. I have gone thru the default, style, and reset .CSS files, but do not know code well enough to identify the superior code. Page html followed by style.css followed by reset.css followed by defalut.css
Correction- reset.css is not in browser code, leftover from other project, and no call is made for it from this page.
page html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/default.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>PointBank Loans | Denton County Community Bank, Texas</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<meta name="description" content="PointBank has the right financing for personal or business loans at competitive terms." />
<meta name="keywords" content="pointbank loans, pointbank personal loan, pointbank business loan, denton county loan, personal loans denton tx., business loan texas" />
<!-- InstanceEndEditable -->
<link href="/includes/css/default.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 8]>
<link href="/includes/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 6]>
<link href="/includes/css/ie6.css" rel="stylesheet" type="text/css" />
<script src="/includes/js/ddbelatedpng.js"></script>
<script>DD_belatedPNG.fix('img, div, p, a, input');</script>
<![endif]-->
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
<script src="/includes/js/default.js"></script>
<!-- InstanceParam name="showBreadcrumb" type="boolean" value="true" -->
<?php require_once($_SERVER['DOCUMENT_ROOT'].'/includes/php/analytics.php'); ?>
</head>
<body <?php if( $is_homepage ) { echo 'class="homepage"'; } ?>>
<div id="header">
<img src="/images/pointbank.png" width="220" height="92" alt="PointBank - Proudly Serving Denton County, Texas" />
<p id="top">Home | Contact Us | Locations | Online Banking</p>
<?php require_once($_SERVER['DOCUMENT_ROOT'].'/includes/php/menu.php'); ?>
</div>
<div id="online-banking">
<!-- InstanceBeginEditable name="editHeader" --><img src="/images/headers/loans.png" width="704" height="168" alt="Loans at PointBank" /><!-- InstanceEndEditable -->
<?php require_once($_SERVER['DOCUMENT_ROOT'].'/includes/php/online-banking.php'); ?>
</div>
<div id="content">
<?php if( $is_homepage ) { ?>
<?php require_once($_SERVER['DOCUMENT_ROOT'].'/includes/php/homepage.php'); ?>
<?php } else { ?>
<div id="page">
<p id="breadcrumb">Home › <!-- InstanceBeginEditable name="editBreadcrumb" --><span>Loans</span><!-- InstanceEndEditable --></p>
<!-- InstanceBeginEditable name="editContent" -->
<div id="PBredbackground600">
<h2>PointBank Loan Opportunities2</h2>
<p> As the leading Denton County community bank, PointBank has a strong financial foundation that provides us with the lending power we need to work with you on any size loan. With our local decision-making, you will find us <strong>flexible and responsive to your personal or business needs</strong>.</p>
<ul class="icons">
<li><strong><img src="/images/icons/checking-and-savings.png" alt="Personal Loans" width="48" height="48" />Personal Loans</strong><br />
Whatever your unique needs, we have the right financing for personal loans at competitive terms.</li>
<li><strong><img src="/images/icons/mortgage.png" alt="Mortgage Lending" width="48" height="48" />Mortgage Lending</strong><br />
PointBank Mortgage is a full service lender based in Denton County that specializes in Conventional, USDA-Rural Development, FHA and VA loans.</li>
</ul>
<h6>For immediate loan pre-qualification or if you have any preliminary questions before you apply for a loan, call (940) 686-7000.</h6>
</div>
<?php require_once($_SERVER['DOCUMENT_ROOT'].'/includes/php/usa-patriot-act.php'); ?>
<!-- InstanceEndEditable -->
</div>
<div class="sidebar">
<!-- InstanceBeginEditable name="editSidebar" -->
style.css
a:hover {
text-decoration:none;
}
a {
text-decoration:none;
}
#interface1 {
z-index:1;
}
#loader_container {
text-align:center;
position:absolute;
top:40%;
width:100%}
#loader {
font-family:Tahoma, Helvetica, sans;
font-size:10px;
color:#000000;
background-color:#FFFFFF;
padding:10px 0 16px 0;
margin:0 auto;
display:block;
width:135px;
border:1px solid #6A6A6A;
text-align:left;
z-index:255;
}
#progress {
height:5px;
font-size:1px;
width:1px;
position:relative;
top:1px;
left:10px;
background-color:#9D9D94
}
#loader_bg {
background-color:#EBEBE4;
position:relative;
top:8px;left:8px;height:7px;
width:113px;font-size:1px
}
.border_preview{
z-index:100;
position:absolute;
background: #fff;
border: 1px solid #444;
}
.preview_temp_load {
vertical-align:middle;
text-align:center;
padding: 10px;
}
.preview_temp_load img{
vertical-align:middle;
text-align:center;
}
/*Image Title Styling*/
.title_h2 {
padding:12px 0 0 18px;
}
h2 {
font-size:14px;
padding:0;
margin:0;
font-family: "century gothic";
}
reset.css
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
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, 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,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, main {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
default.css
#charset "utf-8";
/* Copyright MMXI PointBank. All rights reserved. */
/* RESET */
*, body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, ul li, ol li, blockquote, form, fieldset, legend, object, param, hr {
margin: 0;
padding: 0;
}
ul, ol {
list-style-type: none;
}
img {
border-style: none;
border-width: 0;
}
span.skype_pnh_container {
display: none !important;
}
span.skype_pnh_print_container {
display: inline !important;
}
/* BODY */
body {
font: normal 14px/22px Arial, Helvetica, sans-serif;
background: #b9cbcd url(/images/overall-background.jpg) no-repeat center top;
}
/* HEADER */
#header {
width: 960px;
height: 92px;
margin: 0 auto;
background: url(/images/header-background.png) repeat-y center top;
overflow: hidden;
}
#header img {
float: left;
}
#header p {
text-align: right;
margin-right: 30px;
}
#header p#top a {
font: normal 12px/42px Arial, Helvetica, sans-serif;
color: #333;
text-decoration: none;
}
#header p#top a:hover {
color: #a80532;
}
#header p#top span.font-chooser {
font: normal 12px/42px Arial, Helvetica, sans-serif;
color: #333;
padding-left: 8px;
}
#header p#top span.font-chooser img {
float: none;
display: inline;
vertical-align: -3px;
margin-left: 2px;
}
#header p#menu a {
font: bold 12px/50px Arial, Helvetica, sans-serif;
color: #fff;
text-decoration: none;
margin: 0 8px;
}
#header p#menu a:hover {
color: #222;
}
/* ONLINE BANKING */
#online-banking {
width: 960px;
margin: 0 auto;
background: url(/images/content-background.png) repeat-y center top;
overflow: hidden;
}
.homepage #online-banking {
background: url(/images/content-background-homepage.png) repeat-y center top;
}
#online-banking img {
float: left;
}
#online-banking div {
float: left;
overflow: hidden;
width: 256px;
height: 100px;
padding-top: 68px;
background: url(/images/a-better-way-to-bank.png) no-repeat center top;
}
.homepage #online-banking div {
width: 242px;
height: 152px;
padding-top: 100px;
background: url(/images/a-better-way-to-bank-homepage.png) no-repeat center top;
}
#online-banking div input.user-id {
font: normal 14px/22px Arial, Helvetica, sans-serif;
width: 190px;
padding: 2px 4px;
margin-bottom: 2px;
color: #555;
}
#online-banking div input.sign-in {
margin: 0 auto;
text-align: center;
text-indent: -9999px;
float: none;
width: 98px;
height: 24px;
padding: 0;
background: url(/images/button-sign-in.jpg) no-repeat 0 0;
font-size: 0;
line-height: 0;
border: none 0;
background-color: transparent;
}
#online-banking div input.sign-in:hover {
background-position: 0 -24px;
cursor: pointer;
}
#online-banking div p {
font-size: 12px;
margin-left: 22px;
}
.homepage #online-banking div p {
margin-left: 10px;
}
#online-banking div p a {
color: #fff;
}
#online-banking div p.submit {
line-height: 24px;
margin-bottom: 6px;
}
.homepage #online-banking div p.submit {
margin-bottom: 18px;
}
#online-banking div p.submit a {
margin-right: 6px;
vertical-align: -4px;
color: #eee;
}
#online-banking div p.sign-up {
overflow: hidden;
line-height: 18px;
color: #eee;
margin-left: 18px;
}
.homepage #online-banking div p.sign-up {
margin-left: 6px;
margin-bottom: 8px;
}
#online-banking div p.sign-up a {
background: url(/images/icons/sign-up.jpg) no-repeat 0 1px;
float: left;
padding-left: 20px;
margin-right: 5px;
}
.homepage #online-banking div p.information {
margin-left: 56px;
font-size: 13px;
}
.homepage #online-banking div#flash {
overflow: hidden;
display: block;
float: left;
width: 718px;
height: 252px;
padding: 0;
background: url(/images/blank.gif) no-repeat 0 0;
}
/* CONTENT */
#content {
width: 900px;
margin: 0 auto;
padding: 0 0 0 60px;
background: url(/images/content-background.png) repeat-y center top;
overflow: hidden;
}
.homepage #content {
background: url(/images/content-background-homepage.png) repeat-y center top;
}
#content #page {
float: left;
width: 600px;
overflow: hidden;
}
#content a {
color: #222;
}
#content a:hover {
color: #a80532;
}
#content h1 {
font: bold 26px/36px Arial, Helvetica, sans-serif;
margin: 0 0 10px 0;
color: #a80532;
}
#content h2 {
font: bold 18px/32px Arial, Helvetica, sans-serif;
margin: 0 0 10px 0;
color: #a80532;
}
#content h3 {
font: bold 18px/32px Arial, Helvetica, sans-serif;
margin: 0 0 10px 0;
color: #a80532;
}
#content h3 a {
color: #a80532;
text-decoration: none;
}
#content h4 {
font: bold 16px/32px Arial, Helvetica, sans-serif;
margin: 0 0 10px 0;
color: #222;
}
#content h5 {
font: bold 14px/32px Arial, Helvetica, sans-serif;
margin: 0 0 10px 0;
color: #222;
}
#content h5.border {
border-bottom: solid 1px #bbb;
margin-bottom: 20px;
}
#content h6 {
font: bold 18px/26px Arial, Helvetica, sans-serif;
color: #a80532;
}
#content h6 a {
color: #a80532;
}
#content h6 a:hover {
color: #222;
}
.homepage #content h6 {
color: #222;
}
.homepage #content h6 a {
color: #222;
}
.homepage #content h6 a:hover {
color: #a80532;
}
#content p {
margin: 0 0 20px 0;
}
#content p#breadcrumb {
font: normal 12px/20px Verdana, Arial, Helvetica, sans-serif;
color: #666;
margin: 0 0 10px 0;
}
#content p#breadcrumb a {
color: #666;
}
#content p#breadcrumb a:hover {
color: #333;
}
#content p#breadcrumb span {
font-weight: bold;
}
#content p#branches {
overflow: hidden;
padding-top: 10px;
margin-bottom: 0;
}
#content p#branches.about-us {
width: 600px;
text-align: center;
}
#content p#branches.about-us img {
width: 62px;
height: 76px;
}
#content p#branches.about-us a {
width: 62px;
margin-right: 4px;
}
#content p#branches img {
margin-bottom: 4px;
}
#content p#branches a {
display: block;
float: left;
overflow: hidden;
width: 85px;
color: #a80532;
font-size: 12px;
margin-right: 9px;
text-decoration: none;
line-height: 18px;
text-align: center;
}
#content p#branches a.end {
margin-right: 0;
}
#content p#branches a:hover {
color: #222;
}
#content p#branches strong {
display: block;
clear: both;
overflow: hidden;
font-weight: normal;
}
#content p#branches-text {
margin: 0 350px 0 0;
padding-top: 20px;
font-size: 10px;
color: #999;
}
#content p#branches-text a {
color: #999;
}
#content p.buttons {
overflow: hidden;
text-align: center;
}
#content p.buttons img {
float: left;
}
#content p.buttons img.left {
margin-left: 12px;
}
#content p.form-security {
padding: 6px;
overflow: hidden;
border: solid 1px #ffcece;
background: #ffe6e6 url(/images/icons/alert.png) no-repeat 12px 16px;
padding-left: 54px;
margin-left: 180px;
}
#content p.form-alert {
padding: 6px;
overflow: hidden;
border: 1px solid #fc6;
background: #ffc url(/images/icons/alert.png) no-repeat 12px 16px;
padding-left: 54px;
margin-bottom: 30px;
}
#content p.postmetadata {
font-size: 13px;
color: #999;
margin-bottom: 10px;
}
#content p.postmetadata a {
color: #666;
}
#content p.postmetadata a:hover {
color: #222;
}
#content blockquote, #content ul, #content ol {
margin: 0 40px 20px 40px;
}
#content li {
margin-bottom: 10px;
}
#content ul {
list-style-type: disc;
}
#content ul li ul {
padding-top: 10px;
margin-bottom: 0;
}
#content ul.icons, #content ol.icons {
list-style-type: none;
margin-left: 20px;
}
#content ul.icons li, #content ol.icons li {
overflow: hidden;
margin-bottom: 30px;
}
#content ul.icons.small li {
overflow: hidden;
margin-bottom: 10px;
}
#content ul.icons li ul {
margin-left: 100px;
}
#content ul.icons li img, #content ol.icons li img {
float: left;
margin: 0 20px 0 0;
vertical-align: 20px;
}
#content ul.icons.small li img {
margin: 0 10px 0 0;
}
#content ol {
list-style-type: decimal;
}
#content blockquote.quote {
background: url(/images/quote-left.jpg) no-repeat 0 0;
padding: 8px 0px 0 30px;
}
#content blockquote.quote p.end {
background: url(/images/quote-right.jpg) no-repeat right bottom;
padding: 8px 15px 0 15px;
margin-bottom: 10px;
}
#content blockquote.quote p.by {
text-align: right;
margin-bottom: 0;
font-size: 13px;
color: #666;
}
#content hr {
height: 1px;
background-color: #A80532;
margin-bottom: 20px;
border: none 0;
}
#content .post {
border-bottom: solid 1px #bbb;
margin-bottom: 30px;
padding-bottom: 10px;
overflow: hidden;
}
#content .read-more {
overflow: hidden;
}
#content .read-more a {
display: block;
float: right;
font-size: 13px;
font-weight: bold;
color: #a80532;
margin-right: 20px;
padding-right: 16px;
background: url(/images/arrow.jpg) no-repeat right 4px;
}
#content .read-more a:hover {
color: #222;
background-position: right -40px;
}
#content .navigation {
overflow: hidden;
}
#content .alignright a {
display: block;
float: right;
font-size: 13px;
font-weight: bold;
color: #a80532;
padding-right: 16px;
background: url(/images/arrow.png) no-repeat right 4px;
}
#content .alignright a:hover {
color: #222;
background-position: right -40px;
}
#content .alignleft a, #content .sidebar p.return a {
display: block;
float: left;
font-size: 13px;
font-weight: bold;
color: #a80532;
padding-left: 16px;
background: url(/images/arrow-left.png) no-repeat left 4px;
}
#content .alignleft a:hover, #content .sidebar p.return a:hover {
color: #222;
background-position: left -40px;
}
#content #page ol.commentlist { list-style-type:none; margin:0; padding:0; }
#content #page ol.commentlist li { border-bottom:1px solid #ccc; margin:0 0 10px; padding:5px 7px 5px 64px; position:relative; list-style-type:none; }
#content #page ol.commentlist li.pingback comment-author { padding:0 170px 0 0; }
#content #page ol.commentlist li div.vcard { font-weight:bold; font-size: 14px; line-height: 16px; }
#content #page ol.commentlist li div.vcard cite.fn { font-style:normal; font-size: 11px; }
#content #page ol.commentlist li div.vcard cite.fn a.url { color:#333; text-decoration:none; }
#content #page ol.commentlist li div.vcard cite.fn a.url:hover { color:#000; }
#content #page ol.commentlist li div.vcard img.avatar { background: #fff; border:1px solid #aaa; padding: 5px; left:7px; position:absolute; top:7px; }
#content #page ol.commentlist li div.comment-meta { font-weight:normal; font-size: 10px; line-height: 16px; position:absolute; right:10px; text-align:right; top:5px; }
#content #page ol.commentlist li div.comment-meta a { color:#999; text-decoration:none; }
#content #page ol.commentlist li p { font-weight:normal; font-size: 14px; margin:5px 0 12px; }
#content #page ol.commentlist li ul { font-weight:normal; font-size: 14px; margin:0 0 12px; padding:0; list-style-type:none; }
#content #page ol.commentlist li div.reply a { color:#333; text-decoration:none; font-size: 11px; font-weight: bold; }
#content #page ol.commentlist li ul.children { list-style:none; margin:12px 0 0; text-indent:0; border-top:1px solid #ccc; border-bottom:0 none; }
#content #page ol.commentlist li ul.children li { border-bottom:0 none; }
#content #page ol.commentlist li ul.children li.depth-2 { margin:0 0 3px; }
#content #page ol.commentlist li ul.children li.depth-3 { margin:0 0 3px; }
#content #page ol.commentlist li ul.children li.depth-4 { margin:0 0 3px; }
#content #page ol.commentlist li ul.children li.depth-5 { margin:0 0 3px; }
#content #page ol.commentlist ul.children li.odd { background:#efefef; }
#content #page ol.commentlist ul.children li.even { background:#f8f8f8; }
#content #page ol.commentlist li.pingback div.vcard { padding:0 170px 0 0; }
#content #page ol.commentlist .says { display: none; }
#content #page #respond { margin:0 0 10px; padding:0; position:relative; list-style-type:none; }
/* SIDEBAR */
#content .sidebar {
float: left;
width: 270px;
margin: 0 0 0 30px;
padding-top: 34px;
overflow: hidden;
}
#content .sidebar h3, #content .sidebar ul {
margin: 0 15px;
}
#content .sidebar p.center {
margin-right: 30px;
}
#content .sidebar p.return, #content .sidebar p.feed {
margin-left: 15px;
overflow: hidden;
}
#content .sidebar p.feed a {
background: url(/images/icons/feed.gif) no-repeat 0 0;
padding-left: 22px;
line-height: 18px;
font-weight: bold;
font-size: 13px;
}
#content .sidebar h3 {
color: #222;
margin-bottom: 10px;
}
#content .sidebar h3 a {
color: #222;
text-decoration: none;
}
#content .sidebar h3 a:hover {
color: #a80532;
}
#content .sidebar ul {
margin-right: 50px;
margin-bottom: 40px;
list-style-type: none;
border-bottom: solid 1px #ccc;
}
#content .sidebar ul li {
border-top: solid 1px #ccc;
padding-top: 8px;
}
#content .sidebar ul li a {
color: #222;
text-decoration: none;
margin-left: 8px;
overflow: hidden;
display: block;
}
#content .sidebar ul li a:hover {
color: #a80532;
}
#content .sidebar ul.blog_bookmark {
width: 100px;
float: left;
margin: 0 0 30px 15px;
padding: 0;
border: none 0;
}
#content .sidebar ul.blog_bookmark li {
padding: 0;
margin: 0;
border: none 0;
}
#content .sidebar ul.blog_bookmark li a {
margin: 0;
padding-left: 28px;
padding-top: 7px;
padding-bottom: 6px;
background-repeat: no-repeat;
background-position: 0px 3px;
font-size: 12px;
}
#content .sidebar ul.blog_bookmark li.feed a {
background-image: url(/images/icons/bookmarks/feed.png);
}
#content .sidebar ul.blog_bookmark li.delicious a {
background-image: url(/images/icons/bookmarks/delicious.png);
}
#content .sidebar ul.blog_bookmark li.google a {
background-image: url(/images/icons/bookmarks/google.png);
}
#content .sidebar ul.blog_bookmark li.technorati a {
background-image: url(/images/icons/bookmarks/technorati.png);
}
#content .sidebar ul.blog_bookmark li.yahoo a {
background-image: url(/images/icons/bookmarks/yahoo.png);
}
#content .sidebar ul.blog_bookmark li.live a {
background-image: url(/images/icons/bookmarks/live.png);
}
/* FOOTER */
#footer {
width: 880px;
margin: 0 auto;
padding: 60px 40px 20px 40px;
background: url(/images/footer-background.png) no-repeat center top;
}
.homepage #footer {
background: url(/images/footer-background-homepage.png) no-repeat center top;
}
/* MISC. CLASSES */
img.right {
margin: 0 0 20px 20px;
padding: 1px;
border: solid 1px #ddd;
float: right;
}
img.right.noborder {
border: none 0;
}
img.alignright {
float: right;
margin: 0 0 20px 20px;
}
img.alignleft {
float: left;
margin: 0 20px 20px 0;
}
p.center {
text-align: center;
}
p.right {
text-align: right;
}
div.link {
height: 200px;
text-align: center;
}
.underline {
text-decoration: underline;
}
.redbackground {
background: url(/images/backgournd3.jpg) no-repeat center top;
color: #0F0;
}
.redbackground280x280 {
background: url(/images/OFFICIAL_Red_Background_280x280.jpg) no-repeat center top;
color: #0F0;
}
.red {
color: #0F0;
}
.gray {
background-color: #999;
color: #fff;
}
.half {
float: left;
width: 300px;
}
.half.left {
width: 290px;
margin-right: 20px;
}
.half.right {
width: 290px;
}
.half.gray {
width: 278px;
padding: 10px 0 0 10px;
margin-right: 10px;
background-color: #efefef;
border: solid 1px #eee;
-moz-border-radius: 6px;
border-radius: 6px;
}
.half.triplegray {
width: 170px;
padding: 10px 0 0 10px;
margin-right: 10px;
background-color: #efefef;
border: solid 1px #eee;
-moz-border-radius: 6px;
border-radius: 6px;
}
.table td {
padding: 8px;
border-bottom: solid 1px #888;
}
.privacy td {
border-bottom: solid 1px #999;
}
#content .privacy h2, #content .privacy h3 {
color: #000;
}
.table .total td {
border-bottom: none 0;
}
#content .sidebar form#searchform {
margin-bottom: 20px;
overflow: hidden;
}
form.form p {
overflow: hidden;
}
form.form .submit input.print {
background: url(/images/button-print.jpg) no-repeat 0 0;
}
#content #page form#commentform input#submit {
margin-left: 0;
}
#content .sidebar input#searchsubmit {
margin-left: 122px;
background-image: url(/images/button-search.png);
}
form.form .submit input:hover, #content #page form#commentform input#submit:hover, #content .sidebar input#searchsubmit:hover {
background-position: 0 -24px;
cursor: pointer;
}
#BuzzYellow {
color: #F90;
<!-- added these classes for thumbnail mouseover expanison/popup on 6-1-2013 see http: //jsfiddle.net/pJJHe/1/ for further explanation-->
.thumbnails {
padding: 35px;
}
.thumbnail {
float:left;
position:relative;
width: 70px;
margin-right: 10px;
}
.thumbnail img {
/* ... */
width:70px;
height:50px;
}
div>div {
width:20%;
float:left; /* display: inline-block; */
min-width:100px;
}
#PBredbackground900 {
background-image:url(/images/PB_Red_Background_900wide.png) ;
}
#PBredbackground600 {
background-color:#80FF00
font-family: "Comic Sans MS", cursive
}
It appears your css declarations are not being separated by a ; which would cause them to be ignored:
#PBredbackground600 {
background-color:#80FF00 <----------- missing ';'
font-family: "Comic Sans MS", cursive <----------- missing ';'
}
change to:
#PBredbackground600 {
background-color:#80FF00;
font-family: "Comic Sans MS", cursive;
}
UPDATE
It might be this area in default.css:
#BuzzYellow {
color: #F90;
<!-- added these classes for thumbnail mouseover expanison/popup on 6-1-2013 see http:
For one #BuzzYellow is not closed (missing }) and secondly <!-- is a comment in HTML not CSS. For CSS you need to use:
.class{
/*this is a comment*/
}
Try fixing that. #PBredbackground600 has no recognition in the DOM which usually means there is an error above it in the stylesheet with unclosed rules or incorrect syntax
I am using #media to have certain styles for devices. However, it is having issue for tablets and phones. I am currently using a S3 and a hd 7 memo pad tablet to test the responsive aspect of my website. when I am on landscape mode on the S3, the content is not stacked on each other. This feature I would like to have for the tablet but however it does not do it when the tablet is on landscape mode. I would like to know what I am doing wrong. Another issue I am having is the footer. When I am on my tablet, phone, or laptop, there is weird spacing when browser shrinks. I would like to know how to fix the issue. Thank You
/***********************
GENERAL
***********************/
a {
text-decoration: underline;
}
a:hover {
text-decoration: underline;
}
img {
max-width: 100%;
}
body {
/*font-family: 'Fabrica', 'Courier New';*/
font-family: 'Open Sans', sans-serif;
background-color:#e6e9ed;
color: #434a54;
}
#wrapper{
max-width:960px;
margin: 0 auto;
background-color: #f5f7fa;
overflow: auto; /*This fixed the wrapper background color problem that happened bc floating content*/
line-height: 1.8em;
}
#wrapper img {
border-radius:5px 20px 5px;
}
#wrapper p {
text-indent: 2.5em;
}
#banner {
margin-left: auto;
margin-right:auto;
padding: 0;
display:block;
clear:both;
}
#content {
padding:20px 40px;
padding-bottom:50px;
}
h1, h2, h3 {
font-family: 'Droid Serif', serif;
}
.selected {
color:#0B108C;
text-decoration: none;
}
/***********************
HEADER - Top image strip above banner
***********************/
#logo {
text-align:right;
max-height:100%;
max-width:100%;
padding: 10px 0px 10px 30px;
}
#header {
background-image: url(../img/header.jpg);
background-repeat: no-repeat;
background-position: top;
margin: 0 auto;
max-width:960px;
}
/*Commented out for testing new header technique
#header {
margin-left: auto;
margin-right: auto;
padding: 0;
display: block;
clear: both;
font-family: 'Fabrica', Arial;
}
*******/
/***********************
NAVIGATION - Main site navigation
***********************/
nav{
background-color:#4888dc;
text-align:center;
color:blue;
max-width:960px;
margin: 0 auto;
text-align:center;
font-size:1.2em;
}
nav ul{
list-style:none;
margin:0 10px; /*Can be change later on in the design if it doesn't work*/
}
nav li{
/*Inline, mostly text. Appears in the same line, inline as the rest of the text. Block
pushes other items out of the page. Inline block maintains width and
height but is in line with other images*/
display:inline-block;
list-style:none;
padding: .4em 1.5em;
}
nav a {
font-weight: 800;
}
nav a:visited, nav a:link {
color:#f5f7fa;
text-decoration: none;
}
nav a:hover {
color:#0B108C;
text-decoration: none;
}
nav ul li a.selected { /*Highlights current page for users*/
color:#0B108C;
}
/**********************
FOOTER
**********************/
footer {
font-family: 'Open Sans', sans-serif;
max-width:950px;
background-color:#434a54;
font-size:0.75em;
clear:both;
color:#e6e9ed; overflow:auto;
margin: 0 auto;
padding:5px;
}
footer h3{
padding-left: .9em;
font-family: 'Open Sans', sans-serif;
}
footer ul {
display:inline-block;
list-style-type: none;
}
footer ul li{
list-style:none;
text-decoration:none;
margin-left: 1em;
}
footer ul li a{
color:#e6e9ed;
text-decoration:none;
}
footer a:hover {
color:#FFFFFF; /*Change hover color to make it more prominent*/
}
/**********************
RIGHT SIDE OF FOOTER
**********************/
#footer-right {
float:right;
margin-right:15px;
}
.social-icon {
display:inline-block;
width:24px;
height:24px;
margin-bottom:22.7px; /*controls height of "follow us" in footer*/
padding:1px;
border-radius: 20%;
}
/**********************
LEFT SIDE OF FOOTER
**********************/
#footer-left {
float:left;
padding-left: 2em;
text-align:left;
font-size: 1.35em;
display:inline-block;
line-height: 1.5em;
}
#footer-slogan {
font-family: 'Georgia', 'Droid Serif', sans-serif;
}
#copyright{
font-size: .75em;
text-align:left;
margin-top: 5px;
display:inline-block;
font-family: 'Open Sans', sans-serif;
}
/***********************
CONTENT TEMPLATE - Content template for all other pages
***********************/
/*Responsive.css*/
/*This is the placeholder for responsive CSS that we will implement for mobile design*/
/* Smartphones ----------- */
#media screen and (max-width: 519px){
/* Styles */
#content{
float:none;
padding:0;
width: auto;
}
img{
max-width: 100%;
height: auto;
width:auto\9; /*for ie8*/
}
body{
float:left;
font-family: 'Fabrica';
}
#logo {
margin-right:auto;
max-width: 100%;
height: auto;
padding: 0;
}
#wrapper{
margin: 0 auto;
}
#wrapper p{
text-indent: 0;
}
h1, h2, h3 {
font-family: 'Fabrica';
}
nav{
position: relative;
min-height: 40px;
}
nav ul{
position:absolute;
width: 180px;
padding: 5px,0;
top: 0;
left: 0;
border: solid 1px #aaa;
background: #fff url(../img/menu-bar-mobile.jpg) no-repeat 10px 11px;
border-radius: 5px;
box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
nav ul:hover li{
display: block;
margin: 0 0 5px;
}
nav a:hover {
display:block;
}
nav li{
display:none;
margin:none;
}
#banner{
display: none;
}
footer{
font-family: 'Fabrica';
float:left;
}
}
/*Ipads and Tablets*/
#media screen and (min-width:520px) and (max-width: 959px) and (orientation: landscape){
footer{
font-family: 'Fabrica';
float: left;
}
body{
font-family: 'Fabrica';
}
#primary {
width: 55%;
float: left;
padding:10px;
}
#secondary {
width: 30%;
float: right;
padding:10px;
}
}
/* Desktops and laptops ----------- */
#media screen and (min-width: 1200px){
/* Styles */
#primary {
width: 55%;
float: left;
padding:10px;
}
#secondary {
width: 30%;
float: right;
padding:10px;
}
}
/*************************************
TWO COLUMN LAYOUT
Will target anything larger than average smartphone.
This is helpful for normal sized tablets, very large smartphones, and very small desktop windows.
***************************************/
#font-face {
font-family: 'Fabrica';
font-style: normal;
font-weight: 100;
src: local('Fabrica'), local('Fabrica'), url(path/Fabrica.otf) format('otf');
}
Looking at the media query that targets the landscape orientation, the only two elements it mentions (other than the footer), are the ones with id=primary and id=secondary. One of these is floated right, the other floated left, so they won't stack - this will cause them to float to opposite sides of the screen.
In your media query remove the floating and make sure they are both display:block - then they will stack one above the other. (Note: I assume you only have one each of the #primary and #secondary elements, since an id can only be used once on a page).