Scrollbar restructuring webpage text - html

I'm here today because I am coding a website for practice purposes and I've come across a problem. The website consists of a bunch of panels stacked vertically, with text in them and a button to create more panels. That button, makes the website be bigger vertically so the chrome scrollbar appears. (It also appears for about 1/10 of a second when a new panel is created then recalculates and hides, even if the panels haven't reached the bottom yet)
The main problem is that the scrollbar, because I have the text set to break on overflow, it restructures all text and makes it look really bad.
Is there any way I can prevent that with some css so I am always leaving some space on the right side for the scrollbar? I am leaving some margin but it just restructures the text anyway, just with a margin added to it.
here's the css for the div panel that pops in and the text div inside of it:
.poppingdiv {
display: block;
background-color: white;
border: 1px solid #dfe1e6;
border-radius: 30px;
margin-left: 0.5cm;
margin-right: 0.5cm;
margin-top: 20px;
margin-bottom: 20px;
width: auto;
height: auto;
}
.textdiv {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
font-size: 14px;
margin: 30px;
word-wrap: break-word;
animation: pop-text 0.5s ease forwards;
}
#popperdiv {
opacity: 0;
animation: pop 0.5s ease forwards;
}
#keyframes pop{
0% {opacity: 0%; width: 0px;}
100% { opacity: 100%; width: 100%;}
}
#keyframes pop-text {
0%,60% {opacity: 0%;}
100% {opacity: 100%;}
}
.buttonround {
display: block;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-weight: normal;
background-color: rgb(255, 132, 128);
border: 3px solid rgb(255, 132, 128);
color: #fffefd;
position: fixed;
font-size: 30px;
bottom: 0.5cm;
right: 0.5cm;
width: 50px;
height: 50px;
border-radius: 50%;
}
.buttonround:hover {
transition: color 150ms ease-in-out;
background-color: rgb(255, 255, 255);
color: rgb(255, 132, 128);
}
.buttonround:active{
background-color: #ff8181;
color: white;
}
and the html: (the text is completely random)
<div id="container">
<div class="popperdiv" id="popperdiv">
<div class="textdiv">
Cottage out enabled was entered greatly prevent message. No procured unlocked an likewise. Dear but what she been over gay felt body. Six principles advantages and use entreaties decisively. Eat met has dwelling unpacked see whatever followed. Court in of leave again as am. Greater sixteen to forming colonel no on be. So an advice hardly barton. He be turned sudden engage manner spirit.
<br><br>
By in no ecstatic wondered disposal my speaking. Direct wholly valley or uneasy it at really. Sir wish like said dull and need make. Sportsman one bed departure rapturous situation disposing his. Off say yet ample ten ought hence. Depending in newspaper an september do existence strangers. Total great saw water had mirth happy new. Projecting pianoforte no of partiality is on. Nay besides joy society him totally six.
</div>
</div>
</div>
<button class="buttonround" onclick="onAddButtonClick()">+</button>
js:
var divnum = 0
function onAddButtonClick () {
var container = document.getElementById("container");
var newcont = document.createElement("div");
newcont.setAttribute("class", "popperdiv");
newcont.setAttribute("id", "cont" + divnum)
newcont.setAttribute("id", "popperdiv")
container.prepend(newcont);
var newtext = document.createElement("div");
newtext.setAttribute("class", "textdiv");
newtext.innerText = "Text"
newcont.appendChild(newtext);
divnum++;
}

