Hi there am having a problem with my navigation menu, it's using a link to Yanone Kaffeesatz via Google Fonts and using 26pt and small caps - it looks fine in IE/FF and Chrome but just checked Safari and Iphone and the font-size is considerably larger - so much so that the menu adds a second line
I don't think it's a problem with default font size on Safari as other fonts look identical to other browsers.
Here is the CSS, any help would be much appreciated
* {margin: 0; padding: 0;}
ul {list-style: none;}
a {color: black; text-decoration: none; padding-bottom: 3px;}
a:visited {color: black;}
body {
width: 100%;
font-size: 100%;
background-color: #bab89b;
background-image:url('http://xxx/assets/background.jpg');
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
}
container {
width: 900px;
margin: 0 auto;
}
#header {
width: 900px;
text-align: center;
margin: 0 auto;
}
#photo {
float: left;
margin-left: 80px;
margin-right: 80px;
margin-top: 30px;
}
#photo img {
padding: 10px;
background-color: #eee;
border: 2px solid #ccc;
rotation: 90deg;
-webkit-transform: rotate(-10deg) scale(0.9);
-moz-transform: rotate(-10deg) scale(0.9);
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
}
#photo img:hover {
-webkit-transform: rotate(10deg) scale(1.1);
-moz-transform: rotate(10deg) scale(1.1);
}
#titles {float: left;}
#header h1 {
font-family: Helvetica Neue, Arial, sans-serif;
font-size: 56pt;
font-weight: 100;
margin-top: 30px;
}
#header h2 {
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-style: italic;
font-weight: 300;
font-size: 20pt;
}
/* NAVIGATION */
#navWrap {
width: 900px;
height: 3em;
margin: 0 auto;
margin-top: 30px;
padding-top: 1em;
padding-bottom: 1em;
border-top: 1px solid black;
border-bottom: 1px solid black;
text-align: center;
}
#nav {
width: 900px;
}
#nav li {
display: inline;
line-height: 3em;
padding: 0 20px;
}
#nav li a {
font-family: Yanone Kaffeesatz, sans-serif;
color: black;
font-variant: small-caps;
font-size: 26pt;
margin-right: 40px;
text-decoration: none;
}
#nav li a:hover {border-bottom: 4px solid black;}
#nav li a.current:hover {border-bottom: none;}
/* CONTENT */
#content {
width: 900px;
margin: 0 auto;
text-align: center;
}
#contentHeader {
width: 900px;
margin: 0 auto;
margin-top: 40px;
margin-bottom: 20px;
text-align: center;
}
#contentHeader h2 {
font-family: Helvetica Neue; Arial, sans-serif;
font-size: 24pt;
font-weight: 100;
}
/* SUBJECTS PAGE */
#box1, #box2, #box3 {
width: 900px;
margin: 0 auto;
margin-bottom: 50px;
font-family: Helvetica Neue, Arial, sans-serif;
font-weight: 100;
}
.clearer {
clear: both;
}
.leftContent {
float: left;
width: 480px;
height: 240px;
padding: 40px;
border: 1px solid #e7e7e7;
background-color: #e7e7e7;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
margin-bottom: 30px;
}
.leftContent h3 {
font-size: 22pt;
font-weight: 100;
margin-bottom: 20px;
}
.leftContent h4 {
font-size: 18pt;
font-weight: 100;
margin-bottom: 20px;
}
.leftContent p {
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 11pt;
line-height: 1.5em;
font-weight: 300;
}
.rightContent {
float: right;
width: 200px;
height: 120px;
vertical-align: middle;
padding: 40px;
margin-top: 60px;
margin-bottom: 30px;
font-style: italic;
}
.rightContent h3 {
font-size: 16pt;
font-weight: 100;
margin-bottom: 15px;
}
.rightContent li {
font-size: 11pt;
font-weight: 100;
line-height: 1.5em;
}
/* FEEDBACK */
.bubbleText {
width: 550px;
margin: 30px auto 5px auto;
border: 1px solid #ccc;
background-color: #e7e7e7;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
padding: 20px 30px;
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 10pt;
font-weight: 300;
}
.bubbleDesc {
margin-bottom:
}
#showMoreLink, #showLessLink {
margin-top: 40px;
font-size: 24pt;
font-style: italic;
font-variant: small-caps;
cursor: pointer;
}
#showMoreLink:hover, #showLessLink:hover {
text-decoration: underline;
}
#moreText {
display: none;
}
/* BIO */
#leftBioBlock {
float: left;
width: 400px;
margin-right: 60px;
margin-left: 20px;
}
#rightBioBlock {
float: left;
width: 400px;
}
.bioTextBlock {
font-family: 'Yanone Kaffeesatz', sans-serif;
width: 350px;
height: 300px;
margin: 0 auto 50px auto;
padding:30px;
border: 1px solid #e7e7e7;
background-color: #e7e7e7;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
position: relative;
}
.bioTextBlockCenter {
font-family: 'Yanone Kaffeesatz', sans-serif;
width: 400px;
height: 300px;
margin: 0 auto;
padding:30px;
border: 1px solid #e7e7e7;
background-color: #e7e7e7;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
}
.bioTextBlockCenter:hover
.bioTextBlock, .bioTextBlockCenter{
-moz-box-shadow: 5px 5px 3px #888;
-webkit-box-shadow: 5px 5px 3px #888;
box-shadow: 5px 5px 3px #888;
}
.bioTextHead {
font-size: 28pt;
margin-bottom: 20px;
}
.bioTextBlock p, bioTextBlock li, .bioList {
font-family: Helvetica Neue, Arial, Sans-serif;
font-weight: 300;
font-size: 11pt;
line-height: 1.4em;
}
.bioList li {
line-height: 2em;
}
#CVlink {
position: absolute;
left: 85px;
bottom: 30px;
text-align: center;
font-family: Helvetica Neue, Arial, sans-serif;
font-size: 18pt;
font-weight: 100;
-webkit-transition: color 0.4s linear;
-moz-transition: color 0.4s linear;
}
#CVlink:hover {
color: #ce984e;
}
/* FORM */
form {
width: 900px;
margin: 0 auto;
padding: 40px;
}
legend {
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 18pt;
padding-bottom: 15px;
font-weight: 100;
}
label {
font-family: 'Yanone Kaffeesatz', sans-serif;
font-size: 16pt;
display: block;
}
input, select {
width: 250px;
height: 1.5em;
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 12pt;
color: #575754;
margin-bottom: 15px;
}
fieldset#formCol1 {
width: 300px;
padding: 25px;
display: inline;
margin-right: 80px;
margin-left: 60px;
vertical-align:top;
}
fieldset#formCol2{
width: 300px;
padding: 25px;
padding-bottom: 37px;
display: inline;
vertical-align: top;
}
fieldset#formCol3 {
clear: both;
width: 740px;
margin: 30px auto 0 60px;
text-align: center;
padding: 25px;
}
select {
margin-bottom: 15px;
}
#sendButton {
width: 80px;
}
textarea {
width: 450px;
height: 150px;
padding: 5px;
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 11pt;
}
placeholder {
font-size: 11pt;
font-style: italic;
}
#denotes {
text-align: center;
margin-top: -20px;
margin-bottom: -20px;
font-weight: 100;
}
/* HIDDEN SPAM TRAP BOX */
input.random {display: none;}
/* FOOTER */
#footer {
width: 900px;
margin: 100px auto 0 auto;
text-align: center;
padding-top: 60px;
padding-bottom: 20px;
border-top: 1px dashed #666;
}
#footerCopy {
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 10pt;
font-weight: 100;
text-align: center;
}
.siteLink {
text-align: center;
font-family: Helvetica Neue, Arial, sans-serif;
font-size: 28pt;
font-weight: 100;
-webkit-transition: color 0.8s linear;
-moz-transition: color 0.8s linear;
}
.siteLink:hover {color: #ce984e; border-bottom: none;}
#profTutor {
text-align: center;
font-family: Helvetica Neue, Arial, sans-serif;
font-size: 14pt;
font-weight: 100;
font-variant: small-caps;
margin-bottom: 20px;
}
/* IPHONE RULES */
#media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
div#rightContent1, div#rightContent2, div#rightContent3 {
display: block;
}
}
Use 26 px, not 26 pt. Points are intended for print, not screen display and will look different in each browser.
Add this in your body
display: 0.99;
So the whole css will be
* {margin: 0; padding: 0;}
ul {list-style: none;}
a {color: black; text-decoration: none; padding-bottom: 3px;}
a:visited {color: black;}
body {
width: 100%;
font-size: 100%;
background-color: #bab89b;
background-image:url('http://xxx/assets/background.jpg');
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
display: 0.99;
}
container {
width: 900px;
margin: 0 auto;
}
#header {
width: 900px;
text-align: center;
margin: 0 auto;
}
#photo {
float: left;
margin-left: 80px;
margin-right: 80px;
margin-top: 30px;
}
#photo img {
padding: 10px;
background-color: #eee;
border: 2px solid #ccc;
rotation: 90deg;
-webkit-transform: rotate(-10deg) scale(0.9);
-moz-transform: rotate(-10deg) scale(0.9);
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
}
#photo img:hover {
-webkit-transform: rotate(10deg) scale(1.1);
-moz-transform: rotate(10deg) scale(1.1);
}
#titles {float: left;}
#header h1 {
font-family: Helvetica Neue, Arial, sans-serif;
font-size: 56pt;
font-weight: 100;
margin-top: 30px;
}
#header h2 {
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-style: italic;
font-weight: 300;
font-size: 20pt;
}
/* NAVIGATION */
#navWrap {
width: 900px;
height: 3em;
margin: 0 auto;
margin-top: 30px;
padding-top: 1em;
padding-bottom: 1em;
border-top: 1px solid black;
border-bottom: 1px solid black;
text-align: center;
}
#nav {
width: 900px;
}
#nav li {
display: inline;
line-height: 3em;
padding: 0 20px;
}
#nav li a {
font-family: Yanone Kaffeesatz, sans-serif;
color: black;
font-variant: small-caps;
font-size: 26pt;
margin-right: 40px;
text-decoration: none;
}
#nav li a:hover {border-bottom: 4px solid black;}
#nav li a.current:hover {border-bottom: none;}
/* CONTENT */
#content {
width: 900px;
margin: 0 auto;
text-align: center;
}
#contentHeader {
width: 900px;
margin: 0 auto;
margin-top: 40px;
margin-bottom: 20px;
text-align: center;
}
#contentHeader h2 {
font-family: Helvetica Neue; Arial, sans-serif;
font-size: 24pt;
font-weight: 100;
}
/* SUBJECTS PAGE */
#box1, #box2, #box3 {
width: 900px;
margin: 0 auto;
margin-bottom: 50px;
font-family: Helvetica Neue, Arial, sans-serif;
font-weight: 100;
}
.clearer {
clear: both;
}
.leftContent {
float: left;
width: 480px;
height: 240px;
padding: 40px;
border: 1px solid #e7e7e7;
background-color: #e7e7e7;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
margin-bottom: 30px;
}
.leftContent h3 {
font-size: 22pt;
font-weight: 100;
margin-bottom: 20px;
}
.leftContent h4 {
font-size: 18pt;
font-weight: 100;
margin-bottom: 20px;
}
.leftContent p {
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 11pt;
line-height: 1.5em;
font-weight: 300;
}
.rightContent {
float: right;
width: 200px;
height: 120px;
vertical-align: middle;
padding: 40px;
margin-top: 60px;
margin-bottom: 30px;
font-style: italic;
}
.rightContent h3 {
font-size: 16pt;
font-weight: 100;
margin-bottom: 15px;
}
.rightContent li {
font-size: 11pt;
font-weight: 100;
line-height: 1.5em;
}
/* FEEDBACK */
.bubbleText {
width: 550px;
margin: 30px auto 5px auto;
border: 1px solid #ccc;
background-color: #e7e7e7;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
padding: 20px 30px;
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 10pt;
font-weight: 300;
}
.bubbleDesc {
margin-bottom:
}
#showMoreLink, #showLessLink {
margin-top: 40px;
font-size: 24pt;
font-style: italic;
font-variant: small-caps;
cursor: pointer;
}
#showMoreLink:hover, #showLessLink:hover {
text-decoration: underline;
}
#moreText {
display: none;
}
/* BIO */
#leftBioBlock {
float: left;
width: 400px;
margin-right: 60px;
margin-left: 20px;
}
#rightBioBlock {
float: left;
width: 400px;
}
.bioTextBlock {
font-family: 'Yanone Kaffeesatz', sans-serif;
width: 350px;
height: 300px;
margin: 0 auto 50px auto;
padding:30px;
border: 1px solid #e7e7e7;
background-color: #e7e7e7;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
position: relative;
}
.bioTextBlockCenter {
font-family: 'Yanone Kaffeesatz', sans-serif;
width: 400px;
height: 300px;
margin: 0 auto;
padding:30px;
border: 1px solid #e7e7e7;
background-color: #e7e7e7;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
}
.bioTextBlockCenter:hover
.bioTextBlock, .bioTextBlockCenter{
-moz-box-shadow: 5px 5px 3px #888;
-webkit-box-shadow: 5px 5px 3px #888;
box-shadow: 5px 5px 3px #888;
}
.bioTextHead {
font-size: 28pt;
margin-bottom: 20px;
}
.bioTextBlock p, bioTextBlock li, .bioList {
font-family: Helvetica Neue, Arial, Sans-serif;
font-weight: 300;
font-size: 11pt;
line-height: 1.4em;
}
.bioList li {
line-height: 2em;
}
#CVlink {
position: absolute;
left: 85px;
bottom: 30px;
text-align: center;
font-family: Helvetica Neue, Arial, sans-serif;
font-size: 18pt;
font-weight: 100;
-webkit-transition: color 0.4s linear;
-moz-transition: color 0.4s linear;
}
#CVlink:hover {
color: #ce984e;
}
/* FORM */
form {
width: 900px;
margin: 0 auto;
padding: 40px;
}
legend {
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 18pt;
padding-bottom: 15px;
font-weight: 100;
}
label {
font-family: 'Yanone Kaffeesatz', sans-serif;
font-size: 16pt;
display: block;
}
input, select {
width: 250px;
height: 1.5em;
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 12pt;
color: #575754;
margin-bottom: 15px;
}
fieldset#formCol1 {
width: 300px;
padding: 25px;
display: inline;
margin-right: 80px;
margin-left: 60px;
vertical-align:top;
}
fieldset#formCol2{
width: 300px;
padding: 25px;
padding-bottom: 37px;
display: inline;
vertical-align: top;
}
fieldset#formCol3 {
clear: both;
width: 740px;
margin: 30px auto 0 60px;
text-align: center;
padding: 25px;
}
select {
margin-bottom: 15px;
}
#sendButton {
width: 80px;
}
textarea {
width: 450px;
height: 150px;
padding: 5px;
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 11pt;
}
placeholder {
font-size: 11pt;
font-style: italic;
}
#denotes {
text-align: center;
margin-top: -20px;
margin-bottom: -20px;
font-weight: 100;
}
/* HIDDEN SPAM TRAP BOX */
input.random {display: none;}
/* FOOTER */
#footer {
width: 900px;
margin: 100px auto 0 auto;
text-align: center;
padding-top: 60px;
padding-bottom: 20px;
border-top: 1px dashed #666;
}
#footerCopy {
font-family: HelveticaNeue-Light, Helvetica Neue, Arial, sans-serif;
font-size: 10pt;
font-weight: 100;
text-align: center;
}
.siteLink {
text-align: center;
font-family: Helvetica Neue, Arial, sans-serif;
font-size: 28pt;
font-weight: 100;
-webkit-transition: color 0.8s linear;
-moz-transition: color 0.8s linear;
}
.siteLink:hover {color: #ce984e; border-bottom: none;}
#profTutor {
text-align: center;
font-family: Helvetica Neue, Arial, sans-serif;
font-size: 14pt;
font-weight: 100;
font-variant: small-caps;
margin-bottom: 20px;
}
/* IPHONE RULES */
#media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
div#rightContent1, div#rightContent2, div#rightContent3 {
display: block;
}
}
Related
How would I go about adding a sticky footer to the bottom of my page that isn't fixed. I made the mistake of adding the footer to my website last. The footer would be on top of an absolute positioned image. I tried using the absolute position, min-height solution but it didn't work. The footer isn't at the bottom of the total page (it will be at the bottom of the page of the initial starting position). Here is the HTML code and CSS code. I'm not sure where the issue/conflict and I have tried scanning and looking in the code but can't see it. HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> Home </title>
<meta name="description" content="A music review website">
<link rel="stylesheet" href="css/main.css">
</head>
<body class="homepage">
<header>
<a href="index.php">
<img class="banner"
src="Pictures/second_banner_image_blue.jpg">
</a>
</header>
<nav>
<a class="homelink" id="activehome" href="index.php">Home</a>
<a class="reviewasonglink" href="Review_a_song.php">Review a
song</a>
<a class="reviewslink" href="Sort_by_rating.php">Reviews</a>
<a class="faqlink" href="faq.php">FAQ</a>
<a class="contactlink" href="contactpage.php">Contact us</a>
<form method="get" action="search.php">
<input type="text" name="q" class="searchbox"
placeholder="Search for a song, album or artist here...">
<input type="image" name="Search"
src="Pictures/magnifyingglass.png" class="searchbutton">
</form>
</nav>
<a href="Review_a_song.php"><img class="homepic1"
src="Pictures/concert_edit.jpg"></a>
<a href="Review_a_song.php"><p class="hometitle1">Review your
favourite music</p></a>
<a href="sort_by_rating.php"><img class="homepic2"
src="Pictures/songreviews_edit.jpg"></a>
<a href="sort_by_rating.php"><p class="hometitle2">Read
comprehensive reviews</p></a>
<a href="faq.php"><img class="homepic3"
src="Pictures/questions_edit.jpg"></a>
<p class="hometitle3">Questions?</p>
<footer>
<p>Copyright</p>
</footer>
</body>
</html>
CSS:
#font-face {
font-family: opensans; src: url('fonts/OpenSans.tff');
font-family: roboto; src: url('fonts/Roboto.tff');
font-family: robotobold; src: url('fonts/RobotoBold.tff');
font-family: headings; src: url('fonts/adamcg.otf');
}
html {
position: relative;
min-height: 100%;
}
body {
margin:0px;
padding: 0px;
height: 100%;
overflow-x: hidden;
background-attachment: fixed;
}
.homepage {
background-attachment: scroll;
}
.homepic1 {
height: 100%;
width: 100%;
position: absolute;
cursor: pointer;
}
.homepic2 {
height: 80%;
width: 100%;
position: absolute;
cursor: pointer;
transform: translateY(500px);
}
.homepic3 {
height: 100%;
width: 100%;
position: absolute;
cursor: pointer;
transform: translateY(972px);
}
header {
height: 86px;
}
a {
text-decoration-line: none;
}
.background {
display: block;
height: 100%;
}
a:visited {
color: currentColor;
}
h1 {
margin-left: 53px;
margin-top: 80px;
color: white;
font-family: opensans, sans-serif;
}
h2 {
margin-left: 46px;
text-decoration-line: underline;
color: white;
position: absolute;
transform: translateY(428px);
font-family: opensans, sans-serif;
}
h4 {
font-size: 30px;
font-family: opensans, sans-serif;
}
.review_content{
margin-left: 53px;
transform: translateY(50px);
color: white;
font-family: opensans, sans-serif;
}
nav {
width: 100%;
height: 40px;
background-color:white;
border: 0.5px solid black;
z-index: 1;
position: fixed;
}
nav a{
width:11.4%;
float: left;
text-align: center;
height: 30px;
padding-top: 10px;
color: black;
}
.homelink {
margin-left: 0px;
}
.hometitle1 {
color: black;
margin-top: 90px;
font-size: 65px;
position: absolute;
font-family: headings, sans-serif;
margin-left: 200px;
font-weight: 600;
text-shadow: 2px 2px 6px #565656;
cursor: pointer;
}
.hometitle2 {
color: black;
margin-top: 0px;
font-size: 65px;
position: absolute;
font-family: headings, sans-serif;
color: #16308d;
margin-left: 190px;
font-weight: 600;
text-shadow: 3px 3px 6px #0f2163;
transform: translateY(600px);
cursor: pointer;
}
.hometitle3 {
color: black;
margin-top: 0px;
font-size: 65px;
position: absolute;
font-family: headings, sans-serif;
color: #510000;
margin-left: 440px;
font-weight: 600;
text-shadow: 2px 2px 6px #450000;
transform: translateY(1070px);
cursor: pointer;
}
.reviewasonglink, .reviewslink, .contactlink, .faqlink, .homelink {
transition: 0.4s;
font-size: 16px;
text-decoration: none;
font-family: opensans, sans-serif;
}
.reviewasonglink:hover, .reviewslink:hover, .contactlink:hover,
.faqlink:hover, .homelink:hover {
background-color: #404040;
color:#e6e6e6;
}
#activesortbyrating, #activereviewasong, #activecontact, #activefaq,
#activehome {
background-color: #5e5e5e;
color:#e6e6e6;
}
#activesortbyrating:hover, #activereviewasong:hover, #activecontact:hover,
#activefaq:hover, #activehome:hover {
background-color: #404040;
color:#e6e6e6;
}
.banner {
z-index: 1;
position: fixed;
}
.searchbox {
float: right;
width: 230px;
margin-right: 80px;
padding: 5px;
height: 29px;
}
input::placeholder {
color: black;
font-size: 12.8px;
font-family: opensans, sans-serif;
}
input[name="q"] {
font-family: opensans, sans-serif;
border: none;
padding-bottom: 0px;
border-bottom: 0.8px solid black;
}
textarea:focus, input:focus{
outline: none;
}
.formentries {
margin-top: 80px;
margin-left: 53px;
color: white;
font-family: opensans, sans-serif;
}
.warning {
font-weight: bold;
}
.formentry {
font-size: 20px;
font-weight: bold;
font-family: opensans, sans-serif;
}
.searchbutton {
float: right;
width: 35px;
height: 35px;
transform: translateX(273px);
font-family: opensans, sans-serif;
}
input[type="radio"] {
position: absolute;
font-family: opensans, sans-serif;
}
textarea {
border: 1px solid black;
border-radius: 5px;
background-color: lightgray;
font-family: opensans, sans-serif;
}
select {
background-color: lightgray;
}
.formbox {
font-size: 20px;
font-family: opensans, sans-serif;
border: 1px solid black;
background-color: lightgray;
border-radius: 5px;
font-family: opensans, sans-serif;
}
.contactform {
padding-left: 53px;
margin-top: 25px;
font-size: 19px;
font-weight: 600;
color: white;
font-family: opensans, sans-serif;
}
.contactinfo {
padding-left: 53px;
margin-top: 70px;
color: white;
font-family: roboto, sans-serif;
}
.contactentry {
font-size: 18px;
font-family: opensans, sans-serif;
border: 1px solid black;
background-color: lightgray;
border-radius: 5px;
font-family: opensans, sans-serif;
}
.contactmessage {
font-size:15px;
font-family: opensans, sans-serif;
}
.searchtitle, .searchartist, .searchalbum {
color: white;
transform: translateX(53px);
font-family: opensans, sans-serif;
}
.searchtitle {
font-weight: bolder;
font-size: 18px;
text-decoration-line: none;
padding-top: 20px;
}
.FAQ {
margin-left: 53px;
margin-top: 80px;
margin-right: 30px;
color: white;
font-family: opensans, sans-serif;
}
.genreoptions {
max-width: 960px;
margin-left: 45px;
margin-top: 70px;
position: absolute;
border-spacing: 1;
}
.ratingoptions {
max-width: 960px;
transform: translateX(45px);
margin-top: 277px;
position: absolute;
border-spacing: 1;
}
.reviews th {
font-weight: 400;
background: #024457;
color:white;
}
.reviews {
max-width: 960px;
margin-left: 44px;
margin-top: 520px;
position: absolute;
margin-bottom: 10px;
}
.genreoptions thead th {
font-weight: 400;
background: #8a97a0;
color: #FFF;
}
.ratingoptions thead th {
font-weight: 400;
background: #8a97a0;
color: #FFF;
}
.ratingoptions tr {
background: #f4f7f8;
border-bottom: 1px solid #FFF;
margin-bottom: 5px;
}
.genreoptions tr {
background: #f4f7f8;
border-bottom: 1px solid #FFF;
margin-bottom: 5px;
}
.reviews tr {
background:white;
border-bottom: 1px solid #FFF;
margin-bottom: 5px;
}
.ratingoptions tr:nth-child(even) {
background: #e8eeef;
}
.genreoptions tr:nth-child(even) {
background: #e8eeef;
}
.reviews tr:nth-child(even) {
background:#e0ebfc;
}
th, td, tr {
padding: 8px;
font-weight: 300;
font-family: opensans, sans-serif;
}
.circle {
width: 17px;
height: 17px;
float: right;
padding-left: 25px;
}
input[type=radio]{
visibility: hidden;
position: absolute;
}
label > input + img{
cursor:pointer;
filter: brightness(0%);
transition: all 0.5s ease;
}
label > input:checked + img {
filter: brightness(100%);
}
label {
cursor: pointer;
display: block;
font-family: opensans, sans-serif;
}
.genreoptions, .ratingoptions td {
width: 33%;
}
.reviews tbody tr:hover td {
background-color:#d4d5d6;
}
.genreoptions tbody td:hover {
background-color: lightgray;
}
.ratingoptions tbody td:hover {
background-color: lightgray;
}
.reviews th, td {
cursor: pointer;
text-align: left;
}
.sortinfo {
position: absolute;
color: white;
transform: translate(45px, 468px);
font-family: opensans, sans-serif;
}
.filterbutton {
position: absolute;
transform: translate(45px, 405px);
width: 180px;
height: 30px;
border-radius: 20px;
background-color:white;
border: 0.5px solid midnightblue;
cursor: pointer;
font-family: opensans, sans-serif;
}
.body {
margin-top: 5px;
margin-left: 8px;
font-family: opensans, sans-serif;
}
.noreviewsinfo {
position: absolute;
transform: translate(45px, 420px);
color: white;
font-size: 30px;
font-family: opensans, sans-serif;
}
.submitbutton {
height: 30px;
width: 80px;
font-size: 16px;
margin-top: 8px;
margin-bottom: 8px;
background-color:steelblue;
color: black;
border: 0.5px solid black;
border-radius: 5px;
cursor: pointer;
box-shadow: inset 0 0 0 1px #27496d;
font-family: opensans, sans-serif;
}
.submitbutton:hover {
filter: brightness(70%);
font-family: opensans, sans-serif;
}
.nosearchresults {
color: white;
margin-left: 53px;
margin-top: 5px;
font-size: 17px;
font-family: opensans, sans-serif;
}
footer {
height: 30px;
width: 100%;
background-color: gray;
border: 1px solid black;
}
So I am trying to align the toggle button I'm creating using CSS to be aligned with the 'paragraph description' as I'd like to call it but I can't seem to make it look the way I wanted it to look. I've not only provided a wireframe but a jsfiddle as well.
HTML code:
<p id="displayOption">Display Options</p>
<div id="onoffSwitch">
<ul id="btn" class="btn">
<li class="display-title" id="spoilers">
<span id="spoilerSwitch">Show/Hide Spoilers:</span>
<ul class="selector">
<li class="on">
<span class="onoffswitch-inner">
</li>
<li class="off">
<span class="onoffswitch-switch"></span></span>
</li>
</ul>
</li>
<li class="display-title" id="day-night">
<span id="day-nightSwitch">Day or Night Vision:</span>
<ul class="selector">
</ul>
</ul>
</div>
CSS code:
/***** options *****/
#displayOption {
text-align: center;
font-family: "Comic Sans MS", cursive, sans-serif;
border: .88px #efdaae;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
/*-moz-border-radius: 10px;
-webkit-border-radius: 10px;*/
width: 258px;
background-color: #945e38;
padding: .1px;
margin: 0px;
font-variant: small-caps;
font-size: 1.5em;
color: #fdfdfa;
}
#displayOption-invert {
text-align: center;
font-family: "Comic Sans MS", cursive, sans-serif;
border: .88px #efdaae;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
/*-moz-border-radius: 10px;
-webkit-border-radius: 10px;*/
width: 258px;
background-color: #efdaae;
padding: .1px;
margin: 0px;
font-variant: small-caps;
font-size: 1.5em;
color: #030303;
}
#onoffSwitch {
font-family: "Comic Sans MS", cursive, sans-serif;
border: 1px solid #945e38;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
padding: 7px 10px;
line-height: normal;
text-align: left;
padding-bottom: 18px;
color: #000000;
}
#onoffSwitch-invert {
font-family: "Comic Sans MS", cursive, sans-serif;
border: 1px solid #efdaae;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
padding: 7px 10px;
line-height: normal;
text-align: left;
padding-bottom: 18px;
color: #ffffff;
}
/*** unordered list ***/
#btn, #btn ul {
padding: 0px;
margin: 0px;
list-style-type: none; /*bullet removel*/
list-style: none; /*bullet removel*/
text-decoration: none; /*bullet removel*/
}
.display-title {
display: inline-block;
}
/*** text ***/
#spoilerSwitch, #daynightVision {
font-family: "Comic Sans MS", cursive, sans-serif;
line-height: normal;
color: #000000;
text-align: left;
margin-bottom: 10px;
}
#spoilerSwitch-invert, #daynightVision-invert {
font-family: "Comic Sans MS", cursive, sans-serif;
line-height: normal;
color: #FFFFFF;
text-align: left;
margin-bottom: 10px;
}
/*** toggle button ***/
.onoffswitch {
position: relative;
width: 50px;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select: none;
}
.onoffswitch-checkbox {
display: none;
}
.onoffswitch-label, .onoffswitchInvert-label {
display: block;
overflow: hidden;
cursor: pointer;
border: 2px solid #999999;
border-radius: 0px;
}
.onoffswitch-inner, .offswitchInvert-inner {
display: block;
width: 200%;
margin-left: 100%;
transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
display: block;
float: left;
width: 50%;
height: 30px;
padding: 0;
line-height: 26px;
font-size: 14px;
color: white;
font-family: Trebuchet, Arial, sans-serif;
font-weight: bold;
box-sizing: border-box;
border: 2px solid transparent;
background-clip: padding-box;
}
.onoffswitch-inner:before {
content: "";
padding-left: 10px;
background-color: #2E8DEF;
color: #FFFFFF;
}
.onoffswitch-inner:after {
content: "";
padding-right: 10px;
background-color: #CCCCCC; color: #333333;
text-align: right;
}
.onoffswitch-switch {
display: block;
width: 25px;
margin: 0px;
background: #000000;
position: absolute;
top: 0;
bottom: 0;
right: 65px;
transition: all 0.3s ease-in 0s;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
right: 0px;
}
Looking in Element browser in Google Chrome, you have this class messed up
.onoffswitch-inner:before, .onoffswitch-inner:after {
You should not be using "width: x%". You should change the % to some unit such as px.
What I need to know is how to make my CSSconfigured for div/element collision detection. Now, I realized that other questions asking for collision detection is kind of the opposite of what I need; to NOT fix it but to create it, and this is what I mean; I need to have, for example, a #altnav element, which is a sidebar, that will continually reach until it hits the #footer element using a min-height: 100% tag. What it currently does is just reach down until 100%, but stops at a certain point in my page (http://www.thehideout.somee.com/games.html to see what I mean). Another example is my #wrap element with a border-left: 2px solid #000000; tag reaches past the #footer element; which I need it to stop at the footer element. So what I'm asking is how can I make the elements detect if it's colliding with another element, and to stop at that element. Priority is key; I would rather have the sidebar with footer fixed first than the #wrap and border tag. Here's the CSS code for the key elements, followed by the whole css incase another #element is causing this.
#wrap {
width: 760px;
margin: auto;
}
#altnav {
margin-top: 35px;
margin-bottom: 10px;
float: right;
width: 190px;
border-left: 2px dashed #000000;
border-bottom: 2px dashed #000000;
min-height: 100%;
background: orange;
}
#altnav p {
color: black;
font-family: terminal;
font-size: 14px;
border-bottom: 1px solid black;
border-top: 1px solid black;
}
#altnav h2 {
text-align: center;
color: black;
font-family: terminal;
font-size: 18px;
}
#body {
padding-top: 50px;
width: 570px;
font-family: Arial, Verdana, Terminal;
font-size: 14px;
}
#footer {
width: 730px;
height: 60px;
clear: both;
font-family: Tahoma, Arial, Terminal, San-Serif;
font-size: 10px;
color: #c9c9c9;
border-top: 1px solid #efefef;
padding: 13px 25px;
line-height: 18px;
}
#footer li {
padding: 0px 2px 0px 2px;
float: right;
display: inline;
text-align: left;
font-family: Terminal, Arial, San-Serif, Tahoma;
font-size: 10px;
}
#footer a {
font-family: Terminal, Arial, San-Serif, Tahoma;
font-size: 10px;
color: #c9c9c9;
text-decoration: none;
}
#footer a:hover {
font-family: Terminal, Arial, San-Serif, Tahoma;
font-size: 10px;
color: red;
text-decoration: underline;
}
#footer #footnav {
display: inline;
width: 310px;
float: right;
text-align: left;
position: relative;
bottom: 65px;
}
Full StyleSheet
html, body {
margin: 0;
padding: 0;
}
.hidden {
display: none;
}
body {
background-position: center;
background-repeat: no-repeat;
font-size: 12px;
color: #666666;
}
#font-face {
font-family: 'karmatic_arcaderegular';
src: url('fonts/ka1-webfont.eot');
src: url('fonts/ka1-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/ka1-webfont.woff2') format('woff2'),
url('fonts/ka1-webfont.woff') format('woff'),
url('fonts/ka1-webfont.ttf') format('truetype'),
url('fonts/ka1-webfont.svg#karmatic_arcaderegular') format('svg');
font-weight: normal;
font-style: normal;
}
#wrap {
width: 760px;
margin: auto;
}
#header {
height: 60px;
width: auto;
background: #db6d16
url(VexIMG/header.png);
}
#navigation {
width: 760px;
height: 35px;
position: absolute;
border-bottom: 2px solid #000000;
background: orange;
padding: 0px;
}
#navigation .padding {
padding: 2px;
}
#navigation .navlinks {
position: absolute;
top: 1px; left: 0px;
}
#navigation .navlinks ul {
margin: 0px;
padding: 0px;
text-align: center;
list-style-type: none;
width: 760px;
height: 35px;
}
#navigation .navlinks li {
position: relative;
top: 5px;
margin: 0px 5px 0px 5px;
list-style-type: none;
display: inline;
}
#navigation .navlinks li a {
color: #000000;
padding: 5px 0px 9px 0px;
text-decoration: none;
font-size: 18px;
font-family: karmatic_arcaderegular;
padding: 5px 0px 9px 0px;
}
#navigation .navlinks li a:hover {
margin: 0px;
color: #ffffff;
background: orange;
text-decoration: underline;
}
#altnav {
margin-top: 35px;
margin-bottom: 10px;
float: right;
width: 190px;
border-left: 2px dashed #000000;
border-bottom: 2px dashed #000000;
min-height: 100%;
background: orange;
}
#altnav p {
color: black;
font-family: terminal;
font-size: 14px;
border-bottom: 1px solid black;
border-top: 1px solid black;
}
#altnav h2 {
text-align: center;
color: black;
font-family: terminal;
font-size: 18px;
}
#body {
padding-top: 50px;
width: 570px;
font-family: Arial, Verdana, Terminal;
font-size: 14px;
}
#body .secret img {
width: 150px;
height: 100px;
border: 2px solid black;
}
#body .game {
padding: 3px 3px 10px 3px;
}
#body .game img {
align: center;
float: left;
width: 175px;
height: 101px;
border: 2px ridge #ff0000;
}
#body .game caption {
padding-left: 1px;
}
#body .space {
padding-top: 10px;
padding-bottom: 10px;
border-top: 4px ridge red;
border-bottom: 4px ridge red;
}
#body .game caption {
margin-top: 2px;
float: right;
font-family: Terminal, Arial, Verdana, San-Serif;
font-size: 12px;
color: #000000;
border-bottom: 2px dashed #e9e9e9;
}
#body .game a {
font-family: Terminal, Arial, San-Serif, Tahoma;
font-size: 10px;
color: #c9c9c9;
text-decoration: none;
}
#body .game a:hover {
font-family: Terminal, Arial, San-Serif, Tahoma;
font-size: 10px;
color: red;
text-decoration: underline;
}
#footer {
width: 730px;
height: 60px;
clear: both;
font-family: Tahoma, Arial, Terminal, San-Serif;
font-size: 10px;
color: #c9c9c9;
border-top: 1px solid #efefef;
padding: 13px 25px;
line-height: 18px;
}
#footer li {
padding: 0px 2px 0px 2px;
float: right;
display: inline;
text-align: left;
font-family: Terminal, Arial, San-Serif, Tahoma;
font-size: 10px;
}
#footer a {
font-family: Terminal, Arial, San-Serif, Tahoma;
font-size: 10px;
color: #c9c9c9;
text-decoration: none;
}
#footer a:hover {
font-family: Terminal, Arial, San-Serif, Tahoma;
font-size: 10px;
color: red;
text-decoration: underline;
}
#footer #footnav {
display: inline;
width: 310px;
float: right;
text-align: left;
position: relative;
bottom: 65px;
}
Please help!
I tried many tricks to remove the white space under my footer but none of them solved my problem. I noticed that the white space is only visible in the pages with text, p and h1 tags. Any help is highly appreciated.
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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Olive Green Studio</title>
<link href="oliva.css" rel="stylesheet" type="text/css" />
<!—[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="ie6.css" />
<![endif]—>
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 30px; }
.twoColFixLtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]--></head>
<body class="twoColFixLtHdr">
<div id="container">
<div id="header"><!-- end #header -->
<div id="logo">
<a href="index.html">
<img src="olivaimages/olivegreenlogoweb.png" border="none"/>
</a>
</div>
<div id="sidebar1">
<ul>
<li>Home</li>
<li>Work</li>
<li>About</li>
<li>Contact</li>
</ul>
<!-- end #sidebar1 --></div>
</div>
<div id="mainContent">
<h1>Contact Us </h1>
<p>If you need a creative help or want to take your project to the next level please don't hesitate to drop us a line.</p>
<a class="worklinks" href= "mailto:info#olivegreenstudio.com"> info#olivegreenstudio.com</a>
<!-- end #mainContent --></div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div class="clearfooter"></div>
<!-- end #container -->
</div>
<div id="footerframe">
<div id="footer">
<div id="footer2">
<div id="address">Khobar<br> Saudi Arabia </div>
<div id="contact">
<strong>Services:</strong><br> Logos<br>Branding<br>Identity<br>Collaterals<br>Packaging<br> Web Design & Development <br>
</div>
<div id="email">
If you have a project inquiry, we will be happy to answer you <a class="contactlink" href="mailto:info#olivegreenstudio.com"> here.</a>
</div>
<div class="social">
<div class="twitter">
<a href="https://twitter.com/OliveGreenSTU" />
<img src="olivaimages/twitterbirdwebgreen.png" onmouseover="this.src='olivaimages/twitterbirdweb-lightgreen.png'" onmouseout="this.src='olivaimages/twitterbirdwebgreen.png'" />
</div>
</a>
<div id="pinterest">
<a href="http://pinterest.com/olivegreenstu/">
<img src="olivaimages/pinterestwebgreen.png" onmouseover="this.src='olivaimages/pinterestweb-lightgreen.png'"
onmouseout="this.src='olivaimages/pinterestwebgreen.png'" />
</a>
</div>
<div class="copywrite"> © 2013 Olive Green. All rights reserved.</div>
</div>
</div>
</div>
</div>
</body>
</html>
CSS:
#charset "UTF-8";
body {
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 100%;
background-color: #FFFFFF;
height: 100%;
}
.twoColFixLtHdr #header {
height: 170px;
background-color: #FFFFFF;
background-repeat: no-repeat;
background-position: center center;
margin: 0px;
padding: 0;
}
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
color: #5A6219;
text-decoration: none;
font-style: normal;
font-weight: normal;
padding-bottom: 20px;
}
h2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: normal;
color: #908B23;
text-decoration: none;
line-height: 1.5em;
margin-bottom: 30px;
}
p {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
line-height: 1.5em;
font-weight: normal;
color: #908B23;
text-decoration: none;
margin: 0px;
}
.twoColFixLtHdr #container {
width: 900px;
text-align: left; /* this overrides the text-align: center on the body element. */
min-height: 100%;
margin-top: 0;
margin-right: auto;
margin-left: auto;
position: relative;
margin-bottom: -215px;
height: 100%;
}
.twoColFixLtHdr #mainContent {
height: 100%;
background-color: #FFF;
float: left;
width: 100%;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #CCC;
padding-top: 50px;
padding-bottom: 70px;
}
.workmaincontent {
height: 100%;
background-color: #FFF;
float: left;
width: 100%;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #CCC;
padding-top: 50px;
padding-bottom: 70px;
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
.twoColFixLtHdr #sidebar1 {
float: right; /* since this element is floated, a width must be given */
width: 300px;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 15px;
padding-left: 20px;
margin-top: 70px;
background-color: #FFFFFF;
height: 30px;
}
#sidebar1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
height: 200px;
line-height: 1.5em;
text-decoration: none;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
width: 500px;
}
#sidebar1 ul {
background-color: #FFFFFF;
list-style-type: none;
margin: 0px;
padding: 0px;
}
#sidebar1 li {
display: run-in;
list-style-type: none;
}
#sidebar1 a {
display: run-in;
text-decoration: none;
color: #918C10;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
font-weight: normal;
padding: 5px;
float: left;
width: 65px;
}
#sidebar1 a:hover {
color: #5A6219;
}
.worklinks{
font-family: Arial, Helvetica, sans-serif;
color: #5A6219;
text-decoration: none;
}
.worklinks:hover{
font-family: Arial, Helvetica, sans-serif;
color: #908B23;
text-decoration: none;
}
#print{
height: 100%;
background-color: #FFF;
width: 730px;
float: left;
padding-right: 15px;
padding-left: 15px;
margin-left: 85px;
margin-right: 85px;
}
#web{
height: 100%;
background-color: #FFF;
width: 730px;
float: left;
padding-right: 15px;
padding-left: 15px;
margin-left: 85px;
margin-top: 50px;
margin-bottom: 50px;
}
#packaging{
background-color: #FFF;
height: 100%;
width: 730px;
float: left;
padding-right: 15px;
padding-left: 15px;
margin-left: 85px;
}
.imagetitles a {
text-decoration: none;
font-family: "Century Gothic";
font-size: 25px;
font-style: normal;
font-weight: normal;
color: #00CCCC;
}
#printtitle{
bottom: -5px;
left: 333px;
}
#webtitle{
position: absolute;
left: 333px;
top: 521px;
}
#packagingtitle{
position: absolute;
left: 317px;
top: 823px;
width: 89px;
}
#bigimages{
width: 570px;
height: 100%;
}
.imagestalk {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-style: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
font-size: 14px;
line-height: 1.5em;
padding-top: 5px;
padding-right: 15px;
padding-bottom: 10px;
padding-left: 20px;
}
.thumbnails {
border: 5px solid #666666;
}
h3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
line-height: 1.5em;
font-weight: normal;
color: #5A6219;
text-decoration: none;
}
h3 a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #000000;
font-style: normal;
font-weight: normal;
text-decoration: none;
}
h3 a:visited {
color: #D0BA0B;
text-decoration: underline;
}
h3 a:hover {
color: #5A6219;
}
h3 a:active {
color: #579835;
}
.back{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
padding-left: 520px;
}
.back a:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
font-size: 14px;
font-style: normal;
font-weight: normal;
color: #666666;
}
.back a:visited {
color: #666666;
text-decoration: none;
}
.back a:hover {
color: #000000;
text-decoration: none;
}
.back a:active {
color: #333333;
text-decoration: none;
}
.source{
font-size: 15px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-style: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
.workimage {
height: 150px;
width: 200px;
float: left;
margin: 20px;
}
img {
border: 0;
}
#logo {
height: 150px;
width: 300px;
float: left;
}
#footerframe {
width: 100%;
background-color: #AEA03A;
height: 215px;
position: relative;
float: right;
}
#footer {
width: 900px;
font-family: Verdana, Arial, Helvetica;
font-size: 11px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-decoration: none;
margin-right: auto;
margin-left: auto;
background-color: #AEA03A;
float: none;
position: relative;
height: 215px;
}
#footer2 {
width: 100%;
background-color: #AEA03A;
padding-top: 30px;
float: left;
position: relative;
}
#address {
height: 50px;
width: 180px;
background-color: #AEA03A;
float: left;
text-align: left;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
text-decoration: none;
color: #5A6219;
line-height: 1.5em;
}
#contact {
height: 130px;
width: 180px;
background-color: #AEA03A;
float: left;
text-align: left;
margin-right: 180px;
margin-left: 180px;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #5A6219;
text-decoration: none;
line-height: 18px;
}
#email {
background-color: #AEA03A;
height: 50px;
width: 180px;
float: right;
text-align: left;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #5A6219;
text-decoration: none;
}
.social {
background-color: #AEA03A;
height: 35px;
width: 100%;
float: right;
margin-top: 20px;
}
#pinterest {
height: 20px;
width: 20px;
float: left;
background-repeat: no-repeat;
margin-left: 15px;
margin-bottom: 15px;
}
.twitter {
height: 20px;
width: 20px;
background-repeat: no-repeat;
float: left;
margin-bottom: 15px;
}
.copywrite {
font-size: 11px;
font-weight: lighter;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
text-align: right;
width: 300px;
background-color: #AEA03A;
float: right;
height: 15px;
color: #5A6219;
vertical-align: middle;
margin-bottom: 10px;
margin-top: 5px;
}
.contactlink {
font-family: Arial, Helvetica, sans-serif;
color: #5A6219;
text-decoration: none;
}
.contactlink a {
font-family: Arial, Helvetica, sans-serif;
color: #5A6219;
text-decoration: none;
}
.contactlink:hover {
font-family: Arial, Helvetica, sans-serif;
color: #FFFFFF;
text-decoration: none;
}
h4 {
color: #5A6219;
}
.indeximg {
height: 100px;
width: 900px;
background-repeat: no-repeat;
background-position: center top;
background-image: url(../olivaimages/indeximg.png)
}
.indexwrap {
height: 100%;
width: 810px;
padding-left: 90px;
}
#wrapper {
min-height: 100%;
}
.clearfooter {
height: 215px;
clear: both;
}
try this
#footerframe {
background-color: #AEA03A;
bottom: 0;
float: right;
height: 223px;
position: absolute;
width: 100%;
}
Replacing the footers 900px with 100% should do the trick.
I think you'll need implement a sticky footer technics by setting html,body height to 100% and
setting id#container as the following:
html, body {
margin: 0;
padding: 0;
height: 100%;
}
#container {
height: auto !important;
min-height: 100%;
height: 100%;
}
example
Unfortunately my knowledge of CSS is fairly limited, I currently have a theme, although I would like the right hand captions e.g. Contact and About to be aligned to the right so the two captions will always appear on the right hand side of the page.
Any help would be appreicated, I have identified the container in CSS - "right"
The template is located here:
http://themeforest.net/item/cleanfolio-dark/22659
CSS Code:
body {
background: url(../images/bg.png) repeat;
font: 12px Arial, Helvetica, Sans-Serif;
padding: 0;
margin: 0;
}
#container {
width: 1165px;
}
/* ---- Standard Elements ---- */
a {
color: #BBBBBB;
text-decoration: none;
}
a:hover {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:active {
color: #FFFFFF;
text-decoration: none;
}
h1, h2, h3, h4, h5 {
font-family: Arial, Helvetica, Sans-Serif;
font-weight: bolder;
color: #FFFFFF;
padding: 0;
margin: 0px 0px 0px 0px;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
p {
line-height: 1.8em;
padding: 0;
margin: 0 0 5px 0;
}
/* ---- Header ---- */
#header {
background: url(../images/blue/header_bg.png) repeat-x;
height: 130px;
}
.header_title {
float: left;
background: url(../images/blue/header_titlebg.png);
width: 370px;
height: 110px;
padding: 20px 0px 0px 30px;
}
.header_title h1 {
font-size: 47px;
font-weight: bolder;
color: #FFFFFF;
padding: 0;
margin-bottom: -4px;
}
.header_title span {
font-size: 10px;
color: #71b3f0;
}
/* ---- Left Side Elements ---- */
#left {
float: left;
width: 840px;
margin-right: 25px;
}
.portfolio_section-top {
background: url(../images/topdivider.png) no-repeat;
width: 790px;
height: 280px;
padding: 30px 10px 0px 30px;
}
.portfolio_section {
background: url(../images/divider.png) no-repeat;
width: 790px;
height: 280px;
padding: 30px 10px 0px 30px;
}
.portfolio_section-top img, .portfolio_section img {
background: #111111;
padding: 15px;
border: 1px solid #222222;
}
.portfolio_section-top h1, .portfolio_section h1 {
margin-bottom: 5px;
}
.portfolio_section-top small, .portfolio_section small {
font: 10px Arial, Helvetica, Sans-Serif;
color: #666666;
text-transform: uppercase;
line-height: 2em;
}
.portfolio_section-top p, .portfolio_section p {
font: 12px Arial, Helvetica, Sans-Serif;
color: #999999;
margin-top: 10px;
line-height: 1.8em;
}
.button_bg {
background: url(../images/blue/button_bg.png) repeat-x;
height: 14px;
font: 10px Arial, Helvetica, Sans-Serif;
color: #FFFFFF;
text-transform: uppercase;
padding: 5px 10px 5px 10px;
}
.tdmarginright td {
padding-right: 30px;
}
.tdmarginright2 td {
padding: 10px 17px 0px 0px;
}
.footer {
margin-left: 30px;
color: #666666;
}
/* ---- Right Side Elements ---- */
#right {
float: right;
width: 300px;
margin-top: 30px;
}
.sidebar_title {
background: url(../images/sidebar_titlebg.png);
width: 283px;
height: 38px;
padding: 12px 0px 0px 17px;
}
.sidebar_bg {
background: url(../images/sidebar_bg.png) repeat-y;
width: 268px;
color: #666666;
padding: 0px 15px 15px 17px;
}
.sidebar_bottom {
background: url(../images/sidebar_bottom.png) no-repeat;
width: 300px;
height: 1px;
margin-bottom: 30px;
}
Don't know if this is too obvious, but--
The CSS looks alright,
Just note that it's #right -- not .right -- so obviously in your html you'll be using div id not div class
You would use
<div id="right">content here</div>
not
<div class="right">content here</div>
hope this helps.
If you're still having problems, you should contact the vendor from where you purchased the template.