how to put article below section and aside, but above footer - html

so at first i was just doing a section and aside, with footer at bottom. no problem, they were where i wanted, now i want to add another
so i want the yellow bit which is the article to be centered below the achievements and favorites section, but above footer. i've been messing around with positions, clear, float, margins and i'm losing my sanity for this assignment that's due next week. So far all i've managed to achieve is either putting it behind or on top of the section and article.
please help.
keep in mind: i have to have a liquid page layout
body{
background:white;
margin:0;
font-family:arial;
margin-left:0;
margin-right:0;
}
#typeAbout{
font-family:'Fira Mono', monospace;
text-align:center;
position:relative;
color:black;
font-size:40px;
margin:0.5%;
width:max-content;/*this is interefering with text alignment for some reason*/
}
#typeAbout::before,
#typeAbout::after{
content:"";
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
}
#typeAbout::before{
background:white;
animation:typewriter 2s steps(11) 500ms forwards;/*steps stand for letter characters*/
}
#typeAbout::after{
width:0.125em;
background:black;
animation:typewriter 2s steps(11) 500ms forwards, blink 500ms steps(11) infinite;
}
#keyframes typewriter{
to{
left:100%;
}
}
#keyframes blink{
to{
background:transparent;
}
}
.navbar ul{
top:0;
list-style:none;
text-align:center;
background:purple;
margin:0;
margin-top:0;
padding:0.5%;
box-shadow:0 0 40px 0;
}
.navbar li{
display:inline-block;
}
.navbar a{
text-decoration:none;
text-align:center;
color:black;
width:100px;
display:block;
padding:10% 10%;
text-transform:uppercase;
}
.navbar a:hover{
background:lightgray;
}
section{
font-family:'Fira Mono', monospace;
position:absolute;
float:left;
width:28%;
height:50%;
margin-top:1%;
margin-bottom:5%;
margin-left:20%;
padding-left:1%;
background-color:white;
border-radius: 10px;
box-shadow:2px 2px 2px 2px lightgray;
}
aside{
float:right;
width:25%;
height:100%;
margin-top:1%;
margin-right:20%;
padding-left:1%;
background-color:lightgray;
border-radius: 10px;
box-shadow:2px 2px 2px 2px lightgray;
}
article{
position:inital;
background:yellow;
clear:both;
}
footer{
position: absolute;
bottom:0;
clear:both;
width:100%;
height:10%;
background-color:red;
}

Maybe you can try something like this. You didn't provide all your code so I just made something similar with your code. Let me know
body{
background:white;
margin:0;
font-family:arial;
margin-left:0;
margin-right:0;
}
#typeAbout{
font-family:'Fira Mono', monospace;
text-align:center;
position:relative;
color:black;
font-size:40px;
margin:0.5%;
width:max-content;/*this is interefering with text alignment for some reason*/
}
#typeAbout::before,
#typeAbout::after{
content:"";
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
}
#typeAbout::before{
background:white;
animation:typewriter 2s steps(11) 500ms forwards;/*steps stand for letter characters*/
}
#typeAbout::after{
width:0.125em;
background:black;
animation:typewriter 2s steps(11) 500ms forwards, blink 500ms steps(11) infinite;
}
#keyframes typewriter{
to{
left:100%;
}
}
#keyframes blink{
to{
background:transparent;
}
}
.navbar ul{
top:0;
list-style:none;
text-align:center;
background:purple;
margin:0;
margin-top:0;
padding:0.5%;
box-shadow:0 0 40px 0;
}
.navbar li{
display:inline-block;
}
.navbar a{
text-decoration:none;
text-align:center;
color:black;
width:100px;
display:block;
padding:10%;
text-transform:uppercase;
}
.navbar a:hover{
background:lightgray;
}
.wrapper{
display: flex;
justify-content: space-evenly;
}
section{
font-family:'Fira Mono', monospace;
width:100%;
height:auto;
margin-top:1%;
margin-bottom:5%;
margin-left:20%;
padding-left:1%;
background-color:white;
border-radius: 10px;
box-shadow:2px 2px 2px 2px lightgray;
}
aside{
width:100%;
height:100%;
margin-top:1%;
margin-right:20%;
padding-left:1%;
background-color:lightgray;
border-radius: 10px;
box-shadow:2px 2px 2px 2px lightgray;
}
article{
position:inital;
background:yellow;
clear:both;
}
footer{
position: absolute;
bottom:0;
clear:both;
width:100%;
height:10%;
background-color:red;
}
<nav class="navbar">
<ul>
<li>HOME</li>
<li>ORIGIN</li>
<li>ABOUT</li>
<li>STUDY</li>
<li>ANIMATION</li>
</ul>
</nav>
<div class="wrapper">
<div>
<section>This is the achievements</section>
</div>
<div>
<article> This is your article</article>
</div>
<div>
<aside> This is your Favourite</aside>
</div>
</div>

