for some reason I was able to add a code where my sidebar image has around spinning border and it works, but now on Tumblr my photo post are small and round like the sidebar image - I tried to go to the code and see if any code was linked together to make the post resize like the sidebar but found nothing
/* ------ text styles ------ */
body { background:{color:background}; margin:0px; font-weight:500; color:{color:text}; font-family:'ABeeZee', sans-serif; font-size:10px; line-height:16px; letter-spacing:.5px; text-align:justify; background-image:url('{image:Background}'); }
a { text-decoration:none; color:{color:links}; -moz-transition-duration:1s; -webkit-transition-duration:1s; -o-transition-duration:1s; }
a:hover { color:{color:text}; background:transparent; -moz-transition-duration:1s; -webkit-transition-duration:1s; -o-transition-duration:1s; }
b, strong { color:{color:bold}; font-weight:700; }
em, i { color:{color:italic}; font-weight:600; }
i:hover { background:transparent; }
strike { color:{color:italic}; }
small { font-size:10px; }
big { color:{color:title}; font-weight:600; font-variant:small-caps; letter-spacing:2px; }
sup { text-transform:normal; color:{color:text}; font-size:10px; }
sub { text-transform:normal; color:{color:text}; font-size:10px; }
blockquote { margin-left:5px; padding-left:10px; width:245px; border-left:1px solid {color:background}; }
blockquote blockquote { padding-left:10px; width:230px; border-left:1px solid {color:background}; }
h1 { color:{color:bold}; font-size:8px; letter-spacing:2px; text-transform:uppercase;font-family:'ABeeZee', sans-serif; font-style:none; line-height:10px; text-align:left; padding:0px; }
h2 { text-align: center; font-size:11px; letter-spacing:.5px; text-transform:lowercase; font-style:none; font-weight:400; line-height:14px; text-align:normal; padding:0px; }
h3 { font-family:'cooper'; font-size:26px; line-height:24px; text-align:center; text-transform:lowercase; font-weight:400; letter-spacing:0px; margin-top:5px; color:{color:italic}; }
/* ------ captions ------ */
.tumblr_parent { margin:10px 10px 20px; padding: 0px 10px; border-left: 0px solid #ccc; font-size:7px; }
.tumblr_parent:after { content:''; display:block; width:100%; height:1px; margin:15px auto; background:{color:border}; }
.tumblr_parent:last-of-type:after { display:none; }
.tumblr_parent blockquote { margin-left:20px; padding-left:20px; border-left: 2px solid #ccc; }
.tumblr_avatar { margin:0px 6px 0px 0px; width:12px; vertical-align:middle; padding:2px; border-radius:50%; border:1px solid #ddd; background:black; }
a.tumblr_blog { border-bottom:2px solid {color:background}; font-weight:700; text-transform:uppercase; font-size:8px; letter-spacing:1px; padding:3px; border-radius:2px; }
.caption { padding:0px 10px 0px 10px; }
/* ------ images/videos ------ */
img { border:none; max-width:100%; height:auto; border-radius:2px; -webkit-filter:grayscale(50%); -moz-transition-duration:1s; -webkit-transition-duration:1s; -o-transition-duration:1s; }
img:hover { -webkit-filter:grayscale(0%); -moz-transition-duration:1s; -webkit-transition-duration:1s; -o-transition-duration:1s; }
resize { width: 300px; height:auto; }
#posts img { -webkit-filter:grayscale(50%); -moz-transition-duration:1s; -webkit-transition-duration:1s; -o-transition-duration:1s; }
.photoset { width:100%; border-radius:2px; -webkit-filter:grayscale(50%); -moz-transition-duration:1s; -webkit-transition-duration:1s; -o-transition-duration:1s; }
#posts img:hover { -webkit-filter:grayscale(0%); -moz-transition-duration:1s; -webkit-transition-duration:1s; -o-transition-duration:1s; }
.photoset:hover { max-width:100%; -webkit-filter:grayscale(0%); -moz-transition-duration:1s; -webkit-transition-duration:1s; -o-transition-duration:1s; }
/* ------ body ------ */
#contain { background:{color:contain}; width:700px; height:600px; margin:auto; left:0px; right:0px; top:0px; bottom:0px; position:absolute; border-radius:2px; overflow:visible; z-index:1; background-image:url('{image:contain}'); background-blend-mode:soft-light; }
#entries { width:340px; height:680px; border-radius:2px; bottom:-40px; right:40px; font-size:10px; position:absolute; font-family:'ABeeZee', sans-serif; overflow-x:hidden; overflow-y:auto; letter-spacing:0px; }
#post { margin:auto; top:0px; right:0px; bottom:0px; left:0px; width:300px; background: {color:postbg}; padding:20px; position:relative; border-radius:2px; margin-bottom:30px; margin-top:0px; }
#post i,em { color:{color:italic}; }
#post strong { color:{color:bold}; text-shadow:0px 0px 2px {color:bold}; }
/* ------ sidebar ------ */
.sidebar { position:absolute; left:0px; bottom:0px; width:320px; height:600px; overflow:hidden; }
img {
position: relative;
left: 107px;
top: 32px;
border-radius: 50%;
width: 110px;
height: 110px;
}
.image {
position: absolute;
left: 99px;
top: 24px;
width: 110px;
height: 110px;
border-radius: 50%;
-webkit-filter: grayscale(0%);
border-radius: 100%;
border: 8px solid c5c6cc;
border: 8px dashed #c49683;
animation-name: spinning-circle;
animation-duration: 20s;
animation-iteration-count: infinite;
width: 110px;
height: 110px;
outline-color: #EA3556;
}
#-webkit-keyframes spinning-circle {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.title { position:absolute; top:170px; right:-30px; width:350px; height:auto; padding:10px; letter-spacing:-2px; font-size:40px; line-height:26px; text-align:center; color:#686868; font-family:'bambi'; font-weight:800; text-shadow:4px -3px #c49683; text-transform:lowercase; font-style:normal; z-index:1; -webkit-text-stroke: 1px #686868; -webkit-text-fill-color: rgba(0, 0, 0, 0); }
.navbar { position:absolute; top:234px; left:0px; overflow:visible; width:320px; height:5px; text-align:center; z-index:99999999999; }
ul.navig8 { position:absolute; overflow:visible; list-style-type:none; padding:0; width:320px; height:40px; top:8px; left:0px; z-index:999999999; text-transform:uppercase; text-align:center; }
ul.navig8 li { width:auto; display:inline; margin:5px; }
ul.navig8 li a { display:inline-block; color:{color:nav text}; letter-spacing:3px; font-size:7px; padding:3px; font-weight:600; }
ul.navig8 li b { color:{color:bold}; }
.desc { position:absolute; width:210px; line-height:18px; height:226px; bottom:86px; left:50px; overflow-y:scroll; overflow-x:visible; font-size:9px; padding:5px; color:{color:desc text}; text-transform:lowercase; font-family:'ABeeZee', sans-serif; letter-spacing:.5.5px; text-align:justify; z-index:9999; text-shadow:none; }
.desc:hover { opacity:1; }
.desc b, strong { color:{color:italic}; font-size:12px; font-weight:500; text-transform:lowercase; font-variant:none; font-family:'coco'; text-shadow:0px 0px 2px {color:italic}; }
.desc i, em { color:{color:italic}; text-shadow:none; }
.desc a { color:{color:italic}; text-shadow:0px 0px 2px {color:italic}; }
.desc strong { font-size:16px; font-family:'cooper'; letter-spacing:1px; }
/* ------ pagination ------ */
#pagination { width:310px; position:absolute; height:14px; padding:5px; padding-top:3px; margin:auto; bottom:46px; left:0px; word-spacing:20px; text-align:center; color:{color:text}; z-index:999; }
#pagination a { padding:5px; padding-left:8px; color:{color:nav text}; font-weight:bold; letter-spacing:5px; font-size:7px; border-radius:2px; }
It's happen for this code -
img {
position: relative;
left: 107px;
top: 32px;
border-radius: 50%;
width: 110px;
height: 110px;
}
Replace it with this code -
.sidebar img {
position: relative;
left: 107px;
top: 32px;
border-radius: 50%;
width: 110px;
height: 110px;
}
I'm making a responsive demo website and i'm having trouble with the medium resolution as when i put the css for it in my style sheet the high res no longer works. anyone know why that is/ how to fix it? My code below:
#charset "utf-8";
/* CSS Document */
/* low res or phone */
#media only screen and (max-width: 480px) {
.LoginStuff li
{
display: inline;
float: right!important;
position:relative;
top: -50px;
right: 10px;
}
.reg1 a
{
border-radius: 0px 3px 3px 0px;
border-left-width: 1px;
border-left-style:solid;
border-left-color:#ce542c;
padding: 5px 5px;
font-size:15px;
font-family:Arial;
font-weight:bold;
color: #fff;
background-color:#f7cf1c;
text-decoration:none;
}
.log1 a
{
border-radius: 3px 0px 0px 3px;
border-right-width: 0.5px;
border-right-style:solid;
border-right-color:#ce542c;
padding: 5px 12px;
font-size:15px;
font-family:Arial;
font-weight:bold;
color: #fff;
background-color:#f7cf1c;
text-decoration:none;
}
.nav
{
visibility: hidden;
}
/*start menu*/
.clearfix a
{
background-color:#f7cf1c;
margin-right:auto;
margin-left:auto;
width:277px;
height:30px;
position:relative;
left: -34px;
}
.AMenu
{
margin-right:auto;
margin-left:auto;
padding-left: 100px;
position:relative;
left:35px;
}
.menu-wrap
{
width:100%;
background-color:#f7cf1c;
align-content:center;
margin-right:auto;
margin-left:auto;
}
.menu
{
width:100%;
height:40px;
background-color:#f7cf1c;
position:relative;
margin-left:auto;
margin-right:auto;
}
.menu li {
margin:0px;
text-decoration:none;
list-style:none;
font-family:"Alfa Slab One";
margin-right:auto;
margin-left:auto;
}
.menu a {
transition:all linear 0.15s;
text-decoration:none;
color:#fff;
margin-right:auto;
margin-left:auto;
}
.menu .arrow {
font-size:11px;
line-height:0%;
}
/*----- Top Level -----*/
.menu > ul > li {
display:inline-block;
position:relative;
font-size:19px;
}
.menu > ul > li > a {
padding:10px 40px;
display:inline-block;
}
/*----- Bottom Level -----*/
.menu li:hover .sub-menu {
z-index:1;
opacity:1;
}
.menu li:active .sub-menu {
z-index:1;
opacity:1;
}
.sub-menu {
width:160%;
padding:5px 0px;
position:absolute;
top:100%;
left:0px;
z-index:-1;
opacity:0;
transition:opacity linear 0.15s;
background:#f7cf1c;
}
.sub-menu li {
display:block;
font-size:16px;
}
.sub-menu li a {
padding:10px 30px;
display:block;
}
/*finish menu*/
.topnav
{
margin-bottom: 10px;
}
.mobistrip
{
width: 200px;
height: 200px;
margin-right:auto;
margin-left:auto;
background-color:#f7cf1c;
position:relative;
left: 0px;
}
.createYearbook
{
position:relative;
left:0px;
margin-right:auto;
margin-left:auto;
padding-bottom:20px;
width:350px;
height:50px;
font-family:"Alfa Slab One";
font-size: 15px;
font-weight:lighter;
text-align:center
}
.createYearbook a
{
color: #000;
text-decoration:none;
background-color:#ce542c;
padding: 5px 15px;
border-radius: 3px 3px 3px 3px;
}
.continue
{
position:relative;
left:0px;
margin-right:auto;
margin-left:auto;
width:340px;
height:50px;
text-align:center;
}
.continue a
{
font-size:24px;
font-family:Arial;
font-weight:bolder;
color: #fff;
background-color:#ce542c;
text-decoration:none;
padding: 10px 10px;
border-radius: 3px 3px 3px 3px;
}
.undernav li
{
position:relative;
top: -150px;
display:inline;
height: 50px;
}
.ach
{
width:450px;
height:50px;
padding-top:20px;
padding-bottom:20px;
position:relative;
left:0px;
top: 140px;
}
.ach a
{
font-family:Arial;
font-size:25px;
color:#4e4d4d;
font-weight:bold;
text-decoration:none;
padding-right: 25px;
padding-left: 25px;
padding-bottom:20px;
border-bottom-width:8px;
border-bottom-color:#4e4d4d;
border-bottom-style:solid;
}
.jumbotron
{
visibility: hidden;
padding: 0px;
}
/*choose size Stuff*/
.ChooseSizeA2
{
width:237px;
font-family:Arial;
font-size:15px;
color:#4e4d4d;
font-weight:bold;
background-color:#fff;
position:relative;
top:-900px;
margin-right:auto;
margin-left:auto;
}
.ChooseSize
{
align-content:center;
background-color:#fff;
}
.picksize
{
position:relative;
top:-900px;
left: -15;
margin-right:auto;
margin-left:auto;
}
.sizepics img
{
background-color:#fff;
border-width:6px;
border-color:#f7cf1c;
border-style:solid;
margin-right:auto;
margin-left:auto
}
}
/* med res or ipad */
#media only screen and (min-width: 481px) {
.nav
{
visibility:hidden;
}
.LoginStuff li
{
display: inline;
float: right!important;
position:relative;
top: -50px;
right: 10px;
}
.reg1 a
{
border-radius: 0px 3px 3px 0px;
border-left-width: 1px;
border-left-style:solid;
border-left-color:#ce542c;
padding: 10px 10px;
font-size:20px;
font-family:Arial;
font-weight:bold;
color: #fff;
background-color:#f7cf1c;
text-decoration:none;
}
.log1 a
{
border-radius: 3px 0px 0px 3px;
border-right-width: 0.5px;
border-right-style:solid;
border-right-color:#ce542c;
padding: 10px 20px;
font-size:20px;
font-family:Arial;
font-weight:bold;
color: #fff;
background-color:#f7cf1c;
text-decoration:none;
}
.nav
{
visibility: hidden;
}
/*start menu*/
.clearfix a
{
background-color:#f7cf1c;
margin-right:auto;
margin-left:auto;
width:300px;
height:20px;
padding-bottom:10px;
position:relative;
left: -30px;
}
.AMenu
{
margin-right:auto;
margin-left:auto;
padding-left: 100px;
position:relative;
left:40px;
}
.menu-wrap
{
width:100%;
background-color:#f7cf1c;
align-content:center;
margin-right:auto;
margin-left:auto;
}
.menu
{
width:100%;
height:68px;
background-color:#f7cf1c;
position:relative;
margin-left:auto;
margin-right:auto;
}
.menu li
{
margin:0px;
text-decoration:none;
list-style:none;
font-family:"Alfa Slab One";
margin-right:auto;
margin-left:auto;
position:relative;
top: 15px;
}
.menu a
{
transition:all linear 0.15s;
text-decoration:none;
color:#fff;
margin-right:auto;
margin-left:auto;
}
.menu .arrow
{
font-size:24px;
line-height:0%;
}
/*----- Top Level -----*/
.menu > ul > li
{
display:inline-block;
position:relative;
font-size:24px;
}
.menu > ul > li > a
{
padding:0px 20px;
display:inline-block;
}
/*----- Bottom Level -----*/
.menu li:hover .sub-menu
{
z-index:1;
opacity:1;
}
.menu li:active .sub-menu
{
z-index:1;
opacity:1;
}
.sub-menu
{
width:500px;
height:300px;
padding:0px 0px;
padding-bottom:60px;
padding-top:20px;
padding-left:35px;
position:absolute;
top:100%;
left:-100px;
z-index:-1;
opacity:0;
transition:opacity linear 0.15s;
background:#f7cf1c;
border-radius: 0px 0px 3px 3px;
}
.sub-menu li
{
display:block;
font-size:25px;
}
.sub-menu li a
{
padding:20px 20px;
display:block;
}
/*finish menu*/
.topnav
{
margin-bottom: 10px;
}
.createYearbook
{
position:relative;
left:-10px;
bottom:90px;
margin-right:auto;
float:left;
padding-bottom:50px;
width:500px;
height:70px;
font-family:"Alfa Slab One";
font-size: 14px;
font-weight:lighter;
text-align:center
}
.createYearbook h1
{
width:380px;
}
.createYearbook a
{
color: #000;
text-decoration:none;
background-color:#ce542c;
padding: 15px 30px;
border-radius: 3px 3px 3px 3px;
}
.continue
{
position:relative;
right:-10px;
bottom: 209px;
float:right;
margin-left:auto;
width:400px;
height:70px;
text-align:center;
}
.continue a
{
font-size:28px;
font-family:Arial;
font-weight:bolder;
color: #fff;
background-color:#ce542c;
text-decoration:none;
padding: 17.4px 10px;
border-radius: 3px 3px 3px 3px;
}
.undernav li
{
position:relative;
top: -300px;
display:inline;
height: 50px;
}
.ach
{
width:600px;
height:50px;
padding-top:20px;
padding-bottom:20px;
position:relative;
left:-10px;
top: 140px;
margin-right:auto;
margin-left:auto;
}
.ach a
{
font-family:Arial;
font-size:32px;
color:#4e4d4d;
font-weight:bold;
text-decoration:none;
padding-right: 25px;
padding-left: 25px;
padding-bottom:20px;
border-bottom-width:8px;
border-bottom-color:#4e4d4d;
border-bottom-style:solid;
margin-right:10px;
margin-left:10px;
}
.circlesT
{
visibility:hidden;
}
.jumbotron
{
padding-top: 20px;
background-image:url(http://yourprintsolution.co.uk/littlechickdemo/pics/pic_1.gif);
height: 200px;
background-repeat: no-repeat;
background-size: cover;
position:relative;
top: 10px;
}
.jumbotron .container
{
position: relative;
background-color:transparent;
}
.jumbotron h1
{
color: #fff;
font-size: 20px;
font-family:"Alfa Slab One";
text-outline:#DFDFDF;
background-color:transparent;
padding-left:140px;
position:relative;
bottom:50px;
display: inline;
float: left!important;
margin-right: auto;
}
/*choose size Stuff*/
.ChooseSizeA2
{
width:237px;
font-family:Arial;
font-size:15px;
color:#4e4d4d;
font-weight:bold;
background-color:#fff;
position:relative;
top:-0px;
margin-right:auto;
margin-left:auto;
}
.ChooseSize
{
align-content:center;
background-color:#fff;
}
.picksize
{
position:relative;
top:0px;
left: -15;
margin-right:auto;
margin-left:auto;
}
.sizepics img
{
background-color:#fff;
border-width:6px;
border-color:#f7cf1c;
border-style:solid;
margin-right:auto;
margin-left:auto
}
}
/* high res or computer */
#media only screen and (min-width: 1024px) {
.menu-wrap
{
visibility: hidden;
}
.bg
{
background-color:#fff;
}
.filler
{
width: 100%;
height: 200px;
background-color:#f7cf1c;
}
.fillera
{
padding-top:30px;
background-color:#fff;
}
*
{
background-color:#eae9e9;
}
.LoginStuff li
{
display: inline;
float: right!important;
position:relative;
top: 140px;
}
.reg1 a
{
border-radius: 0px 3px 3px 0px;
border-left-width: 1px;
border-left-style:solid;
border-left-color:#ce542c;
padding: 14px 10px;
font-size:18px;
font-family:Arial;
font-weight:bold;
color: #fff;
background-color:#f7cf1c;
text-decoration:none;
transition-property: background;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
}
.reg1 a:hover
{
border-radius: 0px 3px 3px 0px;
border-left-width: 1px;
border-left-style:solid;
border-left-color:#ce542c;
padding: 14px 10px;
font-size:18px;
font-family:Arial;
font-weight:bold;
color: #000;
background-color:#ce542c;
text-decoration:none;
}
.log1 a
{
border-radius: 3px 0px 0px 3px;
border-right-width: 1px;
border-right-style:solid;
border-right-color:#ce542c;
padding: 14px 20px;
font-size:18px;
font-family:Arial;
font-weight:bold;
color: #fff;
background-color:#f7cf1c;
text-decoration:none;
transition-property: background;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
}
.log1 a:hover
{
border-radius: 3px 0px 0px 3px;
border-right-width: 1px;
border-right-style:solid;
border-right-color:#ce542c;
padding: 14px 20px;
font-size:18px;
font-family:Arial;
font-weight:bold;
color: #000;
background-color:#ce542c;
text-decoration:none;
}
.list
{
padding-top:200px;
}
.nav{
padding-top:200px;
}
.nav ul {
padding-left: 0;
}
.nav a {
padding: 30px 20px;
font-size:22px;
font-family:"Alfa Slab One";
color: #fff;
background-color:#f7cf1c;
text-decoration:none;
float: left!important;
margin-right: auto;
transition-property: background;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
}
.nav a:hover
{
padding: 30px 20px;
font-size:22px;
font-family:"Alfa Slab One";
color: #000;
background-color:#ce542c;
text-decoration:none;
float: left!important;
margin-right: auto;
}
.nav li {
display: inline;
float: left!important;
margin-right: auto;
}
.hide
{
visibility: hidden;
}
.createYearbook
{
padding-top:50px;
width:330px;
height:70px;
font-family:"Alfa Slab One";
font-size:14px;
font-weight:lighter;
float:left;
text-align:left;
}
.createYearbook a
{
color:#f7cf1c;
padding: 10px 10px;
border-radius: 3px 3px 3px 3px;
transition-property: background;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
text-decoration:none;
}
.createYearbook a:hover
{
color: #fff;
background-color:#f7cf1c;
padding: 10px 10px;
border-radius: 3px 3px 3px 3px;
}
.undernav li
{
display:inline;
padding: 15px 20px;
height: 70px;
}
.ach
{
width:500px;
height:70px;
float:right;
padding-top:50px;
padding-bottom:0px;
}
.ach a
{
font-family:Arial;
font-size:24px;
color:#4e4d4d;
font-weight:bold;
text-decoration:none;
padding: 28px 10px;
border-bottom-width:8px;
border-bottom-color:#eae9e9;
border-bottom-style:solid;
transition-property:all;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
}
.ach a:hover
{
font-family:Arial;
font-size:24px;
color:#4e4d4d;
font-weight:bold;
text-decoration:none;
padding: 28px 10px;
border-bottom-width:8px;
border-bottom-color:#4e4d4d;
border-bottom-style:solid;
}
.continue
{
width:340px;
height:70px;
float:right!important;
padding-top:50px;
text-align:right;
}
.continue a
{
font-size:24px;
font-family:Arial;
font-weight:bolder;
color: #fff;
background-color:#f7cf1c;
text-decoration:none;
padding: 14px 10px;
border-radius: 3px 3px 3px 3px;
transition-property: background;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
}
.continue a:hover
{
font-size:24px;
font-family:Arial;
font-weight:bolder;
color: #000;
background-color:#ce542c;
text-decoration:none;
padding: 14px 10px;
border-radius: 3px 3px 3px 3px;
}
.pic img
{
padding-top: 8px;
background-color:transparent;
}
.jumbotron {
padding-top: 20px;
background-image:url(http://yourprintsolution.co.uk/littlechickdemo/pics/pic_1.gif);
height: 500px;
background-repeat: no-repeat;
background-size: cover;
position:relative;
top: 130px;
}
.jumbotron .container {
position: relative;
background-color:transparent;
}
.jumbotron h1 {
color: #fff;
font-size: 44px;
font-family:"Alfa Slab One";
background-color:transparent;
padding-left:380px;
display: inline;
float: left!important;
margin-right: auto;
}
.circlesT
{
padding-top:400px;
background-color:transparent!important;
padding-left:80px;
padding-right:80px;
}
.circlesT a
{
background-color:#fff;
}*
{
background-color:#eae9e9;
}
.thumbnail{
max-width: 360px;
margin-right: auto;
display:inline;
float: left!important;
}
.list
{
padding-top:200px;
}
.a1
{
width:25%;
display:inline;
padding-left:6%;
padding-right:6%;
background-color:#fff;
}
.a1 img
{
background-color:transparent!important;
}
.mobiBG
{
height:91px;
width:100%;
background-color:#f7cf1c;
}
/*Teacher Login Stuff*/
.pagelogin
{
padding-top:20px;
padding-bottom:20px;
padding-left:300px;
}
.Tlogin form
{
background-color:#fff;
}
.Tlogin p
{
background-color:#fff;
}
.Tlogin
{
background-color:#fff;
width:400px;
padding: 20px;
}
/*Choose Size Stuff*/
.ChooseSize
{
padding-top:220px;
align-content:center;
background-color:#fff;
}
.ChooseSize h1
{
background-color:#fff;
}
.ChooseSizeA2
{
width:500px;
font-family:Arial;
font-size:27px;
color:#4e4d4d;
font-weight:bold;
background-color:#fff;
}
.picksize
{
width:100%;
background-color:#fff;
}
.sizepics
{
width:30%;
display:inline;
padding: 10px;
background-color:#fff;
}
.sizepics a
{
background-color:#fff;
border-width:6px;
border-color:#fff;
border-style:solid;
}
.sizepics img
{
background-color:#fff;
border-width:13px;
border-color:#fff;
border-style:solid;
transition-property:all;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
}
.sizepics img:hover
{
background-color:#fff;
border-width:13px;
border-color:#f7cf1c;
border-style:solid;
}
/*Year Group YG*/
.ChooseYG
{
padding-top:220px;
align-content:center;
background-color:#fff;
}
.ChooseYG h1
{
background-color:#fff;
}
.ChooseYGA2
{
width:800px;
font-family:Arial;
font-size:27px;
color:#4e4d4d;
font-weight:bold;
background-color:#fff;
}
/*Choose Cover 8x8 Stuff*/
.choosecover8x8
{
padding-top:220px;
align-content:center;
background-color:#fff;
}
.choosecover8x8 h1
{
background-color:#fff;
}
.a2-8x8
{
width:500px;
font-family:Arial;
font-size:27px;
color:#4e4d4d;
font-weight:bold;
background-color:#fff;
}
.pickcover8x8
{
width:100%;
background-color:#fff;
}
.cover8x8pics
{
width:30%;
display:inline;
padding: 10px;
background-color:#fff;
}
.cover8x8pics a
{
background-color:#fff;
border-width:6px;
border-color:#fff;
border-style:solid;
}
.cover8x8pics img
{
background-color:#fff;
border-width:13px;
border-color:#fff;
border-style:solid;
transition-property:all;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
}
.cover8x8pics img:hover
{
background-color:#fff;
border-width:13px;
border-color:#f7cf1c;
border-style:solid;
}
/*Choose Cover 6x8 Stuff*/
.choosecover6x8
{
padding-top:220px;
align-content:center;
background-color:#fff;
}
.choosecover6x8 h1
{
background-color:#fff;
}
.a2-6x8
{
width:500px;
font-family:Arial;
font-size:27px;
color:#4e4d4d;
font-weight:bold;
background-color:#fff;
}
.pickcover6x8
{
width:100%;
background-color:#fff;
}
.cover6x8pics
{
width:30%;
display:inline;
padding: 10px;
background-color:#fff;
}
.cover6x8pics a
{
background-color:#fff;
border-width:6px;
border-color:#fff;
border-style:solid;
}
.cover6x8pics img
{
background-color:#fff;
border-width:13px;
border-color:#fff;
border-style:solid;
transition-property:all;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
}
.cover6x8pics img:hover
{
background-color:#fff;
border-width:13px;
border-color:#f7cf1c;
border-style:solid;
}
/*Build Yearbook Stuff*/
.BuildYearbook
{
padding-top:220px;
align-content:center;
background-color:#fff;
}
.BuildYearbook h1
{
background-color:#fff;
}
.BuildYearbookA2
{
width:800px;
font-family:Arial;
font-size:27px;
color:#4e4d4d;
font-weight:bold;
background-color:#fff;
}
.price
{
font-family: Arial;
font-size:32px;
color:#e15152;
font-weight:bold;
background-color:#fff;
padding: 20px;
}
.BuildButton
{
padding: 25px;
background-color:#fff;
}
.BuildButton a
{
font-size:30px;
font-family:"Alfa Slab One";
color: #fff;
text-decoration:none;
background-color:#f7cf1c;
text-decoration:none;
border-radius: 3px 3px 3px 3px;
padding: 25px 50px;
transition-property: background;
transition-duration: 0.3s;
transition-timing-function: ease;
transition-delay: 0;
}
.BuildButton a:hover
{
font-size:30px;
font-family:"Alfa Slab One";
color: #000;
background-color:#ce542c;
text-decoration:none;
text-decoration:none;
border-radius: 3px 3px 3px 3px;
padding: 25px 50px;
}
.info
{
font-family:Arial;
font-size:24px;
color:#4e4d4d;
font-weight:bold;
background-color:#fff;
padding:30px;
}
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Yearbooks - Size</title>
<link rel="stylesheet" type="text/css" media="all" href="styles1.css">
</head>
<body>
<div class="top">
<div class="thumbnail">
<img src="http://yourprintsolution.co.uk/littlechickdemo/pics/Logo-01.png" width="177" height="183" alt="0">
</div>
<div class="LoginStuff">
<ul>
<div class="reg1"><li class="reg">Register</li></div>
<div class="log1"><li class="login">Login</li></div>
</ul>
</div>
</div>
<!-- Mobile Menu -->
<div class="menu-wrap" align="center">
<nav class="menu" align="center">
<ul class="clearfix">
<li>
<div class="AMenu" align="center">▼</span></div>
<ul class="sub-menu">
<li>Yearbooks</li>
<li>Leaving Cards</li>
<li>Mugs</li>
<li>School Calendars</li>
<li>Teachers Section</li>
</ul>
</li>
</ul>
</nav>
</div>
<!-- Normal Menu -->
<div class="nav" style="height:100%; width:100%;">
<ul>
<div class="Yearbooks"><li>Yearbooks</li></div>
<div class="LeavingCards"><li>Leaving Cards</li></div>
<div class="Mugs"><li>Mugs</li></div>
<div class="SchoolCalendars"><li>School Calendars</li></div>
<div class="TeacherSection"><li>Teachers Section</li></div>
</ul>
</div>
<div class="mobiBG"></div>
<div class="undernav">
<div class="createYearbook">
<h1>Create a Yearbook</h1>
</div>
<div class="continue">
<!-- same as login/register just bold -->
<h2>Continue Your Yearbook</h2>
</div>
<div class="ach" align="center">
<ul>
<li>About</li>
<li>Create</li>
<li>How To</li>
</ul>
</div>
</div>
<div class="jumbotron">
<div class="container">
<h1>Creating a Yearbook is Easy
<br><br>
Simply Choose Your Options Below.
</h1>
</div>
<div class="circlesT" style="background-color:#fff;">
<div class="a1">
<img src="http://yourprintsolution.co.uk/littlechickdemo/pics/circle_test.gif" width="180" height="176" alt=""/>
</div>
<div class="a1">
<img src="http://yourprintsolution.co.uk/littlechickdemo/pics/circle_test.gif" width="180" height="176" alt=""/>
</div>
<div class="a1">
<img src="http://yourprintsolution.co.uk/littlechickdemo/pics/circle_test.gif" width="180" height="176" alt=""/>
</div>
<div class="a1">
<img src="http://yourprintsolution.co.uk/littlechickdemo/pics/circle_test.gif" width="180" height="176" alt=""/>
</div>
</div>
</div>
<div class="bg">
<div class="ChooseSize" align="center">
<div class="ChooseSizeA2">
<h1 align="center">1. Choose a Size</h1>
</div>
</div>
<div class="picksize" align="center">
<div class="sizepics" align="center">
<img src="http://yourprintsolution.co.uk/littlechickdemo/pics/8x6.gif" alt="" width="30%" height="30%">
</div>
<div class="sizepics" align="center">
<img src="http://yourprintsolution.co.uk/littlechickdemo/pics/11x8.gif" alt="" width="30%" height="30%">
</div>
<div class="sizepics" align="center">
<img src="http://yourprintsolution.co.uk/littlechickdemo/pics/8x8.gif" alt="" width="30%" height="30%">
</div>
</div>
<div class="fillera"><div class="filler"></div></div>
</div>
</body>
</html>
That's because of this :
/* med res or ipad */
#media only screen and (min-width: 481px) {
Your media query just use min-width. So every screen with a higher resolution will take CSS rules in it too. Add a max-width rule to it :
/* med res or ipad */
#media only screen and (min-width: 481px) and (max-width: 1023px) {
There's too much css in your example to go through, but perhaps you haven't properly thought through the css for the desktop, as it will be taking the ipad styles as well, considering it too is over 481px.
Try
#media only screen and (min-width: 481px) and (max-width: 1023px)
I have 2 html tables, in source html file, there is only one line between them, but in browser there is a large space, I looked into the css, there is nothing about table there, how to get rid of the extra space ?
Here is the css file :
/*
* GENERICS
*/
body {
background-repeat:repeat-x;
padding:4px;
padding-top:0px;
margin:0px;
}
/*
* TOP LEVEL
*/
.pageTitle {
color:#000000;
font-family:century gothic;
font-size:22px;
font-weight:bold;
line-height:22px;
vertical-align:bottom;
border-bottom:solid;
border-bottom-width:3px;
border-bottom-color:#0099cc;
}
.topLevelTitleNoLine {
padding:0px;
vertical-align:bottom;
height:35px;
color:#000000;
font-family:century gothic;
font-size:18px;
font-weight:bold;
}
.topLevelTitle {
padding:0px;
vertical-align:bottom;
height:35px;
color:#000000;
font-family:century gothic;
font-size:18px;
font-weight:bold;
border-bottom:solid;
border-bottom-width:3px;
border-color:#0099cc;
}
.topLevelSubTitle {
padding:0px;
vertical-align:bottom;
color:#000000;
font-family:century gothic;
font-size:16px;
font-weight:bold;
border-bottom:solid;
border-bottom-width:3px;
border-color:#0099cc;
}
.topLevelSubTitleSmall {
padding:0px;
vertical-align:bottom;
color:#000000;
font-family:century gothic;
font-size:11px;
font-weight:bold;
border-bottom:solid;
border-bottom-width:3px;
border-color:#0099cc;
}
.topHeader {
background-color:#003366;
text-align:right;
vertical-align:bottom;
color:#ffffff;
}
.topStatus {
font-family:arial,helvetica,sans-serif;
font-weight:bold;
font-size:16px;
border-bottom: 3px solid #000000;
color:#00000;
padding:3px;
margin:0px;
}
.topnavItem {
font-family:arial,helvetica,sans-serif;
font-weight:bold;
font-size:10px;
border-bottom: 3px solid #000000;
color:#ffffff;
padding:3px;
text-align: right;
}
.headerCompanyL {
width:190px;
text-align:left;
background-color:#003366;
}
.headerCompanyR {
width:190px;
text-align:right;
background-color:#003366;
}
.headerclient {
font-family:arial,times,helvetica,sans-serif;
font-size:15px;
color:#FFFFFF;
text-align:left;
background-color:#003366;
padding-top:3px;
padding-bottom:3px;
}
td.footerMsg {
font-family:arial,helvetica,sans-serif;
font-size:10px;
text-align:center;
line-height:28px;
color:#999999;
border-top:solid;
border-width:1px;
border-color:#999999;
}
a.footerMsg {
color:#999999;
text-decoration:none;
}
a.footerMsg:hover {
color:#cc0000;
text-decoration:underline;
}
/*
* NAVIGATION
*/
a.screensNavItem:link {
font-size:12px;
text-decoration:none;
color:#003366;
}
a.screensNavItem:visited{
font-size:12px;
text-decoration:none;
color:#003366;
}
a.screensNavItem:hover{
font-size:12px;
text-decoration:none;
color:#003366;
}
.screensnavCurrent {
font-size:12px;
font-weight:bold;
text-decoration:none;
color:#003366;
background-color:#cccccc;
}
/*
* DISPLAY DATA
*/
.displayHeaderCell {
font-weight:bold;
font-family:arial,sans-serif;
font-size:11px;
}
.listTable {
font-family:arial,sans-serif;
font-size:11px;
color:#000000;
padding:3px;
}
.pageinfotitle {
font-weight:bold;
font-size: 11px;
color:#000000;
padding:3px;
background-image:url(background.nav.gif);
border:solid;
border-width:1px;
border-color:#999999;
border-bottom-color:#000000;
border-bottom-width:3px;
vertical-align:bottom;
}
.pageinfotitlered {
font-weight:bold;
font-size: 11px;
color:#FF0000;
padding:3px;
background-image:url(background.nav.gif);
border:solid;
border-width:1px;
border-color:#999999;
border-bottom-color:#000000;
border-bottom-width:3px;
vertical-align:bottom;
}
.pageinfotitleClear {
font-weight:bold;
font-size: 11px;
color:#000000;
padding:0px;
border:none;
border-width:0px;
background: transparent;
vertical-align:left;
text-align:right;
}
.pageinfo {
font-family:arial,helvetica,sans-serif;
font-size:12px;
line-height:18px;
color:#000000;
border-bottom: 1px solid #000000;
padding:3px;
}
.pageinfolink {
font-weight:bold;
font-size: 16px;
color:#000000;
padding:3px;
background-image:url(background.nav.gif);
border:solid;
border-width:1px;
border-color:#999999;
border-bottom-color:#000000;
border-bottom-width:3px;
vertical-align:bottom;
}
.displayCategory {
font-weight:bold;
color:#000000;
font-size:12px;
}
.displayCategorySmall {
font-weight:bold;
color:#000000;
font-size:10px;
}
.displayLargeFont {
font-weight:normal;
font-family:arial,sans-serif;
font-size:14px;
}
.displayRedHint {
font-family:arial,helvetica,sans-serif;
font-weight:bold;
font-size:12px;
color:#FF0000;
padding:3px;
margin:0px;
}
.displayEndDate {
background-color: transparent;
border-top: transparent;
border-right: transparent;
border-bottom: transparent;
border-left: transparent;
width: 60px;
height: 20px;
font-size:11px;
word-wrap: break-word;
padding-bottom: 60%;
}
.displayAmount {
background-color: transparent;
border-top: transparent;
border-right: transparent;
border-bottom: transparent;
border-left: transparent;
width: 60px;
height: 20px;
font-size:11px;
word-wrap: break-word;
padding-bottom: 60%;
padding-left: 50%;
}
.processTextDisplayLabel {
background-color: transparent;
border-top: transparent;
border-right: transparent;
border-bottom: transparent;
border-left: transparent;
font-size:14px;
word-wrap: break-word;
padding-bottom: 60%;
}
.formUWButtons {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#ffffff;
color:#000000;
width:70px;
}
.formAddButtons {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#cccccc;
color:#000000;
width:50px;
}
.processTextDisplayLabel {
background-color: transparent;
border-top: transparent;
border-right: transparent;
border-bottom: transparent;
border-left: transparent;
font-size:14px;
word-wrap: break-word;
padding-bottom: 60%;
}
.processTextSmallLabel {
background-color: transparent;
border-top: transparent;
border-right: transparent;
border-bottom: transparent;
border-left: transparent;
font-size:11px;
word-wrap: break-word;
padding-bottom: 60%;
width: 190px;
}
/*
* FORMS
*/
.processTable {
font-family:arial,sans-serif;
padding:3px;
font-size:11px;
color:#000000;
border:solid;
border-width:1px;
border-color:#000000;
background-color:#dfdfdf;
}
.processRegular {
text-decoration:none;
color:#000000;
font-size:12px;
}
.processRegularSmall {
text-decoration:none;
color:#000000;
font-size:11px;
}
.processRequire {
font-weight:bold;
text-decoration:none;
color:#000000;
font-size:12px;
}
.processError {
font-weight:bold;
text-decoration:none;
color:#ff0000;
font-size:12px;
}
.processTextLabel {
text-decoration:none;
color:#000000;
font-weight:bold;
font-size:12px;
}
.processMsgError {
font-family:arial,helvetica,sans-serif;
font-weight:bold;
font-size:14px;
color:#990033;
padding:3px;
margin:5px;
}
.processLargeHeaderText {
font-weight:bold;
font-size: 16px;
color:#000001;
padding:3px;
background-image:url(background.nav.gif);
border:solid;
border-width:2px;
border-color:#999999;
border-bottom-color:#000000;
border-bottom-width:3px;
vertical-align:bottom;
}
.processDisabledText {
text-decoration:none;
color:#c0c0c0;
font-size:12px;
}
.processText {
font-family:arial,sans-serif;bodyIframe
font-size:11px;
color:#000000;
border:solid;
border-width:1px;
border-color:#000000;
padding-left:5px;
padding-right:5px;
}
.processTextAlt {
font-family:arial,sans-serif;
text-decoration:none;
color:#000000;
font-size:11px;
}
.processBaseItem {
padding:2px;
padding-top:3px;
font-size:11px;
}
.processBaseItemSmall {
padding:2px;
padding-top:3px;
font-size:9px;
}
.processSelect {
font-family:arial,sans-serif;
font-size:11px;
color:#000000;
}
.processSelectClear {
font-family:arial,sans-serif;
font-size:11px;
color:#000000;
padding:0px;
border:none;
border-width:0px;
background: transparent;
}
.processSelectFixed {
font-family:arial,sans-serif;
font-size:11px;
color:#000000;
width:100px;
}
.processSelectSmall {
font-family:arial,sans-serif;
font-size:9px;
color:#000000;
}
.processBaseButton {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#cccccc;
color:#000000;
width:100px;
}
.processBaseFrame {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#cccccc;
color:#000000;
}
.processSubmit {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#cccccc;
color:#000000;
width:90px;
}
.processSubmitRed {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#cccccc;
color:#FF0000;
width:90px;
}
.processLabel {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#dfdfdf;
color:#000000;
border:none;
text-align:right;
width:60px;
}
.processReadOnly {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#cccccc;
border:none;
text-align:right;
}
.processMSRCalc {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#cccccc;
border:solid ;
border-width: thin;
text-align:right;
}
.processMSRCalcTotal {
font-family:arial,sans-serif;
font-size:11px;
font-weight:bold;
background-color:#FFFFFF;
border:solid ;
border-width: thin;
text-align:right;
}
.processBlankRow {
font-family:arial,sans-serif;
font-size:6px;
background-color:#DFDFDF;
border:none;
text-align:right;
}
/*
* NEWS
*/
.newsBasePageTitle {
padding:0px;
vertical-align:bottom;
height:35px;
color:#000000;
font-family:century gothic;
font-size:18px;
font-weight:bold;
border-bottom:solid;
border-bottom-width:3px;
border-color:#0099cc;
}
.newsBaseTitle {
padding:0px;
vertical-align:bottom;
color:#000000;
font-family:century gothic;
font-size:15px;
font-weight:bold;
border-bottom:solid;
border-bottom-width:1px;
border-color:#0099cc;
}
.newsBaseText {
text-decoration:none;
color:#000000;
font-size:14px;
}
.newsBaseTextAlt {
padding:0px;
vertical-align:bottom;
color:#000000;
font-size:14px;
border-bottom:solid;
border-bottom-width:1px;
border-color:#0099cc;
}
/*
* STATUS
*/
.statusStyleSearchResult {
padding: 3px;
line-height: 18px;
}
.statusStyleSearchResult TD {
padding: 3px;
color: black;
font: 11px Arial, Helvetica, Sans-Serif;
border-bottom: 1px solid black;
}
.statusStyleNew {
background-color: #8AC5ff;
}
.statusStyleFrozen {
background-color: #E70000;
}
.statusStyleFuture {
background-color: #FFAAFF;
}
.statusStyleExpired {
background-color: #EB66D3;
}
.statusStylePending {
background-color: #FFE4B0;
}
.statusStyleApproved {
background-color: #99ffcc;
}
.statusStyleMoreInfo {
background-color: #ffff99;
}
.statusStyleEdit {
background-color: #8AC5ff;
}
.statusStyleExclusive {
background-color: #8AC5ff;
}
.statusStyleDeclined {
background-color: #ffcccc;
}
.statusStylePresented {
background-color: #00ffff;
}
.statusStyleBound {
background-color: #00ff99;
}
.statusStyleBoundOther {
background-color: white;
}
.statusStyleClosed {
background-color: #E0E0E0;
}
.statusStylePreScreened {
background-color: #FF6600;
}
.statusStyleCancelled {
background-color: #ff9999;
}
.statusStypePendingEndorsement {
background-color: #CC99FF;
}
.statusStyleSuspend {
background-color: #FFE4B0;
}
.statusStylePendingRenewal {
background-color: #99FF33;
}
.newType {
font-family:arial,helvetica,sans-serif;
font-size:12px;
line-height:18px;
color:#000000;
border-bottom: 1px solid #000000;
padding:3px;
background-color:#8AC5ff;
}
.pendingType {
font-family:arial,helvetica,sans-serif;
font-size:12px;
line-height:18px;
color:#000000;
border-bottom: 1px solid #000000;
padding:3px;
background-color:#FFE4B0;
}
.more-informationType {
font-family:arial,helvetica,sans-serif;
font-size:12px;
line-height:18px;
color:#000000;
border-bottom: 1px solid #000000;
padding:3px;
background-color:#ffff99;
}
.approvedType {
font-family:arial,helvetica,sans-serif;
font-size:12px;
line-height:18px;
color:#000000;
border-bottom: 1px solid #000000;
padding:3px;
background-color:#99ffcc;
}
.declinedType {
font-family:arial,helvetica,sans-serif;
font-size:12px;
line-height:18px;
color:#000000;
border-bottom: 1px solid #000000;
padding:3px;
background-color:#ffcccc
}
.pending-endorsementType {
font-family:arial,helvetica,sans-serif;
font-size:12px;
line-height:18px;
color:#000000;
border-bottom: 1px solid #000000;
padding:3px;
background-color:#cc99ff
}
.boundType {
font-family:arial,helvetica,sans-serif;
font-size:12px;
line-height:18px;
color:#000000;
border-bottom: 1px solid #000000;
padding:3px;
background-color:#00ff99
}
.presentedType {
font-family:arial,helvetica,sans-serif;
font-size:12px;
line-height:18px;
color:#000000;
border-bottom: 1px solid #000000;
padding:3px;
background-color:#00ffff
}
/*
* ERRORS
*/
.errorLogon {
text-decoration:none;
color:#ff0000;
font-size:12px;
}
.exceptionType {
font: 10px lucida console;
color: black;
border: 1px solid black;
padding:3px;
}
.exceptionType TH {
background: silver;
}
.exceptionType TD {
background: white;
}
/*
* GENERAL
*/
.spacer {
padding:0px;
font-size:1px;
}
.centerBlock {
vertical-align:middle;
}
.fieldBase {
font-size: 11px;
color:#000000;
padding:0px;
background-color:#dfdfdf;
border:solid;
border-width:1px;
border-color:#dfdfdf;
border-bottom-width:3px;
vertical-align:bottom;
}
.fieldBaseR {
font-family:arial,sans-serif;
font-size:11px;
color:#000000;
border:solid;
border-width:1px;
border-color:#000000;
padding-left:0px;
padding-right:1px;
text-align:right;
}
.fieldBaseL {
font-family:arial,sans-serif;
font-size:11px;
color:#000000;
border:solid;
border-width:1px;
border-color:#000000;
padding-left:0px;
padding-right:1px;
text-align:left;
}
.emailLabel {
text-decoration:none;
color:#000000;
font-weight:bold;
font-size:12px;
width:230px;
}
td.copyright {
font-family:arial,helvetica,sans-serif;
font-size:10px;
text-align:center;
line-height:28px;
color:#999999;
border-width:1px;
border-color:#999999;
}
You could benefit of a CSS reset. Add to the top of your css file (before the body {} declaration):
* {margin: 0; padding: 0;}
Please note the CSS reset will remove all the default margins/paddings. You will need to manually add them when suitable. For a less generic reset, please try:
table {margin: 0; padding: 0;}
I like to troubleshoot an issue like this with a tool that highlights rendered elements as you mouse-over them in the DOM. There are many, but there is one built in to Chrome's developer tools. Right click on the space and "Inspect Element".
Then you'll know which element's box model contains the space, and you won't need to resort to trial-and-error measures.
In css add : br { display: none; }
I have an application based on the following css.The page is designed to display employee database and their task records.I need the header always at the bottom of the page even the content is less/more in number.I cant fix it.Once when I fix for less content it gets displayed above the content when more contents are added.I need help to fix this...
* { padding:0; margin:0; outline:0; }
body {
background:#f9ebae;
font-family: Verdana, sans-serif;
font-size:11px;
line-height:14px;
color:#5e5e5e;
margin:0;
padding:0;
height:100%;
}
input, textarea, select { font-family: Verdana, sans-serif; font-size:13px; }
textarea { overflow:hidden; }
.field { border:solid 1px #d3cfc7; background:#fff; padding:5px; }
.small-field { border:solid 1px #d3cfc7; background:#fff; padding:3px 1px; font-size:11px; }
.checkbox { width:13px; height:13px; vertical-align:top; position:relative; top:2px; }
.button { background:#eee url(images/button.gif) repeat-x 0 0; border:solid 1px #b1a874; color:#7f7f7f; font-size:11px; padding:2px 6px 2px 6px; cursor:pointer; line-height:14px !important; }
.button:hover { color:#333; border-color:#857b42; }
.field:focus { color:#000; border-color:#857b42;}
a img { border:0; }
a { color:#ba4c32; text-decoration: underline; cursor:pointer; }
a:hover { color:#8d341f; text-decoration: none;}
.left, .alignleft { float:left; display:inline; }
.right, .alignright { float:right; display:inline; }
.rights, .alignright { float:right; display:inline; }
.cl { font-size:0; line-height:0; clear:both; display:block; height:0; }
.al { text-align: left; }
.ar { text-align: right; }
.ac { text-align: center !important; }
h1{ font-size:22px; font-family:Georgia, "Times New Roman", Times, serif; line-height:24px; color:#fff; font-weight: normal;}
h1 a{ color:#fff; text-decoration: none; }
h11{ font-size:32px; font-family:"Times New Roman", Times, serif; line-height:30px; color:#fff; font-weight: normal;}
h11 a{ color:#fff; text-decoration: none; }
h2 { font-size:15px; font-weight: normal; }
h2 a{ text-decoration: none; }
h22 { font-size:20px; font-family:"Times New Roman", Times, serif; font-weight: normal; }
h22 a{ text-decoration: none; }
h3 { font-size:12px; color:#3333FF; line-height:14px; font-weight: normal; }
h3 a{ text-decoration: none; }
.shell { ; margin:0; auto; }
#header { height:89px; background:url(images/header.gif); white-space:nowrap; }
#header h1{ float:left; display:inline; padding-top:12px; }
#top-navigation { float:right; white-space:nowrap; color:#fff; padding-top:15px; }
#top-navigation a{ color:#fff; }
#top-navigation span{ color:#dca598; }
#top { height:53px;}
#navigation { height:36px;}
#navigation ul{ list-style-type: none;}
#navigation ul li{ float:left; display:inline; margin-right:2px;}
#navigation ul li a,
#navigation ul li a span { float:left; height:36px; background:url(images/tab.gif) no-repeat 0 0; padding:0 0 0 15px;}
#navigation ul li a span { background-position:right 0; padding:0 15px 0 0;}
#navigation ul li a { line-height:36px; color:#907525; text-decoration: none; }
#navigation ul li a.active,
#navigation ul li a:hover { background-position:0 bottom;}
#navigation ul li a.active span,
#navigation ul li a:hover span{ background-position:right bottom; }
#navigation ul li a.active { font-size:12px; font-weight: bold; color:#887e42; }
#wrapper {
min-height:100%;
height: auto !important;
height: 100%;
margin: 0 auto -4em;
}
#wrapper1 {
min-height:200%;
position:relative;
}
#container { padding:20px 0; padding-bottom:44px;}
#container10 { padding:20px 0; padding-bottom:44px; min-height:100%;}
.small-nav { color:#978b48; padding-bottom:20px; }
.small-nav a{ color:#6f6636; }
#main { overflow:auto; padding-bottom: 44px; }
#content { float:left; width:98%; padding:0 0 44px 2px; }
#contents { float:left; width:auto; padding:0 0 0 300px; }
#sidebar { float:right; width:225px; }
.table {}
.table th{ background:#fffdfa url(images/th.gif) repeat-x 0 0; color:#818181; text-align: left; padding:7px 10px; border-bottom:solid 1px #d2d1cb;}
.table td{ background:#fbfcfc; border-bottom:solid 1px #e0e0e0; padding:8px 10px; }
.table tr.odd td{ background:#f8f8f8; }
.table tr:hover td{ background:#fff9e1; }
.table a.ico{ }
.box { background:#fbfcfc; height:auto; width:auto; padding:1px; margin-bottom:20px; }
.box-head { background:#ba4c32; height:32px; color:#fff; padding: 0 10px; line-height:32px; white-space:nowrap; border-bottom:solid 1px #fff; }
.box-head .rights{ padding:10px 0 10px 1px; line-height:13px;}
.box-head .rights label,
.box-head .rights input { float:left; }
.box-head .rights label { padding:4px 0 0 0;}
.box-head .rights input { margin-left:5px;}
.box-head .right{ padding:5px 0 10px 1px; line-height:13px; }
.box-head .right label,
.box-head .right input { float:left; }
.box-head .right label { padding:4px 0 0 0;}
.box-head .right input { margin-left:5px;}
.pagging { height:20px; padding:8px 0px; line-height:19px; color:#949494; }
.pagging a{ background:url(images/pagging.gif) repeat-x 0 0; height:20px; float:left; padding:0 8px; border:solid 1px #d5d5d5; text-decoration: none; color:#949494; margin-left:5px; }
.pagging a:hover { border-color:#8c3521; background:#ba4c32; color:#fff; }
.pagging span{ float:left; margin-left:5px; padding-top:2px; }
a.ico { color:#9d9c9a; font-size:10px; text-decoration: none; padding:0 0 0 14px; background-repeat:no-repeat; background-position:0 0; }
a.ico:hover { color:#333;}
a.del { background-image:url(images/delete.gif); margin-left:10px;}
a.edit { background-image:url(images/ed.gif); margin-left:10px;}
a.status { background-image:url(images/i.gif); margin-left:10px;}
.form { padding:15px 10px 5px 10px; }
.form label{ display:block; font-weight: bold; font-size:13px; padding-bottom:4px; }
.form label span{ color:#999; font-weight: normal;}
.form .field { display:block; }
.form .inline-field .field { display:inline;}
.form .req { font-size:13px; float:right; white-space:nowrap; color:#999; }
.form p{ padding-bottom:15px; }
.size1 { width:716px; }
.size2 { width:80px; }
.size3 { width:120px; }
textarea.size1 { height:180px; }
.buttons { text-align: right; padding:10px; background:#eee; border-top:solid 1px #e0e0e0; }
.buttons .button{ margin-left:3px;}
.box-content { padding:10px; }
.sort { border-top:solid 1px #e0e0e0; padding-top:10px; margin-top:15px; }
.sort label{ display:block; font-weight: bold;}
.sort .field{ display:block; margin-top:5px; }
.sort select.field{ width:203px; }
.box-content p { padding-top:10px; }
.select-all{}
.select-all label{ text-decoration: underline; padding-left:4px; }
.add-button,
.add-button span { float:left; height:26px; background:url(images/add-button.gif) no-repeat 0 0; padding:0 0 0 28px; }
.add-button span { background-position:right 0; padding:0 10px 0 0; }
.add-button { font-weight: bold; font-size:12px; color:#747474; text-decoration: none; line-height:26px; }
.add-button:hover { color:#333;}
#footer { height:44px; margin-top: -44px; background:url(images/footer.gif); line-height:44px; width:100%; color:#fff; position:relative; bottom:0; left:0; clear:both; }
#footer a{ color:#fff;}
#footer, #push {
height: 4em;
}
#footer, #push {
clear: both;
}
.msg { position:relative; padding-right:35px; margin-bottom:10px; }
.msg p{ padding:9px 10px 9px 40px; font-size:12px; background-repeat:no-repeat; background-position:10px 5px;}
.msg a.close{ font-size:0; line-height:0; position:absolute; top:0; right:0; width:34px; height:34px; background:url(images/close.gif); text-indent: -4000px;}
.msg-ok p{ background-color:#fffac2; border:solid 1px #dbd6a2; color:#5e5c40; background-image:url(images/ok.gif); }
.msg-error p{ background-color:#f3c598; border:solid 1px #e8b084; color:#ba4c32; background-image:url(images/msg-error.gif); }
/*** CSS3 ***/
.box { -moz-border-radius:5px; -webkit-border-radius:5px; -moz-box-shadow: 0 0 6px #978f6c; -webkit-box-shadow: 0 0 6px #978f6c;}
.box-head { -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; -webkit-border-top-left-radius:5px; -webkit-border-top-right-radius:5px; }
.field, .button { -moz-border-radius:4px; -webkit-border-radius:4px; }
.small-field, .button, .pagging a { -moz-border-radius:3px; -webkit-border-radius:3px; }
.msg p { -moz-border-radius:6px; -webkit-border-radius:6px; }
.button { -moz-box-shadow: 0 0 2px #978f6c; -webkit-box-shadow: 0 0 2px #978f6c;}
.rrshow{
display:none;
}
<!--Print query css-->
#media print
{
.print-hidden {
display: none;
}
a {
display: none;
}
}
Try this to position it at the bottom
position:absolute;
bottom:0;
i am using this CSS for my footer:
/* FOOTER */
#footer {
width:100%;
height:580px;
border-top:4px solid #666666;
background-color:#eeeeee;
}
#footer-inner {
width:80%;
margin:0 auto 0 auto;
height:inherit;
}
#footerTop {
width:100%;
height:480px;
padding-top:10px;
border-bottom:2px #000000 solid;
}
#footerTopLeft {
width:30%;
height:420px;
float:left;
display:inline;
margin-top:10px;
padding:0 15px 10px 15px;
border-right:1px solid #000000;
}
#footerTopMid {
width:30%;
height:420px;
float:left;
display:inline;
margin-top:10px;
padding:0 15px 10px 15px;
border-right:1px solid #000000;
}
#footerTopRight {
width:30%;
height:420px;
float:left;
display:inline;
padding:0 15px 10px 15px;
}
#enquiryForm { clear:both; padding:8px 40px 0 0; }
.enquiryField { clear:both; padding:5px 0; }
.enquiryField label { clear:none; float:left; }
.enquiryField input { clear:none; font-family:Calibri; float:right; padding:3px; width:189px; }
.enquiryField textarea { clear:none; float:right; font-family:Calibri; padding:5px; width:189px; }
.enquiryError { clear:both; color:#fff; font-family:Calibri; }
#enquirySent { color:#fff; font-family:Calibri; }
but it is not moving down the page automatically depending on how much content is above it. here is a fiddle with the full css/HTML:
http://jsfiddle.net/ctmGT/
i seem to have to change the div height that i have depending on the amount of content i have
you need to change
<div style="clear: both; height:500px;"></div>
to
<div class="push"></div>