Remove width add a border to the pop keyframe
#keyframes pop{
0% {opacity: 0%; border: 0px solid #dfe1e6;}
100% { opacity: 100%; border: 1px solid #dfe1e6;}
}

Related

How to make CSS multiline typewriter effect responsive?

Goal & Issue: I wanted to have a responsive typewriter effect in my header where text would resize and lines would break with the screen. To sorta' achieve that I made each line its own p with it's own animation & keyframes, but this isn't responsive. I tired to make the header a flexbox, but it doesn't seem to flex at al--the text goes off screen when I simulate a mobile view. I don't want to use JavaScript, so I'm looking to stick with CSS.
Main Questions
Is it possible to have multi-line typewriter text wrap responsively?
Most of the other answers to this question suggested using a flexbox. I've implemented them successfully elsewhere, but I'm having difficulties with this component. What am I doing wrong? Should I use media queries instead and/or alongside a flexbox?
Small Side Questions
Do I even need to width: 100% in my keyframes? With it enabled the cursor runs past the end of the first two lines of text (but not the others).
Do I need to define html and body as height: 100% for this component?
Here's the codepen: https://codepen.io/nat-jt/pen/rNedexG and the code:
HTML:
<header class="header-main">
{% include nav.html %}
<!-- Typewriter -->
<div class="screen">
<h1 class="anim-typewriter1">_Hi, I'm Natalie</h1>
<p class="anim-typewriter2">
_I do user research + ethnography
</p>
<p class="anim-typewriter3">
_I use my background in anthropology + cognitive science to try
</p>
<p class="anim-typewriter4">
& understand the intersections of lived experiences + contexts
</p>
<p class="anim-typewriter5">
_In my work I break complex problems into understandable
</p>
<p class="anim-typewriter6">
components & provide actionable findings
</p>
</div>
</header>
SASS:
html.header-main, body.header-main
height: 100%
header.header-main
position: relative
z-index: 1
display: flex
flex-direction: column
align-items: flex-start
justify-content: flex-start
width: 100%
height: 100vh // calc(100vh - 8em)
min-height: 100%
padding: 4em
overflow: hidden
background-color: rgb(25,25,25)
h1, p
position: relative
top: 25%
// width: 35em
// width: 65ch
border-right: 2px solid $comp-green
color: rgba(255,255,255,.75)
font-family: 'Anonymous Pro', monospace
font-size: 130%
text-align: left
white-space: nowrap
overflow: hidden
//transform: translateY(-50%)
h1
font-size: 250%
font-weight: 600
width: 9.05em
width: 16ch
/* Animation */
.anim-typewriter1
width: 9.05em
width: 16ch
animation: typing1 1.5s steps(16) 350ms 1 normal both
.anim-typewriter2
width: 18.75em
width: 33ch
margin-top: .5em
opacity: 0
animation: typing2 2s steps(33) 3s 1 normal both
.anim-typewriter3
width: 35.7em
width: 63ch
margin-top: 1em
opacity: 0
animation: typing3 2s steps(63) 5s 1 normal both
.anim-typewriter4
width: 35.1em
width: 62ch
margin-bottom: 1em
opacity: 0
animation: typing4 2s steps(62) 7s 1 normal both,cursor_blink .8s steps(44) infinite normal
.anim-typewriter5
width: 31.7em
width: 56ch
margin-top: 1em
opacity: 0
animation: typing5 2s steps(56) 9.5s 1 normal both,cursor_blink .8s steps(44) infinite normal
.anim-typewriter6
width: 22.7em
width: 40ch
opacity: 0
animation: typing6 2s steps(40) 11.5s 1 normal both,cursor_blink .8s steps(44) infinite normal
#keyframes typing1
from
width: 0
to
width: 100%
99.9%
border-right: 2px solid $comp-green
100%
border-right: none
#keyframes typing2
from
width: 0
to
width: 100%
1%
opacity: 1
99.99%
border-right: 2px solid $comp-green
100%
opacity: 1
border-right: none
#keyframes typing3
from
width: 0
// to
// width: 35.7em
1%
opacity: 1
99.99%
border-right: 2px solid $comp-green
100%
opacity: 1
border-right: none
#keyframes typing4
from
width: 0
// to
// width: 35.1em
1%
opacity: 1
99.99%
border-right: 2px solid $comp-green
100%
opacity: 1
border-right: none
#keyframes typing5
from
width: 0
to
width: 31.7em
1%
opacity: 1
99.99%
border-right: 2px solid $comp-green
100%
opacity: 1
border-right: none
#keyframes typing6
from
width: 0
to
width: 22.7em
1%
opacity: 1
100%
opacity: 1
#keyframes cursor_blink
from
border-right-color: $comp-green
to
border-right-color: transparent
I have seen the other questions related to this issue, and while it helped me clean some things up I still can't work out a solution from their answers.
Thank you for your time & help! Please let me know if there is any other information I can provide.

How to stop two elements effecting each other?

I'm creating an animation https://codepen.io/adsler/pen/bGNWxOe and I've created a div class. I've adjusted this with css. It works. However, as soon as I introduce another div class, it's not only effected by the first, but there seems to be no way of selecting it with css.
So here is the original:
Html:
<div
class="random">four<br>
three<br>zero<br>nine</div>
Css:
.random {background.
color:red;background-image:
linear-gradient(black,
white); width: 10px; height:
200px; font-weight: 900;
position:relative; font-
size:20px; left: 20x;
top:60px; filter:sepia(0);
color:black; border-radius:
100px; box-shadow: 90px 90px
30px 90px #000; text-align:
center;}
.random {animation: turn 30s
ease-in infinite; animation.
direction: alternate.
reverse;animation-delay:
2s;}
#keyframes turn {
0%
{transform:rotate(1400deg);
width: 1px} 30%.
{transform:rotatex(7000deg);
font-size: 30px;} 40%
{transform:rotatez(360deg);
width: 13em} 70%
{width: 10em;}100%
{opacity: 0.9;}
That's fine but then, when I introduce the next sequence, by way of a div class, I can't find the selector with css and the style is influenced by the first div.
<div
class="starring">Starring
</div>
.starring {margin-top: 500px
!important; font-size: 50px
!important;}
So I tried specificity.
.random.starring {margin.
top: 500px
!important; font-size: 50px
!important;}
Still unable to select starring with css and style still influenced by previous div.
In your codepen under the html section you have one too many ending 's in the first part.
Like this:
<div class="random">four<br>three<br>zero<br>nine</div></div>
<div class="starring">Starring</div>
Which should be:
<div class="random">four<br>three<br>zero<br>nine</div>
<div class="starring">Starring</div>
Next thing is - you don't end your animation in your css part
#keyframes turn {
0%{transform:rotate(1400deg);
width: 1px}
30%{transform:rotatex(7000deg);
font-size: 30px;}
40% {transform:rotatez(360deg);
width: 13em}
70% {width: 10em;}100%
{opacity: 0.9;}
Here you need a last } to actually wrap up the turn tag.
Like this:
#keyframes turn {
0%{transform:rotate(1400deg);
width: 1px}
30%{transform:rotatex(7000deg);
font-size: 30px;}
40% {transform:rotatez(360deg);
width: 13em}
70% {width: 10em;}100%
{opacity: 0.9;}
}
Make these changes and it works as supposed.
.starring {
color:red;
}
Works for me.
The problem is you are missing a closing } for your turn keyframe.
#keyframes turn {
0% {
transform:rotate(1400deg);
width: 1px
}
30% {
transform: rotatex(7000deg);
font-size: 30px;
}
40% {
transform: rotatez(360deg);
width: 13em
}
70% {
width: 10em;
}
100% {
opacity: 0.9;
}
}
And then for your second div, this will work:
.starring {
margin-top: 500px !important;
font-size: 50px !important;
}
I feel best solution here would be giving css to 1 element.
Add position:absolute to 1 of the element. And further accordingly adjust the element wherever you want using margin-bottom and margin-left!