Related

Anyway to fix it the code so that my photo entries are not round like my sidebar

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;
}

when i use an id of a div in the url margin-top doesnt work on container

i have a navbar that resizes when you have a smaller device, it works very well and very responsive, however when i link to the services.html#templates the margin top for the container does not work at all and i have blank space at the bottom of it, here is the html and css:
<!DOCTYPE html>
<html>
<head>
<title>Welcome to FinalProject</title>
<!-- Link to the master style -->
<link href="styles/master.css" type="text/css" rel="stylesheet">
<link href="styles/table.css" type="text/css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script
src="http://code.jquery.com/jquery-3.1.1.js"
integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA="
crossorigin="anonymous"></script>
<script src="js/menu.js"></script>
</head>
<body>
<nav>
<div id="leftlogo">
<div id="toggler">
☰
</div>
<a href="index.html">
<span id="logo">
</span>
</a>
</div>
<ul id="menu">
<li>About Us</li>
<li>Contact Us</li>
<li>Services</li>
<li>Members</li>
</ul>
</nav>
<div id="container">
<main>
<div class="title">
Services
</div>
<table>
<tr>
<th></th>
<th class="type">Personal</th>
<th class="type">Business</th>
</tr>
<tr>
<th class="left">Bandwidth</th>
<td>15GB</td>
<td>1TB</td>
</tr>
<tr>
<th class="left">Domain Name</th>
<td>Yes, charged</td>
<td>Yes, free (if not premium)</td>
</tr>
<tr>
<th class="left">Hosting</th>
<td>Yes, charged</td>
<td>Yes, charged</td>
</tr>
<tr>
<th class="left">Customizable</th>
<td>Yes, charged</td>
<td>Yes, free</td>
</tr>
<tr>
<th class="left">Delivery</th>
<td>Faster</td>
<td>Fast</td>
</tr>
<tr>
<th class="left">suitable for</th>
<td>Artists, bloggers, vloggers, etc...</td>
<td>Companies, startups, organizations, etc...</td>
</tr>
<tr>
<th class="left">Pricing</th>
<td>$75/month +</td>
<td>$400/month +</td>
</tr>
<tr>
<th></th>
<td class="bigger" id="personal">Buy Personal</td>
<td class="bigger" id="business">Buy Business</td>
</tr>
</table>
<div class="title">
Templates
</div>
<div class="section" id="templates">
<img src="images/customize.png" class="leftimage">
<div class="smtitle righttext">Templates</div>
<div class="righttext">
<div class="template"><img src="images/globe.png">Template #1</div>
<div class="template"><img src="images/user.png">Template #2</div>
<div class="template"><img src="images/brain.png">Template #3</div>
<div class="template"><img src="images/customize.png">Template #4</div>
<div class="template"><img src="images/framework.png">Template #5</div>
<div class="template"><img src="images/speed.png">Template #6</div>
<div class="righttext">More...</div>
</div>
</div>
</main>
</div>
<footer>
<div id="leftfooter">
<script type="text/javascript">
var year = new Date();
year = year.getFullYear();
document.getElementById('leftfooter').innerHTML = year+' © Copyrighted Peter Bou Saada';
</script>
</div>
<div id="rightfooter">
Inquiries? Send me an Email
</div>
</footer>
</body>
</html>
here is master.css:
/* precautions to prevent any default margins or paddings set by the users browser*/
body,html{
margin:0;
padding:0;
width:100%;
height:100%;
}
body{
overflow:hidden;
}
*{
box-sizing: border-box;
overflow:none;
font-family:Helvetica,Arial,Sans-serif;
}
*::selection {
background: #FF6500;
}
*::-moz-selection {
background: #FF6500;
}
nav{
position:fixed;
width:100%;
top:0;
height:70px;
background-color:#222222;
border-bottom:1px solid #FF6500;
-webkit-box-shadow: 0px 2px 100px -9px rgba(255,101,0,1);
-moz-box-shadow: 0px 2px 100px -9px rgba(255,101,0,1);
box-shadow: 0px 2px 100px -9px rgba(255,101,0,1);
}
nav ul{
width:50%;
float:right;
text-align:left;
padding:0;
margin:0;
}
nav ul li{
display:inline;
list-style-type:none;
padding-right:1em;
text-align:center;
}
nav ul li>a{
color:#FF6500;
text-decoration: none;
font-size:1.3em;
font-family:Helvetica,Arial,Sans-serif;
line-height:65px;
text-shadow:0px 0px 5px rgba(220,220,220,0.5);
transition:all 0.3s ease-out;
border-bottom:0px;
}
nav ul:hover li a{
opacity: 0.5;
}
nav ul li>a:hover{
color:#f7f7f7;
border-bottom:4px solid #FF6500;
opacity:1;
}
#toggler{
float:left;
display:none;
}
#leftlogo{
width:50%;
height:70px;
float:left;
margin:0;
padding:0;
}
#logo{
float:right;
height:70px;
width:100px;
margin-right:50px;
background-image:url('../images/finallogo.png');
background-size: 100%;
background-repeat: no-repeat;
}
#container{
margin:0;
padding:0;
height:calc(100% - 100px);
width:100%;
background-color:#333333;
padding:30px;
margin-top:70px;
margin-bottom:30px;
overflow-y:auto;
}
main{
width:80%;
margin:auto;
color:#d7d7d7;
font-size:1.2em;
letter-spacing: 0.5px;
font-family:Helvetica,Arial,Sans-serif;
}
footer{
margin:0;
padding:0;
position:fixed;
bottom:0;
width:100%;
height:30px;
background-color:#292929;
border-top:1px solid #FF6500;
line-height:30px;
color:#f7f7f7;
}
#leftfooter{
float:left;
width:50%;
padding-left:10%;
}
#rightfooter{
float:right;
width:50%;
text-align:right;
padding-right:10%;
}
#rightfooter>a{
color:#FF6500;
text-decoration: none;
}
.title{
text-align:center;
width:100%;
font-size:1.7em;
font-weight:bold;
margin-bottom:30px;
text-shadow:3px 3px 5px #222222;
}
.smtitle{
width:100%;
font-size:1.7em;
font-weight:bold;
text-shadow:3px 3px 5px #222222;
}
.section{
width:100%;
margin:0;
padding:0;
display:inline-block;
margin-bottom:30px;
transition:all ease-in 0.2s;
}
.section:hover{
border-bottom:5px solid #FF6500;
border-top:5px solid #FF6500;
padding-top:10%;
padding-bottom:10%;
}
.righttext{
padding:0 15px;
float:left;
text-align:left;
width:70%;
text-shadow:3px 3px 5px #222222;
}
.rightimage{
float:right;
width:30%;
}
.leftimage{
float:left;
width:30%;
}
.lefttext{
text-shadow:3px 3px 5px #222222;
padding:0 15px;
float:left;
text-align:left;
width:70%;
}
.section a{
color:#788893;
text-decoration:none;
}
.section a:hover{
color:#f7f7f7;
}
.normal{
width:35%;
margin:auto;
}
dt{
font-weight:bold;
font-size:1.1em;
text-shadow:2px 2px 4px #222222;
}
/* contact form */
#contact{
width:60%;
margin:auto;
}
#contact label{
width:100%;
display:inline-block;
}
#contact input, #contact textarea{
width:100%;
padding:15px 0;
font-size:1.5em;
background-color:#333333;
border:none;
color:#f7f7f7;
border-bottom:5px solid #7a7a7a;
transition:all ease-in 0.3s;
outline:none;
resize:none;
}
#contact input:focus, #contact textarea:focus{
border-bottom:5px solid #f7f7f7;
}
.form-group{
width:100%;
margin-bottom:15px;
}
.button{
width:20%;
margin-right:40%;
margin-left: 40%;
padding:10px;
border-radius:8px;
background-color:#333333;
border:1px solid #f7f7f7;
color:#f7f7f7;
font-weight:bold;
outline:none;
cursor:pointer;
transition: all ease-in 0.2s;
}
.button:hover{
border:none;
border-bottom:5px solid #f7f7f7;
border-radius:0;
width:40%;
margin-left:30%;
margin-right:30%;
background-color:#ff6500;
}
.button:active{
border-bottom:1px solid #f7f7f7;
margin-top : +4px;
}
#count{
text-shadow:5px 5px 8px #222222;
margin-bottom:10px;
}
.button[disabled]{
display:none;
}
.template{
width:25%;
padding:10px;
height:200px;
display:inline-block;
background:#292929;
margin:10px;
text-align:center;
}
.template img{
width:100%;
height:90%;
margin:0;
}
/* custom scrollbar for webkit browsers only */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 20px rgba(255,101,0,1);
}
/* Mobile and tablets */
#media only screen and (max-width:1024px){
nav{
height:50px;
}
nav ul{
margin-top:50px;
height:calc(100% - 50px);
width:100%;
position:fixed;
display:none;
background-color:rgba(0,0,0,0.7);
}
nav ul:hover li a{
opacity:0.7;
}
nav ul li:hover{
color:#f7f7f7;
border-bottom:4px solid #FF6500;
opacity:1;
}
nav ul li:hover a{
color:#f7f7f7;
border-bottom:none;
opacity:1;
}
nav ul li{
width:100%;
height:50px;
line-height:50px;
display:inline-block;
text-align:center;
background:rgba(22,22,22,0.7);
border-bottom:1px solid #FF6500;
}
nav ul li a{
line-height:50px;
}
#leftlogo{
width:100%;
height:50px;
}
#logo{
float:left;
height:50px;
width:200px;
background-image:url('../images/smlogo.png');
}
#toggler{
display:inline;
margin:0 2%;
font-size:1.5em;
line-height:50px;
font-weight:bold;
color:#FF6500;
cursor:pointer;
transition:all ease-in 0.2s;
}
#toggler:hover{
text-shadow:0 0 1px #f7f7f7;
}
#container{
margin-top:50px;
height:calc(100% - 80px);
}
.section:hover{
border:none;
padding-top:0;
padding-bottom:0;
}
.button{
width:40%;
margin-left:30%;
margin-right:30%;
}
#contact{
width:90%;
margin-left:auto;
margin-right:auto;
}
.template{
width:45%;
}
}
#media only screen and (max-width:768px){
main{
padding:5px;
font-size:0.9em;
}
nav ul{
overflow-y:auto;
}
nav{
-webkit-box-shadow: 0px 2px 50px -9px rgba(255,101,0,1);
-moz-box-shadow: 0px 2px 50px -9px rgba(255,101,0,1);
box-shadow: 0px 2px 50px -9px rgba(255,101,0,1);
}
#logo{
width:100px;
height:25px;
margin-top:12.5px;
margin-bottom:12.5px;
}
.leftimage{
display:none;
}
.rightimage{
display:none;
}
.lefttext{
width:100%;
}
.righttext{
width:100%;
}
.section:hover{
border:none;
padding-top:0;
padding-bottom:0;
}
.button{
width:100%;
margin:0;
}
#contact{
width:100%;
margin-left:auto;
margin-right:auto;
}
.button:hover{
width:100%;
margin:0;
}
.template{
width:100%;
height:auto;
}
}
no need to worry about table.css it only changes the table.
this is how it looks like: http://prntscr.com/ec50gs
this is how it is supposed to look like: http://prntscr.com/ec50wx
notice the link if it does not have #template in it, it works as it should

Making a fixed div have freely moving text when re-sizing browser

I have a header set up as fixed, so that it will always be at the top of the page when scrolling, however when the browser window is re-sized, the full header doesn't show. It is fixed, but I want the horizontal scroll to show the full header. I just need help in doing that. I tried the alternative position attributes but it failed to accomplish what I wanted, alongside my attempt with float.
Here's the html `
<div id="container">
<header>
<h1>Home</h1>
</header>
<div id="content">
<nav>
<div id="logo">
<img src="Images/Logo.png" >
</div>
<ul>
<li>
<a href="Index.HTML">
<i class="fa fa-HOME fa-2x" id="on"></i> <!--this is using the font awesome icons, reffered to in the head. Multiple divs are used as the websote declared it should be done. Purely used for the icons -->
<span class="nav-text" id="on">
HOME
</span>
</a>
</li>
<li>
<a href="standards&info.HTML">
<i class="fa fa-info fa-2x"></i>
<span class="nav-text">
STANDARDS & INFORMATION
</span>
</a>
</li>
<li>
<a href="interesting_info.HTML">
<i class="fa fa-magic fa-2x"></i>
<span class="nav-text">
INTERESTING INFORMATION
</span>
</a>
</li>
<li>
<a href="JOBS.HTML">
<i class="fa fa-briefcase fa-2x"></i>
<span class="nav-text">
JOBS
</span>
</a>
</li>
<li>
<a href="photo&video.HTML">
<i class="fa fa-picture-o fa-2x"></i>
<span class="nav-text">
PHOTOS & <BR> VIDEOS
</span>
</a>
</li>
</ul>
</nav>
</div>
<footer>
<h4>© 2015</h4>
</footer>
</div>`
And heres the CSS
#import url(http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css);
html, body{
height:100%;
width:100%;
background: rgb(110, 110, 110);
padding:0;
margin:0;
min-width:1280px;
}
#container{
width: 100%;
height: 100%;
}
.fa-2x{
font-size:2em;
}
.fa {
position: relative;
display: table-cell;
width: 60px;
height: 36px;
text-align: center;
vertical-align: middle;
font-size:20px;
margin-right:10px;
margin-left:10px;
}
nav {
background:rgb(255, 90, 9);
position:fixed;
top:0;
height:calc(100% - 40px);
min-height:600px;
left:0;
width:80px;
overflow:hidden;
transform:translateZ(0) scale(1,1);
transition:all .1s linear;
-webkit-transform:translateZ(0) scale(1,1);
-webkit-transition:all .1s linear;
-moz-transform:translateZ(0) scale(1,1);
-moz-transition:all .1s linear;
-ms-transform:translateZ(0) scale(1,1);
float:left;
z-index:100;
}
nav:hover{
width:200px;
transform:translateZ(0) scale(1,1);
transition:all .1s linear;
-webkit-transform:translateZ(0) scale(1,1);
-webkit-transition:all .1s linear;
-moz-transform:translateZ(0) scale(1,1);
-moz-transition:all .1s linear;
-ms-transform:translateZ(0) scale(1,1);;
}
nav li {
position:relative;
display:block;
width:250px;
}
#on{
color:#41A3A3;
}
nav li>a {
position:relative;
display:table;
border-collapse:collapse;
border-spacing:0;
font-size: 14px;
text-decoration:none;
transform:translateZ(0) scale(1,1);
transition:all .1s linear;
-webkit-transform:translateZ(0) scale(1,1);
-webkit-transition:all .1s linear;
-moz-transform:translateZ(0) scale(1,1);
-moz-transition:all .1s linear;
-ms-transform:translateZ(0) scale(1,1);
transition:all .1s linear;
margin-top: calc(100% / 8);
}
nav .nav-icon {
position:relative;
display: table-cell;
width:60px;
height:36px;
text-align:center;
vertical-align:middle;
font-size:18px;
}
.nav-text {
position:relative;
display: table-cell;
vertical-align:middle;
width:180px;
font-family: 'Droid Serif', serif;
font-size:14px;
}
nav ul,nav li {
outline:0;
margin:0;
padding:0;
}
header{
position:fixed;
top:0px;
margin-left:80px;
width:100%;
height:113px;
background:rgb(57, 57, 57);
z-index:90;
white-space: nowrap;
}
h1{
font-family: 'Impact', sans-serif;
text-align:center;
font-size:40px;
color:white;
line-height:50px;
padding-left:129px;
}
footer{
position:fixed;
bottom:0px;
right:0px;
width:100%;
height:40px;
background:rgb(57, 57, 57);
line-height:0px;
}
h4{
font-family: 'Impact', sans-serif;
font-size:22px;
color:white;
text-align:center;
padding-right:20px;
}
h2{
text-align:center;
font-family: 'Cuprum', sans-serif;
font-size:50px;
color:#BFBFBF;
}
#content{
height:calc(100% - 160px);
width:100%;
min-width:100%;
top:114px;
}
.twobox{
width:35%;
height:96%;
top:0;
margin-right:4%;
margin-left:6%;
float:left;
}
.title{
background-color:#7E4A00;
height:70px;
margin-bottom:8%;
margin-top:6%;
width:100%:
}
.info{
background-color:#7E4A00;
height:auto;
padding-top:10px;
width:auto%;
padding-left:4%;
padding-right:4%;
overflow:hidden;
text-overflow:ellipsis;
height:500px;
overflow-y:auto;
}
.infojob{
background-color:#7E4A00;
height:auto;
padding-top:10px;
width:auto%;
padding-left:4%;
padding-right:4%;
overflow:hidden;
text-overflow:ellipsis;
height:600px;
overflow-y:auto;
}
hr{
margin-top:40px;
margin-bottom:40px;
opacity: 0.0001;
}
p{
text-align:center;
font-family: 'Times New Roman', serif;
color:#BFBFBF;
font-size:18px;
}
#onebox{
width:40%;
height:96%;
top:0;
float:left;
margin-left:26%;
background-color:#7E4A00;
overflow-y:auto;
}
.threebox{
width:20%;
height:94%;
top:0;
margin-right:4%;
margin-left:6%;
float:left;
}
.row{
display: inline-block;
height:170px;
width:80%;
margin-left:10%;
margin-top:60px;
min-width:1120px;
}
#rows{
display: inline-block;
height:390px;
width:80%;
margin-left:10%;
margin-top:60px;
min-width:1120px;
}
.read_more{
text-align:center;
font-family: 'Times New Roman', serif;
color:#E50000;
font-size:18px;
opacity:0.8;
}
h3{
text-align:center;
font-family: 'Times New Roman', serif;
color:#BFBFBF;
font-size:30px;
}
h5{
font-family: 'Impact', sans-serif;
text-align:center;
font-size:25px;
color:#BFBFBF;
text-align:center;
}
a:link {
color:#efefef;
}
a:visited {
color:#efefef;
}
a:hover {
color:#52CCCC;
}
.boxmore{
width:18%;
height:170px;
background-color:#7E4A00;
float:left;
margin-left:4%;
margin-left:4%;
border-radius:0px 0px 30px 30px;
}
.box{
width:18%;
height:170px;
background-color:#7E4A00;
float:left;
margin-left:4%;
margin-left:4%;
}
.center{
margin-left:42%;
width:260px;
height:50px;
background-color:#7E4A00;
margin-bottom:15px;
}
.wraps{
width:220px;
height:350px;
float:left;
margin-right: calc((100% - 910px ) / 4);
}
.discriptions{
width:220px;
height:60px;
margin-top:310px;
margin-left:43px;
background-color:#7E4A00;
padding-bottom:1px;
}
.discriptionvid{
width:240px;
height:60px;
background-color:#7E4A00;
padding-bottom:1px;
}
.rowvid{
display: inline-block;
white-space:nowrap;
padding-left:3%;
margin-left:6%;
height:280px;
width:calc( (560px * 2) + (20px * 2));
}
.media{
width:240px;
height:280px;
margin-left:38px;
float:left;
}
.standard{
width:30%;
min-width:20%;
margin-left:10%;
margin-bottom:100px;
border-spacing:0px;
padding:10px;
}
.centered{
margin-left:40%;
width:260px;
height:70px;
background-color:#7E4A00;
}
.standard th {
width:200px;
border-bottom:solid #000000;
padding:20px;
background:#7E4A00;
height:50px;
}
.standard td {
border-bottom:dashed #000000;
padding: 0px 10px;
height:170px;
min-height:170px;
min-width:365px;
}
.left{
width:40%;
}
.mid {
border:1px;
border-right:solid #000000;
border-left:solid #000000;
}
.involves{
height:144px;
background-color:#7E4A00;
width:60%;
margin-top:0%;
margin-left:19%;
padding:1px;
}
.small{
height:30px;
background-color:#7E4A00;
width:60%;
margin-top:0%;
margin-left:4%;
margin-bottom:14.5px;
}
.small_ind{
margin-top:0%;
height:30px;
margin-bottom:105px ;
background-color:#7E4A00;
width:60%;
margin-left:18%;
}
And here's the JSFiddle
It isn't displaying properly as font awesome isn't working, so the nav seems a bit out of sorts. You can still see the issue with the header though, if you minimise the screen size.
Any help will be appreciated, thank you!!
Remove this CSS:
html, body{min-width:1280px;}
header{margin-left:80px;
h1{padding-left:129px;}
See JSFiddle

CSS rollover states

Can someone please help me with the rollover states on this Instagram feed?
http://www.christielakekids.com/gala2015/
I can't figure out why they are showing below the images in the very bottom row.
.image_block div:hover .rollover { bottom:0px; transition:all ease-in-out 0.5s;}
.rollover { width:100%; height:100%; background-color:rgba(92, 112, 163, 0.9); position:absolute; bottom:-100%; left:0px; display:block;}
.roll_content a { display:block; font-family: 'GothamBookRegular'; color:#FFF; font-size:25px; text-decoration: none;}
.roll_content p { margin-top: 20px; font-family: 'GothamBookRegular'; font-size:25px; color:#FFF; line-height:30px; text-align:center; padding:3% 10% 0 10%;}

Border radius on rounded images? (Links)

Am having a struggle finding a working solution to solve the invisible padding on image tabs that are rounded.
I have tried using border radius on the a tags, including the div but nothing works.
JSFiddle
Also, if anyone can help me figure out how to vertical align the images... That'd be highly appreciated.
HTML:
<div class="linksbar">
<div class="logo"><img src="images/logo2.png"></div>
<div class="logo2"><img src="images/logo.png"></div>
<div class="tabs">
<nav><ul style="min-width:90%;">
<li><img src="images/b_home.png"></li>
<li><img src="images/g_portfolio.png"></li>
<li><img src="images/g_grades.png"></li>
<li><img src="images/g_school.png"></li>
</ul></nav>
</div>
</div>
CSS:
body{
margin:0 !important;
overflow-y: scroll;
}
h2, h3, h4{
margin: 0;
}
.okbar{
width:100%;
background-color:black;
color:black;
height:25px;
min-width:90%;
}
.okbarlinks li{
list-style-type:none;
display:inline;
padding:0px 10px 0px 10px;
float:right;
}
.okbarul {
padding:3px;
}
.okbarlinks a{
font-weight:bold;
font-family:Arial, Helvetica, sans-serif;
font-size:15px;
text-decoration:none;
color:#8a8a8a;
padding:0px;
transition:all 1s ease;
-webkit-transition-delay:all .5s ease;
-moz-transition-delay:all .5s ease;
-ms-transition-delay:all .5s ease;
-o-transition-delay:all .5s ease;
position:static;
}
.okbarlinks a:hover{
color:#454545;
}
.whitestrip{
width:100%;
height:1px;
background-color:white;
color:white;
text-align:center;
}
.linksbar{
background: url('images/blacktabbar.jpg');
background-color:black;
width:100%;
height:102px;
}
.logo{
height:102px;
margin-left:5%;
width:68px;
background-repeat:no-repeat;
vertical-align:middle;
background-position: center center;
float:left;
display:block;
border-radius:15px;
}
.logo2{
height:102px;
width:200px;
padding-left:30px;
background-repeat:no-repeat;
vertical-align:middle;
background-position: center;
float:left;
display:block;
border-radius:15px;
}
.bluebody{
background: url('images/bluebar.jpg');
width:100%;
height:200px;
margin-top:1px;
padding:0;
}
.tabs ul{
margin:0;
}
.tabs li{
list-style-type:none;
display:inline;
min-width:90%;
}
.tabs a{
margin-left:10px;
text-decoration:none;
}
.tabs{
position:absolute;
text-align:center;
width:100%;
}
.bluebodyheaderfont{
font-size:22px;
font-family:'Helvetica Neue', Helvetica, Arial, 'lucida grande',tahoma,verdana,arial,sans-serif;
}