HTML and CSS Background image in a specific section

I'm trying to get an image to fill a specific section on the web page I'm making but I cannot find anything that works online.
.bigslide {
display: block;
position: relative;
width: 100%;
/*background: rgb(231, 231, 231);*/
padding: 160px 0;
color: #0ed1fb;
animation: slideleft 2000s infinite linear;
-webkit-animation: slideleft infinite linear;
}
.bigslide h1 {
font-size: 34px;
font-weight: bold;
margin-bottom: 20px;
}
.bigslide p {
font-size: 20px;
}
<section id="bigslide">
<div class="bigslide">
<div class="container">
<h1 class="slideup">Tigercraft01's High Quality Setups</h1>
<p>Scroll down to read about me and what I do.</p>
</div>
</div>
</section>
I need the image to show behind the text that loads with the snippet provided.
I'm not sure why it isn't in your CSS since you're trying to add an image but if you want to add a background image to your section, just use :
.bigslide {
background-image: url('http://lorempixel.com/g/500/500/');
background-repeat: no-repeat;
background-size: cover;
}

Setting body to margin:0 causes CSS animation issue in Firefox

I've been working on variations of this issue for a while. Currently I have the animation working in all browsers, but setting the body margin to 0 in FF breaks it as shown below.
I've had to target all other browsers, set the body margin, and just leave it showing in FF. Obviously this isn't ideal as I'd like the layout to be uniform.
Please use firefox to re-create the issue.
Here's the working Jsfiddle
HTML
<header class="header">
<div class="header-container">
<div class="top-header-ani ani slide-t navbar">
Home</div>
<div class="main-header-ani"><span class="mainheader">△</span></div>
<div class="bottom-header-ani ani slide-b">
<span class="maintitle">tetris<span class="yel">for</span>kicks</span>
<br>
<span class="subtitle">web development & design</span></div>
</div>
</header>
CSS
header {
margin-top: 50px;
}
.header-container {
width: 100%;
height: 200px;
margin: 100px 0 0 0;
position: absolute;
}
.main-header-ani {
font-family: 'quicksand', helvetica;
text-align: center;
line-height: 200px;
background-color: #a2aba2;
width: 100%;
height: 200px;
position: relative;
}
.top-header-ani {
width: 100%;
height: auto;
text-align: center;
position: relative;
z-index: -1;
}
.bottom-header-ani {
width: 100%;
height: auto;
text-align: center;
position: relative;
z-index: -1;
}
/*................... index font stying ...................*/
.yel {
color: #eac961;
}
.navbar {
text-transform: uppercase;
font-family: helvetica;
word-spacing: 10px;
}
.maintitle {
color: #a2aba2;
font-family: helvetica;
font-size: 50pt;
}
.mainheader {
color: #fff;
font-size: 110pt;
}
.subtitle {
font-family: helvetica;
}
header a {
color: #000;
text-decoration: none;
}
header a:hover,
header a.hover {
color: #eac961;
}
/*................... index header animations ...................*/
.ani {
-webkit-animation-duration: 2s;
animation-duration: 2s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.slide-t {
animation-name: slide-t;
}
#keyframes slide-t {
from {
transform: translate3d(0, 100%, 0);
visibility: visible;
}
to {
transform: translate3d(0, -100%, 0);
}
}
.slide-b {
animation-name: slide-b;
}
#keyframes slide-b {
from {
transform: translate3d(0, -100%, 0);
visibility: visible;
}
to {
transform: translate3d(0, 10%, 0);
}
}
Run the above. You'll see that both animations transtion from behind the heasder div perfectly.
If you add the CSS:
body {
margin: 0
}
To the jsfiddle, you'll notice the bottom aniation stretches as it plays out.
Does anyone know why this is occuring?
Does anyone know how to fix it?
I've tried -moz- animations settings, no effect.
I've also got an idea for a work around:
Currently in firefox I get a scroll bar at the bottom due to the extra space taken up by the body's margin. If there's a way for me to set the scroll position to the absolute right by default, I can hide the X scroll bar and disable it which would hide the body margin entierly.
-
Anyway, this one's killing me. Any ideas are greatly appreciate.
Thanks.
Ok, so I've figured out the issue.
It's actually a display driver issue with my laptop. XPS 13 9530.
My friend checked the test site upload on his PC and it works perfectly as it is, I get the ghosting on my laptop. So I tested on another PC, and it works perfectly.
I disabled hardware acceleration in my FF and it works perfectly.
I've tried various graphics drivers, but it appears to be a windows 10 issue with my laptop. I'm getting a few other weird issues with firefox rendering, for instance the close buttons on my tab bars are duplicated, sometimes FF loads with a full white screen and I need to restart it, etc...
So, mark this as fixed. Thanks very much for your help.
Try using "px" values for firefox, not "%" for
transform: translate3d(0, -100px, 0);
Import the normalize.css:
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/3.0.2/normalize.css">
or download it from:
Here

Website ruined when resized

So after working my behind off all day at my website, I find out that it's basically only compatible on my computer on 1920*1080.
I suppose that I'm to ''glue'' objects somehow to x areas of the website but I don't know how to.
I know this is not exactly a direct question but can you please tell me what is causing my website to go out of order when resized? Here is the whole website JSfiddle
http://jsfiddle.net/vuz2L/
Here is the HTML code:
<!DOCTYPE HTML>
<HTML>
<head>
<title>Heilsa</title>
<link type="text/css" href="stylesheet3.css" rel="stylesheet"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div id="container">
<img id="bordi" src="heilsa2.png"/>
<div id="bigtext">Heilsa</div>
<div class="menu">
<ul>
<li>Heim</li> <span id="menubord">
<li>Hollt Mataræði</li>
<li>Reynslusögur</li> </span>
</ul>
</div>
<div id="content">
<div id="block">
</div>
<div id="meginmal">
<h1>Fyrirsögn</h1>
<p>ch-slahing thust get a proper bitch-slapping to stop making walls of text, but if you are weird then thaA wall of text is something thust get a proper bitch-slapping to stop making walls of text, but if you are weird then that doesn't apply to you. Walls of text are defeated by deleting them or splitting them into paragraphs. Or some othA wall of text is something thust get a proper bitch-slapping to stop making walls of text, but if you are weird then that doesn't apply to you. Walls of text are defeated by deleting them or splitting them into paragraphs. Or some othA wall of text is something thust get a proper bitch-slapping to stop making walls of text, but if you are weird then that doesn't apply to you. Walls of text are defeated by deleting them or splitting them into paragraphs. Or some otht doesn't apply to you. Walls of text are defeated by deleting them or splitting them into paragraphs. Or some otht doesn't apply to you. Walls of text are defeated by deleting them or splitting them into paragraphs. Or some othoesn't apply to you. Walls of text are defeated by deleting them or splitting them into paragraphs. Or some othsome other things that would work but will take hours to think of. People are considered a nuisance if they create walls of text. This might be the end. If you hope this is the end, I am not sure. But if I was not sure then I wouldn't be talking. I should know. Or should I? The best way to make a better and good wall of text is to copy and paste what you previously typed or write. Hey, that reminds me. Walls of text aren't always on the internet! They could be anywhere that is able to produce symbols. D'oh. A wall of text is something that is frowned upon in most, actually virtually all Internet societies, including forums, chat boards, and Uncyclopedia. You should not make walls of text because it can get you banned anywhere unless it is a place that encourages walls of text. I highly doubt any place does support something so irritating and annoying, but anything can exist, but not really because unless you are in heaven then that can happen. But no one actually knows that was just a hypothesis, a lame one that is. Actually not really lame. You can created a wall of text supporting site, but you would be hated if you do that, so do not. But you can if you like, but I discourage that. Now on to the actual information of walls of texts. The wall of text was invented when the Internet was invented, but actually it was slow at that time. So whenever it became fast. But there would need to be some free or not free community for people, and that community would be able to have walls of text. But that community probably wouldn't have actually invented the wall of text. So basically, no one except God and Al Gore knows when or where or how the wall of text existed/was invented. Noobs probably invented, but probably not. Who knows. Walls of texts are usually filled with a lot of useless information and junk. Information and junk can be the same, but only if the information is junk or the junk is information.A wall of text is something thust get a proper bitch-slapping to stop making walls of text, but if you are weird then that doesn't apply to you. Walls of text are defeated by deleting them or splitting them into paragraphs. Or some other things that would work but will take hours to think of. People are considered a nuisance if they create walls of text. This might be the end. If you hope this is the end, I am not sure. But if I was not sure then I wouldn't be talking. I should know. Or should I? The best way to make a better and good wall of text is to copy and paste what you previously typed or write. Hey, that reminds me. Walls of text aren't always on the internet! They could be anywhere that is able to produce symbols. D'oh. A wall of text is something that is frowned upon in most, actually virtually all Internet societies, including forums, chat boards, and Uncyclopedia. You should not make walls of text because it can get you banned anywhere unless it is a place that encourages walls of text. I highly doubt any place does support something so irritating and annoying, but anything can exist, but not really because unless you are in heaven then that can happen. But no one actually knows that was just a hypothesis, a lame one that is. Actually not really lame. You can created a wall of text supporting site, but you would be hated if you do that, so do not. But you can if you like, but I discourage that. Now on to the actual information of walls of texts. The wall of text was invented when the Internet was invented, but actually it was slow at that time. So whenever it became fast. But there would need to be some free or not free community for people, and that community would be able to have walls of text. But that community probably wouldn't have actually invented the wall of text. So basically, no one except God and Al Gore knows when or where or how the wall of text existed/was invented. Noobs probably invented, but probably not. Who knows. Walls of texts are usually filled with a lot of useless information and junk. Information and junk can be the same, but only if the information is junk or the junk is information.
</p>
</div>
</div>
<div class="push">
</div>
<div id="wrapper">
<img id="undir" src="undir.png"/>
</div>
</div>
</body>
</HTML>
And CSS:
body, html {
margin: 0;
padding: 0;
height: 100%;
}
#container {
min-height:100%;
height: auto !important;
position:relative;
height: 100%;
margin: 0 auto -232px;
}
.menu {
width:700px;
height:180px;
font-family:Trajan Pro;
font-size:18px;
text-align:center;
font-weight:bold;
text-shadow:3px 2px 3px #333333;
margin-left:1010px;
position:absolute;
top:135px;
}
#menubord {
}
.menu ul {
height: auto;
padding: 8px 0px;
margin: 0px;
list-style-type: none;
}
.menu li {
display: inline;
padding: 20px;
}
.menu a {
text-decoration: none;
color:red;
font-weight:600;
font-size: 22px;
letter-spacing: 1.2px;
}
.menu a:hover {
text-shadow: 8px 5px 8px #333333;
font-size:24px;
animation-name: opac;
animation-duration: 2s;
animation-timing-function: linear;
animation-delay: 0s;
animation-iteration-count: infinite;
animation-direction: normal;
animation-play-state: running;
/* Safari and Chrome: */
-webkit-animation-name: opac;
-webkit-animation-duration: 2s;
-webkit-animation-timing-function: linear;
-webkit-animation-delay: 0s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: normal;
-webkit-animation-play-state: running;
-webkit-animation-fill-mode: forwards;
}
#keyframes opac
{
0% {opacity:1}
25% {opacity:0.5}
50% {opacity:0.1}
75% {opacity:0.5}
100% {opacity:1}
}
#-webkit-keyframes opac /* Safari and Chrome */
{
0% {opacity:1}
25% {opacity:0.5}
50% {opacity:0.1}
75% {opacity:0.5}
100% {opacity:1}
}
.menu a:active {
text-shadow: 12px 8px 12px #333333;
}
#content {
min-height:100%;
position: relative;
width: 800 px;
height: 800px;
margin-right:200px;
margin-left:200px;
padding:10px;
padding-bottom:60px; /* Height of the footer */
}
#block1 { /*IGNORE THIS. I AM SAVING IT FOR LATER*/
background: red;
filter:alpha(opacity=20); /* IE */
-moz-opacity:0.2; /* Mozilla */
opacity: 0.2; /* CSS3 */
position: absolute;
top: 0; left: 0;
height: 100%; width:100%;
border-radius: 20px;
margin:10px;
}
#meginmal {
padding: 20px 30px 20px 30px;
text-align: center;
font-size:20px;
border-right: solid;
border-left: solid;
font-family: Trajan Pro;
}
#bordi {
height:100%;
width: 100%;
margin: 0%;
}
#wrapper {
bottom:0;
width:100%;
height:232px; /* Height of the footer */
margin-top:200px;
}
.push {
height: 232px;
}
#bigtext {
z-index:1;
margin-top:-300px;
margin-left:700px;
position: absolute;
font-size:70px;
font-family: Trajan Pro;
}
#bigtext a {
text-decoration: none;
color:black;
border-bottom:solid;
border-color: rgba(0, 255, 255, 0);
}
#bigtext a:hover{
animation-name: big;
animation-duration: 2s;
animation-timing-function: linear;
animation-delay: 0s;
animation-iteration-count: infinite;
animation-direction: normal;
animation-play-state: running;
/* Safari and Chrome: */
-webkit-animation-name: big;
-webkit-animation-duration: 2s;
-webkit-animation-timing-function: linear;
-webkit-animation-delay: 0s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: normal;
-webkit-animation-play-state: running;
-webkit-animation-fill-mode: forwards;
}
#keyframes big
{
0% { border-color: rgba(0, 0, 0, 1); }
50% { border-color: rgba(0, 0, 0, 0); }
100% { border-color: rgba(0, 0, 0, 1); }
}
#-webkit-keyframes big /* Safari and Chrome */
{
0% { border-color: rgba(0, 0, 0, 1); }
50% { border-color: rgba(0, 0, 0, 0); }
100% { border-color: rgba(0, 0, 0, 1); }
}
when you trying to design website try not to use fixed values like X px, when X is large number, like width: 800 px;.
for example if you change #content to this:
#content {
min-height:100%;
position: relative;
width: 800 px;
height: 800px;
margin-right:5%;
margin-left:5%;
padding:10px;
padding-bottom:60px;
/* Height of the footer */
}
where i changed
margin-right:5%;
margin-left:5%;
the main content is becoming more likely.
Try avoid big fixed values, changing them to percentable values, or align: left;, etc
You have a lot of margin-left + position:absolute values which breaks the layout. Instead of using absolute positioning, try to use margins and floats, or even browser natural flow of displaying elements in the page.