I have an image with a class of author-pic, its working how I want it to, except on the second to last media query it's stretching horizontally, when display flex is set. I know you're not supposed to use % with children of display flex, however author-pic is not an immediate child, does this mean you cant use % on any children when using display flex? If so how can I fix this because flex-basis doesnt seem to work either, I'm assuming because author-pic isnt an immediate child.
https://jsfiddle.net/svb0gxgg/2/
#media screen and (min-width: 400px){
.author-pic{
min-width: 300px;
width: 25%;
height: 25%;
float: left;
margin: 0 .5em;
}
section h2{
font-size: 1.5em;
}
section h3{
font-size: 1.3em;
}
/***home page***/
.home-page-greeting{
font-size: 1.8rem;
}
.front-of-book-front,
.back-of-book-front,
.book-front,
.book-back,
.book{
width: 113px;
height: 180px;
}
.front-of-book-front:before{
width: 133px;
height: 17px;
transform: translate(8px,105px) rotate(90deg);
-moz-transform: translate(8px,105px) rotate(90deg);
}
.front-of-book-front:after{
width: 83px;
height: 14px;
transform: translate(0,21px);
-moz-transform: translate(0,21px);
}
.bar{
width: 95px;
height: 10px;
background-color: rgba(0,0,0,.8);
font-size: .3em;
color: white;
text-align: right;
transform: rotate(90deg) translate(42px,-45px);
-moz-transform: rotate(90deg) translate(42px,-45px);
}
.book-back p{
font-size: .4rem;
margin: 2.9em 1.9em;
}
.book-side{
width: 176px;
height: 10px;
top:-3px;
}
header{
height: 130px;
display: flex;
justify-content: center;
}
header h1{
font-size: 2em;
align-self: flex-start;
white-space: nowrap;
border: 8px solid black;
}
header nav{
display: block;
align-self: flex-end;
position: initial;
width: initial;
}
.main-nav{
display: flex;
justify-content: flex-end;
width:initial;
}
.main-nav li{
border-radius: 8px;
padding: 5px;
font-size: 1.3rem;
background-color: transparent;
margin: 0 4px;
width:initial;
}
.drop-menu{
top: 34px;
}
.drop-menu li{
margin: 0;
border-radius: 0;
}
/***charactor page*****/
.character-pic{
width: 25%;
height: 25%;
}
}
#media screen and (min-width:860px){
body{
background-position: center;
}
header{
height: 120px;
justify-content: space-between;
}
header h1{
margin: 0 0 0 20px;
}
.main-nav li{
font-size: 1.5rem;
}
header nav{
margin: 0 40px 0 0;
width: initial;
}
.drop-menu{
top: 38px;
}
section h2{
font-size: 1.8em;
}
/***home page***/
.amazonBookLabel{
font-size: 1.5em;
}
/**home page book**/
.front-of-book-front,
.back-of-book-front,
.book-front,
.book-back,
.book{
width: 200px;
height: 320px;
}
.front-of-book-front{
perspective: 200px;
}
.front-of-book-front:before{
width: 234px;
height: 37px;
transform: translate(11px,185px) rotate(90deg);
font-size: 1em;
line-height: 37px;
}
.front-of-book-front:after{
width: 146px;
height: 26px;
transform: translate(0,32px);
}
.bar{
width: 172px;
height: 23px;
background-color: rgba(0,0,0,.8);
font-size: .3em;
color: white;
text-align: right;
transform: rotate(90deg) translate(74px,-82px);
font-size: .7em;
}
.bar p{
display: block;
padding: 12px 5px 0 0;
}
.book-side{
width: 312px;
height: 10px;
top:-1px;
left: -5px;
}
.book-back p{
font-size: .7em;
margin: 3.3em 2.3;
}
/*****author page******/
.authorWrapper{
display: flex;
margin: auto;
}
.authorWrapper :nth-child(1){
flex-basis: 75%;
}
.authorWrapper :nth-child(2){
flex-basis: 25%;
}
}
If you want an image to scale properly you need only use width or only use height. Your image looks weird because you have the height set at 25%. Remove that and it should work. If you need to use both make sure you have the ratio correct, eg 4:3
use align-items. The default value is stretch, which is being applied here. Looks like you want to use flex-start instead.
/*************general*********************/
html,
body {
min-height: 100vh;
}
body {
margin: 0px;
// background-image: linear-gradient( 0, rgba(0,0,0,.8) 30%, rgba(0,150,255,.8) 100%), url("images/mainCover.jpg");
-moz-background-image: linear-gradient( 0, rgba(0, 0, 0, .8) 30%, rgba(0, 150, 255, .8) 100%), url("images/mainCover.jpg");
background-position: 40%;
background-repeat: no-repeat;
background-size: cover;
}
img {
max-width: 100%;
}
h1,
h2,
h3 {
font-family: arial;
text-align: center;
margin: 20px auto;
}
ul {
list-style: none;
text-align: center;
padding: 0;
}
a:visited,
a {
color: black;
}
section {
margin: 1%;
color: white;
}
section > article {
padding: 1em;
background-color: rgba(0, 0, 0, .5);
border-radius: 15px;
margin: 10px;
}
section h2,
section h3 {
text-align: center;
}
section h2 {
font-size: 1.3em;
text-shadow: 3px 3px 3px rgba(0, 0, 0, .5);
}
section h3 {
font-size: 1.1em;
}
article:after {
content: "";
display: block;
clear: both;
}
/*nav and header*/
header {
background-color: rgba(255, 165, 0, .8);
display: flex;
flex-flow: row wrap;
justify-content: center;
border-bottom: 8px solid black;
}
header h1 {
text-align: center;
margin: 0;
padding: 15px;
font-size: 1.5em;
text-shadow: 5px 5px 5px rgba(0, 0, 0, .3);
}
header h1,
nav a {
font-weight: 700;
font-family: arial;
}
header nav {
position: fixed;
bottom: 0;
width: 100%;
z-index: 1;
// background-color: rgba(255,165,0,.8);
}
.main-nav {
margin: 0;
width: 100%;
color: white;
font-family: arial;
font-weight: 600;
}
nav ul li {
text-align: center;
border: 1px solid white;
border-radius: 15px;
font-size: 1.2rem;
background-color: rgba(255, 165, 0, .8);
width: 100%;
}
.drop-menu-back {
display: none;
width: 100%;
}
a {
text-decoration: none;
}
nav a:visited,
nav a,
h1 {
color: white;
}
.main-nav .current-page {
background-color: rgba(0, 0, 0, .5);
}
/****drop down menu****/
.characters:hover {
position: relative;
border-radius: 8px 8px 0 0;
}
.drop-menu {
position: absolute;
visibility: hidden;
display: block;
top: 38px;
white-space: nowrap;
left: -2px;
background-color: rgba(255, 165, 0, .8);
border: 1px solid rgba(0, 0, 0, .02);
box-shadow: 5px 5px 5px 2px rgba(0, 0, 0, .3);
opacity: 0;
transition: opacity 300ms ease-in-out 0s;
z-index: 1;
}
.characters:hover .drop-menu {
visibility: visible;
opacity: 1;
}
/*******************home page*********************/
.home-page-greeting {
color: white;
text-align: center;
text-shadow: 3px 3px 5px rgba(0, 0, 0, 1);
}
.bookWrapper {
width: 25%;
margin: auto;
}
.bookLink {
display: block;
margin: auto;
}
.bookImage {
margin: 35px auto;
display: block;
//max-height: 300px;
}
.amazonBookLabel {
background-color: rgba(0, 0, 0, .5);
color: white;
padding: 10px;
font-weight: 600;
border-radius: 20px;
margin: 30px auto;
text-align: center;
position: relative;
max-width: 200px;
}
.amazonBookLabel:after {
content: "";
width: 30px;
height: 5px;
background-color: rgba(0, 0, 0, .5);
position: absolute;
bottom: -5px;
left: calc(50% - 17px);
}
.amazonBookLabel:before {
content: "";
width: 0;
height: 0;
border-left: 40px solid rgba(0, 0, 0, .5);
border-top: 40px solid transparent;
position: absolute;
bottom: -45px;
transform: rotate(-45deg);
transform-origin: top left;
left: calc(50% - 30px);
}
/***home page book***/
.front-of-book-front,
.back-of-book-front,
.book-front,
.book-back,
.book {
width: 100px;
height: 160px;
position: relative;
perspective: 800px;
}
.book {
margin: 52px auto;
transition: transform 1s ease-in-out 0s;
-moz-transition: transform 1s ease-in-out 0s;
}
.book-front {
position: relative;
transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-origin: left;
-moz-transform-origin: left;
transition: transform 1s ease-in-out 0s;
-moz-transition: transform 1s ease-in-out 0s;
box-shadow: 0px 3px 5px 2px rgba(0, 0, 0, .5);
perspective: 400px;
perspective-origin: -200px;
}
.front-of-book-front {
background-image: url("images/mainCover.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: 47%;
backface-visibility: hidden;
}
.front-of-book-front:before {
content: "Seraph Chronicles: Evangelion";
text-shadow: 2px 2px 1px rgba(0, 0, 0, .5);
font-size: .5em;
line-height: 15px;
color: white;
width: 119px;
height: 15px;
background-color: rgba(255, 165, 0, .5);
position: absolute;
text-align: center;
transform: translate(8px, 93px) rotate(90deg);
-moz-transform: translate(8px, 93px) rotate(90deg);
}
.front-of-book-front:after {
content: "";
width: 75px;
height: 12px;
background-color: rgba(255, 165, 0, .5);
position: absolute;
transform: translate(0px, 19px);
-moz-transform: translate(0px, 19px);
}
.bar {
width: 80px;
height: 8px;
background-color: rgba(0, 0, 0, .8);
font-size: .3em;
color: white;
text-align: right;
transform: rotate(90deg) translate(36px, -45px);
-moz-transform: rotate(90deg) translate(36px, -45px);
}
.bar p {
padding: 2px 3px 0 0;
display: block;
}
.back-of-book-front {
backface-visibility: hidden;
background-color: rgb(240, 234, 214);
transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
position: absolute;
top: 0;
}
.book-front:hover {
transform: rotatey(-180deg);
}
.book:hover {
transform: rotate(10deg);
}
.book-back {
position: absolute;
top: 0;
background-color: rgb(240, 234, 214);
z-index: -1;
box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, .5);
text-align: justify;
}
.book-back p {
font-size: .3rem;
margin: 2.9em 1.9em;
}
/**********author page********/
.author-pic {
display: block;
margin: auto;
width: 200px;
;
}
section article {
padding: 1em;
background-color: rgba(0, 0, 0, .5);
border-radius: 15px;
margin: 10px;
clear: both;
}
address {
margin: 15px auto;
width: 125px;
font-family: arial;
}
.email {
background-image: url("images/mail-icon.png");
background-repeat: no-repeat;
background-size: contain;
background-position: 0 50%;
}
.email a,
.facebook a,
.email:visited,
.facebook:visited {
color: white;
font-style: normal;
font-weight: 500;
}
address a {
display: block;
line-height: 19px;
}
.facebook {
background-image: url("images/facebook-icon.png");
background-size: contain;
background-repeat: no-repeat;
background-position: 0 50%;
}
/*******characters page********/
.charater-pic {
width: 100%;
}
/***responsive***/
#media screen and (max-width: 400px) {
.drop-menu {
top: -97px;
width: 100%;
}
.drop-menu-back {
display: block;
width: 100%;
position: relative;
line-height: 22px;
}
.characters:hover {
border-radius: 15px;
}
.drop-menu-back span {
padding: 0;
font-size: .8em;
margin: 0 .5em 0 0;
}
.drop-menu {
background-color: transparent;
}
footer {
height: 100px;
}
}
#media screen and (min-width: 400px) {
.author-pic {
min-width: 300px;
width: 25%;
height: 25%;
float: left;
margin: 0 .5em;
}
section h2 {
font-size: 1.5em;
}
section h3 {
font-size: 1.3em;
}
/***home page***/
.home-page-greeting {
font-size: 1.8rem;
}
.front-of-book-front,
.back-of-book-front,
.book-front,
.book-back,
.book {
width: 113px;
height: 180px;
}
.front-of-book-front:before {
width: 133px;
height: 17px;
transform: translate(8px, 105px) rotate(90deg);
-moz-transform: translate(8px, 105px) rotate(90deg);
}
.front-of-book-front:after {
width: 83px;
height: 14px;
transform: translate(0, 21px);
-moz-transform: translate(0, 21px);
}
.bar {
width: 95px;
height: 10px;
background-color: rgba(0, 0, 0, .8);
font-size: .3em;
color: white;
text-align: right;
transform: rotate(90deg) translate(42px, -45px);
-moz-transform: rotate(90deg) translate(42px, -45px);
}
.book-back p {
font-size: .4rem;
margin: 2.9em 1.9em;
}
.book-side {
width: 176px;
height: 10px;
top: -3px;
}
header {
height: 130px;
display: flex;
justify-content: center;
}
header h1 {
font-size: 2em;
align-self: flex-start;
white-space: nowrap;
border: 8px solid black;
}
header nav {
display: block;
align-self: flex-end;
position: initial;
width: initial;
}
.main-nav {
display: flex;
justify-content: flex-end;
width: initial;
}
.main-nav li {
border-radius: 8px;
padding: 5px;
font-size: 1.3rem;
background-color: transparent;
margin: 0 4px;
width: initial;
}
.drop-menu {
top: 34px;
}
.drop-menu li {
margin: 0;
border-radius: 0;
}
/***charactor page*****/
.character-pic {
width: 25%;
height: 25%;
}
}
#media screen and (min-width:860px) {
body {
background-position: center;
}
header {
height: 120px;
justify-content: space-between;
}
header h1 {
margin: 0 0 0 20px;
}
.main-nav li {
font-size: 1.5rem;
}
header nav {
margin: 0 40px 0 0;
width: initial;
}
.drop-menu {
top: 38px;
}
section h2 {
font-size: 1.8em;
}
/***home page***/
.amazonBookLabel {
font-size: 1.5em;
}
/**home page book**/
.front-of-book-front,
.back-of-book-front,
.book-front,
.book-back,
.book {
width: 200px;
height: 320px;
}
.front-of-book-front {
perspective: 200px;
}
.front-of-book-front:before {
width: 234px;
height: 37px;
transform: translate(11px, 185px) rotate(90deg);
font-size: 1em;
line-height: 37px;
}
.front-of-book-front:after {
width: 146px;
height: 26px;
transform: translate(0, 32px);
}
.bar {
width: 172px;
height: 23px;
background-color: rgba(0, 0, 0, .8);
font-size: .3em;
color: white;
text-align: right;
transform: rotate(90deg) translate(74px, -82px);
font-size: .7em;
}
.bar p {
display: block;
padding: 12px 5px 0 0;
}
.book-side {
width: 312px;
height: 10px;
top: -1px;
left: -5px;
}
.book-back p {
font-size: .7em;
margin: 3.3em 2.3;
}
/*****author page******/
.authorWrapper {
display: flex;
margin: auto;
align-items: flex-start;
}
.authorWrapper:nth-child(1) {
flex-basis: 75%;
}
.authorWrapper:nth-child(2) {
flex-basis: 25%;
}
}
#media screen and (min-width: 1109px) {
header h1 {
font-size: 3em;
margin: 0 0 0 80px;
}
.main-nav > li {
margin: 0 8px;
}
header nav {
margin: 0 80px 0 0;
}
/***home page***/
.home-page-greeting {
font-size: 2.5rem;
}
}
<header>
<h1>Seraph Chronicles</h1>
<nav>
<ul class="main-nav">
<li class="main-nav-item">Home</li>
<li class="main-nav-item">About</li>
<li class="main-nav-item characters">
Characters
<ul class="drop-menu">
<li class="drop-menu-back"><span class="material-icons">arrow_back</span>Back</li>
<li>Ethan Clarke</li>
<li>Serena Kiriaga</li>
<li>Marcus Flynn</li>
<li>Emily Ashdown</li>
<li>Director Miles West</li>
</ul>
</li>
<li class="main-nav-item current-page">Author</li>
</ul>
</nav>
</header>
<main>
<section>
<div class="authorWrapper">
<article class="aboutAuthor">
<h2>About the Author</h2>
<img src="http://www.jqueryscript.net/images/Simplest-Responsive-jQuery-Image-Lightbox-Plugin-simple-lightbox.jpg" alt="picture of author, Kyle Feller" class="author-pic">
<p>sd t yghjiu hgfdwert yuikjn dnmkjhjh jhbnjhn jhnjhnmkjn mkjhnjhn mkjhnmkjn mkjn mkwjnedkj njhbnkjnmkj nmkjnm kjnmkjnmkj hnmkjnmk jnmjhbcnk jcbnjkj bnkjnbnk jnkjnnk jnkj nkj nknk jn nkjn bnkjnbnkm nnmknmkmn kjnkmnkjnmkj nmjnjnmk jnmjnmkjnb jxncbcjbnkj
nbnjkjhb njhnbkj njnbnkjnk jnmjhnmjn mkjnmjnm jnjnbnmjnj njhnmkjh nbnjnbnk jnbnjkjnj kjnkjnkjn kjnbnkjnbn kjnbnkj nbnkjn nknbnjnb nkjnbnmnn kjnnmmn kjnkmnkj mnkjnkjn nkjmnkjm nkjmnkm jcncc ncncncncnc ncnc ncnncnc ncncnc
</p>
</article>
<article>
<h2>Contact Me</h2>
<ul>
<li><address class="email">Email Me</address></li>
<li><address class="facebook"> Follow Me</address></li>
</ul>
</article>
</div>
</section>
</main>
<footer>
</footer>
Related
I'm working on the animation and cannot figure out how I can stop the animation from repeating an infinite amount of times, but also still show after it has completed the animation once. An extra thing as well if you could tell me is that i have 4 different sentences to animate and it would be great if I could make the animations animate one by one then finish and still show.
p.s This is all in css and a lot of changes have been done with copy and paste of used code so i know the animation stuff is repeated
type he
#import url('https://fonts.googleapis.com/css2?family=Quicksand:wght#300&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Quicksand';
background-image: url('images/websitesbackground.jpg');
}
.header {
margin-top: -15px;
}
.logo {
font-family: 'Quicksand';
font-weight:lighter;
margin-top: -10px;
border: black 3px none;
padding: 3px 3px;
height: 100px;
width: 350px;
position: absolute;
margin-left: -20px;
margin-top: -180px;
}
.wrapper1 {
display: inline-flex;
display: flex;
align-items: left;
justify-content: left;
margin-top: 200px;
margin-left: 10%;
}
.wrapper1 .static-txt {
color: black;
font-size: 193%;
font-weight: 400;
color: #121212;
text-shadow: 2px 7px 5px rgba(0,0,0,0.3),
0px -4px 10px rgba(255,255,255,0.3);
}
.wrapper1 .dynamic-txts {
margin-left: 10px;
line-height: -10px;
overflow: hidden;
}
.dynamic-txts li {
color: black;
list-style: none;
font-size: 30px;
font-weight: 500;
position: relative;
top: 0;
animation: slide 12s steps(1);
}
#keyframes slide {
100% {
top: -160px;
}
}
.dynamic-txts li span {
position: relative;
}
.dynamic-txts li span::after {
content: "";
position: absolute;
left: 0;
height: 100%;
width: 100%;
background: url('images/websitesbackground.jpg');
border-left: 2px solid black;
animation: typing 3.2s steps(15) infinite;
}
#keyframes typing {
100% {
left: 100%;
margin: 0 -35px 0 35px;
}
}
.wrapper2 {
display: inline-flex;
display: flex;
align-items: left;
justify-content: left;
margin-top: 7%;
margin-left: 10%;
}
.wrapper2 .static-txt {
color: black;
font-size: 193%;
font-weight: 400;
color: #121212;
text-shadow: 2px 7px 5px rgba(0,0,0,0.3),
0px -4px 10px rgba(255,255,255,0.3);
}
.wrapper2 .dynamic-txts {
margin-left: 10px;
line-height: -10px;
overflow: hidden;
}
.dynamic-txts li {
color: black;
list-style: none;
font-size: 30px;
font-weight: 500;
position: relative;
top: 0;
animation: slide 12s steps(1);
}
#keyframes slide {
100% {
top: -160px;
}
}
.dynamic-txts li span {
position: relative;
}
.dynamic-txts li span::after {
content: "";
position: absolute;
left: 0;
height: 100%;
width: 100%;
background: url('images/websitesbackground.jpg');
border-left: 2px solid black;
animation: typing 3.2s steps(15) infinite;
}
#keyframes typing {
100% {
left: 100%;
margin: 0 -35px 0 35px;
}
}
.wrapper3 {
display: inline-flex;
display: flex;
align-items: left;
justify-content: left;
margin-top: 7%;
margin-left: 10%;
}
.wrapper3 .static-txt {
color: black;
font-size: 193%;
font-weight: 400;
color: #121212;
text-shadow: 2px 7px 5px rgba(0,0,0,0.3),
0px -4px 10px rgba(255,255,255,0.3);
}
.wrapper3 .dynamic-txts {
margin-left: 10px;
line-height: -10px;
overflow: hidden;
}
.dynamic-txts li {
color: black;
list-style: none;
font-size: 30px;
font-weight: 500;
position: relative;
top: 0;
animation: slide 12s steps(1);
box-shadow: 2px -2px 2px;
color: #121212;
text-shadow: 2px 7px 5px rgba(0,0,0,0.3),
0px -4px 10px rgba(255,255,255,0.3);
}
#keyframes slide {
100% {
top: -160px;
}
}
.dynamic-txts li span {
position: relative;
}
.dynamic-txts li span::after {
content: "";
position: absolute;
left: 0;
height: 100%;
width: 100%;
background: url('images/websitesbackground.jpg');
border-left: 2px solid black;
animation: typing 3.2s steps(15);
}
#keyframes typing {
100% {
left: 100%;
margin: 0 -35px 0 35px;
}
}
.wrapper4 {
display: inline-flex;
display: flex;
align-items: left;
justify-content: left;
margin-top: 7%;
margin-left: 10%;
}
.wrapper4 .static-txt {
color: black;
font-size: 193%;
font-weight: 400;
color: #121212;
text-shadow: 2px 7px 5px rgba(0,0,0,0.3),
0px -4px 10px rgba(255,255,255,0.3);
}
.wrapper4 .dynamic-txts {
margin-left: 10px;
line-height: -50px;
overflow: hidden;
}
.dynamic-txts li {
color: black;
list-style: none;
font-size: 30px;
font-weight: 500;
position: relative;
top: 0;
}
#keyframes slide {
100% {
top: -160px;
}
}
.dynamic-txts li span {
position: relative;
}
.dynamic-txts li span::after {
content: "";
position: absolute;
left: 0;
height: 100%;
width: 100%;
background: url('images/websitesbackground.jpg');
border-left: 2px solid black;
}
#keyframes typing {
100% {
left: 100%;
margin: 0 -35px 0 35px;
}
}
#keyframes bubble {
0% { transform:scale(0.5); opacity:0.0; left:0}
50% { transform:scale(1.2); opacity:0.5; left:100px}
100% { transform:scale(1.0); opacity:1.0; left:200px}
}
.img {
border-radius: 1000px;
margin-left: 59%;
margin-top: -44.3%;
height: 600px;
}
.dynamic-txts {
visibility: visible;
}
re
I have tried all the things i could think of (but its still probably going to be obvious) and i just cant think of anything else, hope someone could help.
hey guys i´ve got a problem here, im building a website with a freee template and i ran into a problem, while i was doing the las few touches, i ran into a problem, my images from the slider dont appear as full width on mobile like in desktop, could you help me pls?
much appreciated, here is the code
body {
background: #fff;
font-family: "Open Sans", Arial, sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 1.8;
color: #868e96;
}
.img-fluid{
width: 255px;
height: 255px;
object-fit: cover;
}
a {
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
text-decoration: none;
}
a:hover {
text-decoration: none;
}
h1, h2, h3, h4, h5 {
color: #000;
}
.btn, .form-control {
outline: none;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
/* Header */
header {
position: relative;
top: 0;
left: 0;
width: 100%;
z-index: 5;
}
header .navbar-brand {
text-transform: uppercase;
letter-spacing: .2em;
font-weight: 400;
}
header .navbar-brand span {
color: #007bff;
}
header .top-bar {
background: #007bff;
}
header .top-bar a {
color: #fff;
padding: 10px;
font-size: 13px;
display: inline-block;
}
header .top-bar .cta-btn {
display: inline-block;
padding-right: 15px;
padding-left: 15px;
background: #5AC8D8;
}
header .top-bar .cta-btn:hover {
-webkit-box-shadow: 2px 0 20px 0 rgba(0, 0, 0, 0.1);
box-shadow: 2px 0 20px 0 rgba(0, 0, 0, 0.1);
}
header .top-bar .social {
margin-bottom: 0;
}
header .top-bar .social li {
display: inline-block;
text-align: center;
}
header .top-bar .social li a {
color: #fff;
padding: 10px;
width: 40px;
display: inline-block;
}
#media (max-width: 991px) {
header .top-bar .social li a {
padding-left: 10px;
padding-right: 10px;
width: inherit;
}
}
header .top-bar .social li a:hover {
background: #5AC8D8;
color: #fff;
-webkit-box-shadow: 2px 0 20px 0 rgba(0, 0, 0, 0.1);
box-shadow: 2px 0 20px 0 rgba(0, 0, 0, 0.1);
}
header .navbar {
padding-top: 0;
padding-bottom: 0;
background: white !important;
}
#media (max-width: 1199px) {
header .navbar {
background: white !important;
padding-top: .5rem;
padding-bottom: .5rem;
}
}
header .navbar .nav-link {
padding: 1.7rem 1rem;
outline: none !important;
}
#media (max-width: 1199px) {
header .navbar .nav-link {
padding: .5rem 0rem;
}
}
header .navbar .nav-link.active {
color: #007bff !important;
}
header .navbar .dropdown-menu {
font-size: 14px;
border-radius: 4px;
border: none;
-webkit-box-shadow: 0 2px 20px -5px rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 20px -5px rgba(0, 0, 0, 0.1);
}
header .navbar .dropdown-menu .dropdown-item.active {
background: #f8f9fa;
color: #007bff !important;
}
header .navbar .dropdown-menu a {
padding-top: 7px;
padding-bottom: 7px;
}
/* Owl Carousel */
.owl-carousel .owl-item {
opacity: .4;
}
.owl-carousel .owl-item.active {
opacity: 1;
}
.owl-carousel .owl-nav {
position: absolute;
top: 50%;
width: 100%;
}
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
position: absolute;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
margin-top: -10px;
}
.owl-carousel .owl-nav .owl-prev span:before,
.owl-carousel .owl-nav .owl-next span:before {
font-size: 40px;
}
.owl-carousel .owl-nav .owl-prev {
left: 30px !important;
}
.owl-carousel .owl-nav .owl-next {
right: 30px !important;
}
.owl-carousel .owl-dots {
text-align: center;
}
.owl-carousel .owl-dots .owl-dot {
width: 10px;
height: 10px;
margin: 5px;
border-radius: 50%;
background: #e6e6e6;
}
.owl-carousel .owl-dots .owl-dot.active {
background: #007bff;
}
.owl-carousel.home-slider {
z-index: 1;
position: relative;
}
.owl-carousel.home-slider .owl-nav {
opacity: 0;
visibility: hidden;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
}
.owl-carousel.home-slider .owl-nav button {
color: #fff;
}
.owl-carousel.home-slider:focus .owl-nav, .owl-carousel.home-slider:hover .owl-nav {
opacity: 1;
visibility: visible;
}
.owl-carousel.home-slider .slider-item {
background-size:cover;
background-repeat: no-repeat;
background-position: center center;
}
.owl-carousel.home-slider .slider-item .slider-text {
color: #fff;
height: calc(100vh - 117px);
min-height: 700px;
}
.owl-carousel.home-slider .slider-item .slider-text h1 {
font-size: 72px;
color: #fff;
line-height: 1.2;
font-weight: 300;
}
#media (max-width: 991px) {
.owl-carousel.home-slider .slider-item .slider-text h1 {
font-size: 40px;
}
}
.owl-carousel.home-slider .slider-item .slider-text p {
font-size: 20px;
line-height: 1.5;
font-weight: 300;
color: rgba(255, 255, 255, 0.8);
}
.owl-carousel.home-slider.inner-page .slider-item {
height: calc(50vh - 117px);
min-height: 500px;
}
.owl-carousel.home-slider.inner-page .slider-item .slider-text {
color: #fff;
height: calc(50vh - 117px);
min-height: 500px;
}
.owl-carousel.home-slider .owl-dots {
position: absolute;
bottom: 150px;
width: 100%;
}
.owl-carousel.home-slider .owl-dots .owl-dot {
width: 18px;
height: 18px;
margin: 5px;
border-radius: 50%;
background: #e6e6e6;
background: none;
border: 2px solid rgba(255, 255, 255, 0.5);
outline: none !important;
position: relative;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
}
.owl-carousel.home-slider .owl-dots .owl-dot span {
position: absolute;
width: 6px;
height: 6px;
background: rgba(255, 255, 255, 0.5);
border-radius: 50% !important;
left: 50%;
top: 50%;
display: block;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.owl-carousel.home-slider .owl-dots .owl-dot.active {
border: 2px solid white;
}
.owl-carousel.home-slider .owl-dots .owl-dot.active span {
background: white;
}
.owl-carousel.major-caousel .owl-stage-outer {
padding-top: 30px;
padding-bottom: 30px;
}
.owl-carousel.major-caousel .owl-nav .owl-prev, .owl-carousel.major-caousel .owl-nav .owl-next {
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
color: #495057;
}
.owl-carousel.major-caousel .owl-nav .owl-prev:hover, .owl-carousel.major-caousel .owl-nav .owl-prev:focus, .owl-carousel.major-caousel .owl-nav .owl-next:hover, .owl-carousel.major-caousel .owl-nav .owl-next:focus {
color: #868e96;
outline: none;
}
.owl-carousel.major-caousel .owl-nav .owl-prev.disabled, .owl-carousel.major-caousel .owl-nav .owl-next.disabled {
color: #dee2e6;
}
.owl-carousel.major-caousel .owl-nav .owl-prev {
left: -60px !important;
}
.owl-carousel.major-caousel .owl-nav .owl-next {
right: -60px !important;
}
.owl-carousel.major-caousel .owl-dots {
bottom: -30px !important;
position: relative;
}
.owl-custom-nav {
float: right;
position: relative;
z-index: 10;
}
.owl-custom-nav .owl-custom-prev,
.owl-custom-nav .owl-custom-next {
padding: 10px;
font-size: 30px;
background: #ccc;
line-height: 0;
width: 60px;
text-align: center;
display: inline-block;
}
.home-feature {
margin-top: -120px;
position: relative;
z-index: 2;
}
.home-feature .one-col, .home-feature .two-col, .home-feature .three-col {
position: relative;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
z-index: 2;
top: 0;
border-bottom: 10px solid #5AC8D8;
}
#media (max-width: 767px) {
.home-feature .one-col, .home-feature .two-col, .home-feature .three-col {
border: none;
margin-bottom: 10px;
}
}
.home-feature .one-col .col-inner, .home-feature .two-col .col-inner, .home-feature .three-col .col-inner {
position: relative;
}
.home-feature .one-col .icon, .home-feature .two-col .icon, .home-feature .three-col .icon {
font-size: 200px;
color: rgba(255, 255, 255, 0.07);
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
z-index: -1;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
}
.home-feature .one-col h2, .home-feature .two-col h2, .home-feature .three-col h2 {
color: #fff;
font-size: 16px;
letter-spacing: .05em;
font-weight: 300;
margin-bottom: 20px;
text-transform: uppercase;
}
.home-feature .one-col p, .home-feature .two-col p, .home-feature .three-col p {
color: rgba(255, 255, 255, 0.7);
font-weight: 300;
}
.home-feature .one-col p:last-child, .home-feature .two-col p:last-child, .home-feature .three-col p:last-child {
margin-bottom: 0;
}
.home-feature .one-col .btn-more, .home-feature .two-col .btn-more, .home-feature .three-col .btn-more {
-webkit-transition: .15s all ease-out;
-o-transition: .15s all ease-out;
transition: .15s all ease-out;
opacity: 0;
visibility: hidden;
position: absolute;
display: block;
text-align: center;
bottom: -50px;
left: 0;
right: 0;
padding: 20px;
background: #5AC8D8;
z-index: -1;
color: #fff;
-webkit-box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.4);
box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.4);
}
#media (max-width: 767px) {
.home-feature .one-col .btn-more, .home-feature .two-col .btn-more, .home-feature .three-col .btn-more {
opacity: 1;
visibility: visible;
position: relative;
bottom: 0;
}
}
.home-feature .one-col .btn-more:hover, .home-feature .two-col .btn-more:hover, .home-feature .three-col .btn-more:hover {
background: #6fcfdd;
}
.home-feature .one-col:hover, .home-feature .two-col:hover, .home-feature .three-col:hover {
top: -10px;
z-index: 3;
-webkit-box-shadow: 0 4px 40px -5px rgba(0, 0, 0, 0.4);
box-shadow: 0 4px 40px -5px rgba(0, 0, 0, 0.4);
}
#media (max-width: 767px) {
.home-feature .one-col:hover, .home-feature .two-col:hover, .home-feature .three-col:hover {
top: 0;
}
}
.home-feature .one-col:hover .icon, .home-feature .two-col:hover .icon, .home-feature .three-col:hover .icon {
-webkit-transform: translate(-10px, -50%);
-ms-transform: translate(-10px, -50%);
transform: translate(-10px, -50%);
}
.home-feature .one-col:hover .btn-more, .home-feature .two-col:hover .btn-more, .home-feature .three-col:hover .btn-more {
opacity: 1;
visibility: visible;
bottom: -50px;
}
#media (max-width: 767px) {
.home-feature .one-col:hover .btn-more, .home-feature .two-col:hover .btn-more, .home-feature .three-col:hover .btn-more {
bottom: 0;
}
}
.home-feature .one-col {
background: #007bff;
}
.home-feature .two-col {
background: #006fe6;
}
.home-feature .three-col {
background: #0067d6;
}
.section {
padding: 7em 0;
}
.cta-link {
background: #007bff;
padding: 3.5em 0 3em 0;
display: block;
text-align: center;
}
.cta-link:focus, .cta-link:active {
outline: none;
}
.cta-link span {
line-height: 1.2;
}
.cta-link .sub-heading {
color: #fff;
display: block;
font-size: 20px;
}
.cta-link .heading {
font-size: 50px;
color: #001933;
}
#media (max-width: 991px) {
.cta-link .heading {
font-size: 30px;
}
}
.cta-link:hover {
background: #006fe6;
}
.cover_1 {
background-size: cover;
background-position: center center;
padding: 7em 0;
}
.cover_1 .sub-heading {
color: rgba(255, 255, 255, 0.7);
font-size: 22px;
}
.cover_1 .heading {
font-size: 50px;
color: white;
font-weight: 300;
}
.heading {
color: #000;
}
.heading.border-bottom {
position: relative;
padding-bottom: 30px;
}
.heading.border-bottom:before {
bottom: 0;
position: absolute;
content: "";
width: 50px;
height: 2px;
left: 50%;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
background: #007bff;
}
.text-black {
color: #000 !important;
}
.stretch-section .video {
display: block;
position: relative;
-webkit-box-shadow: 4px 4px 70px -20px rgba(0, 0, 0, 0.5);
box-shadow: 4px 4px 70px -20px rgba(0, 0, 0, 0.5);
}
.media-feature .icon {
font-size: 60px;
color: #007bff;
}
.media-feature h3 {
font-size: 20px;
}
.media-custom {
background: #fff;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
-webkit-box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}
.media-custom .meta-post {
color: #adb5bd;
font-size: 13px;
text-transform: uppercase;
}
.media-custom .meta-chat {
color: #ced4da;
}
.media-custom .meta-chat:hover {
color: #868e96;
}
.media-custom:focus, .media-custom:hover {
-webkit-box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
}
.media-custom .media-body {
padding: 30px;
}
.media-custom .media-body h3 {
font-size: 20px;
}
.media-custom .media-body p:last-child {
margin-bottom: 0;
}
.list-unstyled.check li {
position: relative;
padding-left: 30px;
line-height: 1.3;
margin-bottom: 10px;
}
.list-unstyled.check li:before {
color: #5AC8D8;
left: 0;
font-family: "Ionicons";
content: "\f122";
position: absolute;
}
.custom-tabs .border-right {
border-right: 1px solid #dee2e6;
}
#media (max-width: 767px) {
.custom-tabs .border-right {
border-right: none;
}
}
.custom-tabs .nav-pills .nav-link {
padding-left: 0;
font-size: 26px;
font-weight: 100;
color: #adb5bd;
line-height: 1.2;
margin-bottom: 10px;
}
.custom-tabs .nav-pills .nav-link span {
font-size: 18px;
}
.custom-tabs .nav-pills .nav-link.active {
background: none;
color: #007bff;
padding-left: 20px;
position: relative;
}
.custom-tabs .nav-pills .nav-link.active:before {
content: "";
position: absolute;
top: 10px;
bottom: 10px;
left: 0;
width: 2px;
background: #5AC8D8;
}
.custom-tabs .tab-pane .icon {
font-size: 60px;
display: block;
color: #007bff;
}
.custom-tabs .tab-pane h2 {
font-size: 60px;
font-weight: 300;
}
#modalAppointment .modal-content {
border-radius: 0;
border: none;
}
#modalAppointment .modal-body, #modalAppointment .modal-footer {
padding: 40px;
}
.site-footer {
padding: 7em 0;
background: #f2f2f2;
background: #283E56;
color: rgba(255, 255, 255, 0.7);
}
.site-footer a {
color: rgba(255, 255, 255, 0.5);
}
.site-footer a:hover {
color: white;
}
.site-footer h3 {
color: #fff;
font-size: 16px;
font-weight: 700;
margin-bottom: 30px;
text-transform: uppercase;
letter-spacing: .05em;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding-bottom: 10px;
margin-bottom: 20px;
}
.site-footer .footer-link li {
line-height: 1.3;
margin-bottom: 15px;
}
.site-footer hr {
width: 100%;
}
.site-footer .border-t {
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.copyright {
font-size: 14px;
}
.element-animate {
opacity: 0;
visibility: hidden;
}
html code:
<section class="home-slider inner-page owl-carousel">
<div class="slider-item" style="background-image: url({{ asset('img/slider-2.jpg') }});">
<div class="container">
<div class="row slider-text align-items-center">
<div class="col-md-7 col-sm-12 element-animate">
<h1>{% trans %}Welcome to Denticlin{% endtrans %}</h1>
</div>
</div>
</div>
</div>
</section>
<!-- END section -->
<section class="section stretch-section">
<div class="container">
<div class="row justify-content-center mb-5 element-animate">
<div class="col-md-8 text-center mb-5">
<h2 class="text-uppercase heading border-bottom mb-4">{% trans %}sdfsdfn{% endtrans %}</h2>
<p class="mb-0 lead">{% trans %}dsfsfs{% endtrans %}</p><br>
<p class="mb-0 lead">{% trans %}Wsdfs.{% endtrans %}</p><br>
<p class="mb-0 lead">{% trans %}sdfsdfn.{% endtrans %}</p><br>
</div>
</div>
</div>
</section>
Please, if possible, provide your HTML code, without it nobody can really tell what is going on.
CSS newbie here.
I was trying to understand the code to get this parallax effect but I still can't understand why the user decided to put ":before" on two out of four divs.
I read that :before is used to attach something before an element but I can't understand what is being attached here. Can someone help me? Thanks.
https://codepen.io/keithclark/pen/JycFw
#import url(https://fonts.googleapis.com/css?family=Nunito);
html {
height: 100%;
overflow: hidden;
}
body {
margin:0;
padding:0;
perspective: 1px;
transform-style: preserve-3d;
height: 100%;
overflow-y: scroll;
overflow-x: hidden;
font-family: Nunito;
}
h1 {
font-size: 250%
}
p {
font-size: 140%;
line-height: 150%;
color: #333;
}
.slide {
position: relative;
padding: 25vh 10%;
min-height: 100vh;
width: 100vw;
box-sizing: border-box;
box-shadow: 0 -1px 10px rgba(0, 0, 0, .7);
transform-style: inherit;
}
img {
position: absolute;
top: 50%;
left: 35%;
width: 320px;
height: 240px;
transform: translateZ(.25px) scale(.75) translateX(-94%) translateY(-100%) rotate(2deg);
padding: 10px;
border-radius: 5px;
background: rgba(240,230,220, .7);
box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}
img:last-of-type {
transform: translateZ(.4px) scale(.6) translateX(-104%) translateY(-40%) rotate(-5deg);
}
.slide:before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
box-shadow: 0 0 8px 1px rgba(0, 0, 0, .7);
}
.title {
width: 50%;
padding: 5%;
border-radius: 5px;
background: rgba(240,230,220, .7);
box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}
.slide:nth-child(2n) .title {
margin-left: 0;
margin-right: auto;
}
.slide:nth-child(2n+1) .title {
margin-left: auto;
margin-right: 0;
}
.slide, .slide:before {
background: 50% 50% / cover;
}
.header {
text-align: center;
font-size: 175%;
color: #fff;
text-shadow: 0 2px 2px #000;
}
#title {
background-image: url("https://lorempixel.com/640/480/abstract/6/");
z-index:2;
}
#title h1 {
transform: translateZ(.25px) scale(.75);
transform-origin: 50% 100%;
}
#slide1:before {
background-image: url("https://lorempixel.com/640/480/abstract/4/");
transform: translateZ(-1px) scale(2);
}
#slide2 {
background-image: url("https://lorempixel.com/640/480/abstract/3/");
z-index:2;
}
#slide3:before {
background-image: url("https://lorempixel.com/640/480/abstract/5/");
transform: translateZ(-1px) scale(2);
}
#slide4 {
background: #222;
}
This has been really frustrating. I'm trying to add a dropdown tooltip at the bottom of my profile avatar. Unfortunately that does not seem to work properly. The tooltip seems to be partly hidden. How can i keep the specific design of the tooltip and make it display directly at the bottom of the icon with the arrow pointing in the middle of the icon?
body {
background-color: #36a4b0;
}
#shell-header {
display: flex;
height: 46px;
overflow: hidden;
z-index: 3;
opacity: 1;
white-space: nowrap;
}
.logo-wrapper {
padding-left: 56px;
}
#media (max-width: 480px) {
.logo-wrapper {
padding-left: 1rem;
}
}
.title-wrapper {
left: 0;
right: 0;
text-align: right;
flex-grow: 1;
}
.avatar-wrapper {
padding-right: 56px;
position: relative;
}
#media (max-width: 480px) {
.avatar-wrapper {
padding-right: 1rem;
}
}
.logo {
height: 30px;
line-height: 40px;
max-width: 96px;
margin-top: 0.35rem;
}
.log-shellHeaderTitle {
font-size: 20px;
line-height: 36px;
color: #fff;
text-overflow: ellipsis;
text-align: center;
display: block;
white-space: nowrap;
overflow: hidden;
font-weight: inherit;
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.log-langButton {
padding-right: 40px;
}
#media only screen and (max-width: 480px) {
.log-langButton {
padding-right: 10px;
}
}
#log-LangButtSwitch {
background: transparent;
cursor: pointer;
display: block;
position: relative;
float: left;
width: 40px;
padding: 2px;
margin-top: 0.25rem;
border: 2px solid #fff;
border-radius: 28px;
}
.log-switchHandle {
display: block;
background: #fff;
height: 20px;
width: 20px;
z-index: 9999;
border-radius: 20px;
}
.log-switchLabels {
position: absolute;
top: 5px;
z-index: -1;
width: 100%;
font-family: Helvetica, sans-serif;
font-weight: bold;
color: #fff;
text-transform: uppercase;
text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.log-switchLabels:before {
content: "EN";
position: absolute;
left: 21px;
font-size: 12px;
}
.log-switchLabels:after {
content: "DE";
position: absolute;
right: 26px;
font-size: 12px;
}
.fa-user-o:before {
font-size: 1.375rem;
color: #fff;
}
.avatar {
text-align: center;
margin-top: 0.35rem;
width: 25px;
}
.log-popover {
visibility: visible;
z-index: 460;
display: block;
overflow: visible;
top: 121px;
left: 375.063px;
bottom: 10px;
transition: opacity 0.2s linear;
color: #333333;
min-width: 100px;
box-sizing: border-box;
outline: none;
max-width: 100%;
max-height: 84px;
min-height: 2rem;
overflow: hidden;
background: #ffffff;
border: none;
box-shadow: 0 0.625rem 1.875rem 0 rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
}
.log-popover a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.log-popover a:hover {
background-color: #f0f0f0;
}
.log-popover a:active,
.log-popover a:focus {
background: #e8eff6;
outline: 1px dotted #000000;
outline-offset: -2px;
}
.log-popover:after,
.log-popover:before {
bottom: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.log-popover:after {
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #fff;
border-width: 10px;
margin-left: -10px;
}
.log-popover:before {
border-color: rgba(51, 51, 51, 0);
border-bottom-color: #333333;
border-width: 11px;
margin-left: -11px;
}
.log-toolContainer {
position: absolute;
height: 100%;
width: 100%;
}
<div class="log-container">
<div id="shell-header">
<div class="logo-wrapper">
<img src="https://s-media-cache-ak0.pinimg.com/236x/f7/0a/f6/f70af6169bbe3f8346e64a25d54bafea.jpg" class="logo">
</div>
<div class="title-wrapper">
<div class="log-shellHeaderTitle">Dashboard</div>
</div>
<div class="log-langButton">
<div id="log-LangButtSwitch">
<span class="log-switchHandle"></span>
<span class="log-switchLabels"></span>
</div>
</div>
<div class="avatar-wrapper">
<img class="avatar" src="https://www.talentenportaalhellendoorn.nl/thumbnails/man.png">
<div class="log-toolContainer">
<div class="log-popover">
Profile
Log out
</div>
</div>
</div>
</div>
</div>
remove overflow: hidden; from #shell-header so the menu isn't cut off, then use positioning to put the container for the menu in the bottom/left of the parent, and use translateX() to offset it 50% of it's own width + 50% of the avatar width to center it under the icon.
body {
background-color: #36a4b0;
}
#shell-header {
display: flex;
height: 46px;
z-index: 3;
opacity: 1;
white-space: nowrap;
}
.logo-wrapper {
padding-left: 56px;
}
#media (max-width: 480px) {
.logo-wrapper {
padding-left: 1rem;
}
}
.title-wrapper {
left: 0;
right: 0;
text-align: right;
flex-grow: 1;
}
.avatar-wrapper {
padding-right: 56px;
position: relative;
}
#media (max-width: 480px) {
.avatar-wrapper {
padding-right: 1rem;
}
}
.logo {
height: 30px;
line-height: 40px;
max-width: 96px;
margin-top: 0.35rem;
}
.log-shellHeaderTitle {
font-size: 20px;
line-height: 36px;
color: #fff;
text-overflow: ellipsis;
text-align: center;
display: block;
white-space: nowrap;
overflow: hidden;
font-weight: inherit;
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.log-langButton {
padding-right: 40px;
}
#media only screen and (max-width: 480px) {
.log-langButton {
padding-right: 10px;
}
}
#log-LangButtSwitch {
background: transparent;
cursor: pointer;
display: block;
position: relative;
float: left;
width: 40px;
padding: 2px;
margin-top: 0.25rem;
border: 2px solid #fff;
border-radius: 28px;
}
.log-switchHandle {
display: block;
background: #fff;
height: 20px;
width: 20px;
z-index: 9999;
border-radius: 20px;
}
.log-switchLabels {
position: absolute;
top: 5px;
z-index: -1;
width: 100%;
font-family: Helvetica, sans-serif;
font-weight: bold;
color: #fff;
text-transform: uppercase;
text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.log-switchLabels:before {
content: "EN";
position: absolute;
left: 21px;
font-size: 12px;
}
.log-switchLabels:after {
content: "DE";
position: absolute;
right: 26px;
font-size: 12px;
}
.fa-user-o:before {
font-size: 1.375rem;
color: #fff;
}
.avatar {
text-align: center;
margin-top: 0.35rem;
width: 25px;
}
.log-popover {
visibility: visible;
z-index: 460;
display: block;
overflow: visible;
top: 121px;
left: 375.063px;
bottom: 10px;
transition: opacity 0.2s linear;
color: #333333;
min-width: 100px;
box-sizing: border-box;
outline: none;
max-width: 100%;
max-height: 84px;
min-height: 2rem;
overflow: hidden;
background: #ffffff;
border: none;
box-shadow: 0 0.625rem 1.875rem 0 rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
}
.log-popover a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.log-popover a:hover {
background-color: #f0f0f0;
}
.log-popover a:active,
.log-popover a:focus {
background: #e8eff6;
outline: 1px dotted #000000;
outline-offset: -2px;
}
.log-popover:after,
.log-popover:before {
bottom: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.log-popover:after {
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #fff;
border-width: 10px;
margin-left: -10px;
}
.log-popover:before {
border-color: rgba(51, 51, 51, 0);
border-bottom-color: #333333;
border-width: 11px;
margin-left: -11px;
}
.log-toolContainer {
position: absolute;
height: 100%;
width: 100%;
top: 100%;
left: 0;
transform: translateX(calc(-50% + 12.5px));
}
<div class="log-container">
<div id="shell-header">
<div class="logo-wrapper">
<img src="https://s-media-cache-ak0.pinimg.com/236x/f7/0a/f6/f70af6169bbe3f8346e64a25d54bafea.jpg" class="logo">
</div>
<div class="title-wrapper">
<div class="log-shellHeaderTitle">Dashboard</div>
</div>
<div class="log-langButton">
<div id="log-LangButtSwitch">
<span class="log-switchHandle"></span>
<span class="log-switchLabels"></span>
</div>
</div>
<div class="avatar-wrapper">
<img class="avatar" src="https://www.talentenportaalhellendoorn.nl/thumbnails/man.png">
<div class="log-toolContainer">
<div class="log-popover">
Profile
Log out
</div>
</div>
</div>
</div>
</div>
Remove overflow hidden from #shell-header...
body {
background-color: #36a4b0;
}
#shell-header {
display: flex;
height: 46px;
overflow: visible;
z-index: 3;
opacity: 1;
white-space: nowrap;
}
.logo-wrapper {
padding-left: 56px;
}
#media (max-width: 480px) {
.logo-wrapper {
padding-left: 1rem;
}
}
.title-wrapper {
left: 0;
right: 0;
text-align: right;
flex-grow: 1;
}
.avatar-wrapper {
padding-right: 56px;
position: relative;
}
#media (max-width: 480px) {
.avatar-wrapper {
padding-right: 1rem;
}
}
.logo {
height: 30px;
line-height: 40px;
max-width: 96px;
margin-top: 0.35rem;
}
.log-shellHeaderTitle {
font-size: 20px;
line-height: 36px;
color: #fff;
text-overflow: ellipsis;
text-align: center;
display: block;
white-space: nowrap;
overflow: hidden;
font-weight: inherit;
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.log-langButton {
padding-right: 40px;
}
#media only screen and (max-width: 480px) {
.log-langButton {
padding-right: 10px;
}
}
#log-LangButtSwitch {
background: transparent;
cursor: pointer;
display: block;
position: relative;
float: left;
width: 40px;
padding: 2px;
margin-top: 0.25rem;
border: 2px solid #fff;
border-radius: 28px;
}
.log-switchHandle {
display: block;
background: #fff;
height: 20px;
width: 20px;
z-index: 9999;
border-radius: 20px;
}
.log-switchLabels {
position: absolute;
top: 5px;
z-index: -1;
width: 100%;
font-family: Helvetica, sans-serif;
font-weight: bold;
color: #fff;
text-transform: uppercase;
text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.log-switchLabels:before {
content: "EN";
position: absolute;
left: 21px;
font-size: 12px;
}
.log-switchLabels:after {
content: "DE";
position: absolute;
right: 26px;
font-size: 12px;
}
.fa-user-o:before {
font-size: 1.375rem;
color: #fff;
}
.avatar {
text-align: center;
margin-top: 0.35rem;
width: 25px;
}
.log-popover {
visibility: visible;
z-index: 460;
display: block;
overflow: visible;
top: 121px;
left: 375.063px;
bottom: 10px;
transition: opacity 0.2s linear;
color: #333333;
min-width: 100px;
box-sizing: border-box;
outline: none;
max-width: 100%;
max-height: 84px;
min-height: 2rem;
overflow: hidden;
background: #ffffff;
border: none;
box-shadow: 0 0.625rem 1.875rem 0 rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
}
.log-popover a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.log-popover a:hover {
background-color: #f0f0f0;
}
.log-popover a:active,
.log-popover a:focus {
background: #e8eff6;
outline: 1px dotted #000000;
outline-offset: -2px;
}
.log-popover:after,
.log-popover:before {
bottom: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.log-popover:after {
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #fff;
border-width: 10px;
margin-left: -10px;
}
.log-popover:before {
border-color: rgba(51, 51, 51, 0);
border-bottom-color: #333333;
border-width: 11px;
margin-left: -11px;
}
.log-toolContainer {
position: absolute;
height: 100%;
width: 100%;
}
<div class="log-container">
<div id="shell-header">
<div class="logo-wrapper">
<img src="https://s-media-cache-ak0.pinimg.com/236x/f7/0a/f6/f70af6169bbe3f8346e64a25d54bafea.jpg" class="logo">
</div>
<div class="title-wrapper">
<div class="log-shellHeaderTitle">Dashboard</div>
</div>
<div class="log-langButton">
<div id="log-LangButtSwitch">
<span class="log-switchHandle"></span>
<span class="log-switchLabels"></span>
</div>
</div>
<div class="avatar-wrapper">
<img class="avatar" src="https://www.talentenportaalhellendoorn.nl/thumbnails/man.png">
<div class="log-toolContainer">
<div class="log-popover">
Profile
Log out
</div>
</div>
</div>
</div>
</div>
I am working on a project where I am making two divs that are full width the main one comes first and the second div comes after the main div.
Main Div CSS:
*{
margin:0px;
padding:0px;
}
div.main{
top: -100px;
/*background: url(img/bg.jpg) no-repeat center center fixed #000000;*/
/*background: url(http://www.deliciousfood4u.com/wp-content/uploads/2012/05/food_steak_desktop_1302x1020_wallpaper-420339.jpg) no-repeat center center fixed #324a6f;*/
background-size: cover;
background-repeat: no-repeat;
margin-left: -1px;
position: absolute;
}
html, body, .main, #wrappertwo { height: 100%; min-height: 100%; }
.main { margin: 0 auto; oveflow: hidden; width: 100%; background-color: gray;}
I would like my end website to work similar to this website here: http://www.whitmansnyc.com/
You can see all the code here: http://jsfiddle.net/QFRB8/
Here you go, I'm sure you will have much better use than me. Just edit the box in there and delete it to have a full width with main and second div.
http://jsfiddle.net/tS9fX/
html:
<!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Blah</title>
<link type="text/css" rel="stylesheet" media="all" href=
"style.css" />
<link type="text/css" rel="stylesheet" media="screen" href="css.css" />
<link type="text/css" rel="stylesheet" media="screen" href="css_002.css" />
</head>
<body class="user_suscriptions index">
<div id="wrapper">
<h1 class="logo">Title</h1>
<h2>another title</h2>
<div class="field form_suscription">
<form novalidate="novalidate" method="post" id="new_user_suscription" data-remote=
"true" class="simple_form new_user_suscription" action="/user_suscriptions"
accept-charset="UTF-8" name="new_user_suscription">
<div style="margin:0;padding:0;display:inline">
<input type="hidden" value="✓" name="utf8" /> <input type="hidden"
value="1Oz4NpXl188INQoGZkqy4LaItW/6sxtsNNruWFBJQEM=" name=
"authenticity_token" />
</div>
<div class="error_message"></div>
<div class="input email required user_suscription_email">
<input type="email" size="50" placeholder="Your email address ;)" name=
"user_suscription[email]" id="user_suscription_email" class=
"string email required left" autofocus="autofocus" />
</div><input type="submit" value="Subscribe!" name="commit" class=
"btn green-btn" />
</form>
<div class="clear"></div><small>blahb</small>
</div>
<div class="clear"></div>
<div class="content">
<div class="left">
<h2 class="logo">test subject</h2>
</div>
<div class="right">
<h2>Blah title.</h2>
<p>Blah</p>
</div>
<div class="clear"></div>
</div>
<div class="content">
<div class="block">
<h3>blag</h3>
<p>blag</p>
</div>
<div class="block">
<h3>blag</h3>
<p>blag</p>
</div>
<div class="block">
<h3>blag</h3>
<p>blag</p>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</body>
</html>
CSS:
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
display: block;
}
audio,
canvas,
video {
display: inline-block;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden] {
display: none;
}
html {
font-family: sans-serif; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-ms-text-size-adjust: 100%; /* 2 */
}
body {
margin: 0;
}
a:focus {
outline: thin dotted;
}
a:active,
a:hover {
outline: 0;
}
h1 {
font-size: 2em;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
mark {
background: #ff0;
color: #000;
}
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: 1em;
}
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
q {
quotes: "\201C" "\201D" "\2018" "\2019";
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 0;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
button,
input,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 2 */
margin: 0; /* 3 */
}
button,
input {
line-height: normal;
}
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
button[disabled],
input[disabled] {
cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
table {
border-collapse: collapse;
border-spacing: 0;
}
body {
font: 14px "Lato", sans-serif;
background: url(http://i.imgur.com/oRLPdXl.jpg) no-repeat center center fixed;
background-size: cover;
color: #FFF; }
#bgMax {
min-height: 100%;
min-width: 1400px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0; }
a {
text-decoration: none;
color: white; }
p {
font-size: 16px;
line-height: 30px; }
li {
list-style: none; }
.clear {
clear: both;
visibility: hidden; }
.bgFade {
background-color: white; }
input[type="text"], input[type="email"] {
border: none;
padding: 14px;
font-size: 16px;
border-radius: 3px;
-webkit-border-radius: 3px;
-o-border-radius: 3px;
-moz-border-radius: 3px; }
input[type="text"]:focus, input[type="email"]:focus {
border-color: red;
outline: none; }
.green-btn {
background: url("http://printgram.noflagra.com/wp-content/themes/Printgram/css/images/comofunciona-bg.png") repeat scroll 0 0 transparent;
color: white;
padding: 16px;
font-weight: bold;
display: inline-block;
width: initial;
border: none;
border-radius: 3px;
-webkit-border-radius: 3px;
-o-border-radius: 3px;
-moz-border-radius: 3px;
transition: 0.2s all ease-out;
-webkit-transition: 0.2s all ease-out;
-moz-transition: 0.2s all ease-out;
-o-transition: 0.2s all ease-out; }
.green-btn:hover {
background: #34da97; }
.green-btn:active {
background: #08b16d; }
::-webkit-scrollbar {
width: 15px;
margin-left: 10px;
background: white;
-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.25); }
::-webkit-scrollbar-thumb {
border: solid 0 transparent;
border-right-width: 3px;
border-left-width: 4px;
-webkit-border-radius: 9px 6px;
-webkit-box-shadow: inset 0 0 0 1px #a1a1a1, inset 0 0 0 6px #a1a1a1; }
::-webkit-scrollbar-thumb:hover {
-webkit-box-shadow: inset 0 0 0 1px gray, inset 0 0 0 6px gray; }
::-webkit-scrollbar-track-piece {
background: transparent none;
border: solid 4px transparent;
border-right-width: 8px;
margin: 4px; }
#-webkit-keyframes fadeInUp {
0% {
opacity: 0;
-webkit-transform: translateY(30px); }
100% {
opacity: 1;
-webkit-transform: translateY(0); } }
#-moz-keyframes fadeInUp {
0% {
opacity: 0;
-moz-transform: translateY(30px); }
100% {
opacity: 1;
-moz-transform: translateY(0); } }
#-o-keyframes fadeInUp {
0% {
opacity: 0;
-o-transform: translateY(30px); }
100% {
opacity: 1;
-o-transform: translateY(0); } }
#keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(30px); }
100% {
opacity: 1;
transform: translateY(0); } }
#-webkit-keyframes fadeIn {
0% {
opacity: 0; }
100% {
opacity: 1; } }
#-moz-keyframes fadeIn {
0% {
opacity: 0; }
100% {
opacity: 1; } }
#-o-keyframes fadeIn {
0% {
opacity: 0; }
100% {
opacity: 1; } }
#keyframes fadeIn {
0% {
opacity: 0; }
100% {
opacity: 1; } }
.logo {
font-family: "Pacifico", cursive;
color: white;
font-weight: normal;
margin: 0; }
.content {
width: 1000px;
margin: 0 auto;
padding: 100px 0px; }
.left {
float: left; }
.right {
float: right; }
header .content {
padding: 0; }
header .language {
float: right;
margin-top: 15px; }
header .language .social {
float: left;
margin-right: 10px; }
header .language .social .fb, header .language .social .tw {
float: left;
margin: 0 5px; }
header .language .select {
float: left;
background: white;
border-radius: 3px;
-webkit-border-radius: 3px;
-o-border-radius: 3px;
-moz-border-radius: 3px;
padding: 1px 9px; }
header .language .select a {
font-weight: bold;
font-size: 12px;
color: #999999; }
.info {
animation: fadeInUp 1s 1;
-moz-animation: fadeInUp 1s 1;
-webkit-animation: fadeInUp 1s 1;
-o-animation: fadeInUp 1s 1;
width: 910px;
margin: 0 auto;
padding: 120px 0px 190px 0px;
text-align: center; }
.info small {
color: white;
display: block;
font-size: 15px;
margin: 5px;
text-shadow: 0px 1px 1px #353535;
-webkit-text-shadow: 0px 1px 1px #353535;
-o-text-shadow: 0px 1px 1px #353535;
-moz-text-shadow: 0px 1px 1px #353535; }
.info .logo {
font-size: 70px; }
.info h2 {
color: white;
font-size: 30px;
font-weight: 300;
text-align: center;
margin: 40px 0px;
text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
-webkit-text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
-o-text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
-moz-text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3); }
.info .field {
margin: 50px 0px 10px 0px;
animation: fadeInUp 1s 1;
-moz-animation: fadeInUp 1s 1;
-webkit-animation: fadeInUp 1s 1;
-o-animation: fadeInUp 1s 1;
width: 570px;
margin: 0 auto; }
.info .field input {
width: 400px;
margin: 10px 0px; }
.info .field .btn {
margin: 10px 0px; }
.info .field .green-btn {
width: initial; }
.info .social {
margin: 0px 0px 60px 0px; }
.about {
background: url("http://printgram.noflagra.com/wp-content/themes/Printgram/css/images/comofunciona-bg.png") repeat scroll 0 0 transparent; }
.about .logo {
color: white;
font-size: 50px; }
.about p {
font-weight: bold; }
.about h2 {
font-size: 22px; }
.about .left {
float: left;
width: 50%;
margin-top: 50px;
text-align: center; }
.about .right {
width: 50%;
float: right;
color: white;
font-weight: 300; }
.demo .content {
padding: 130px 0px 150px 0px;
text-align: center; }
.demo h2 {
font-size: 30px; }
.demo .social {
margin-top: 20px;
display: inline-block; }
.demo .social .fb, .demo .social .gp, .demo .social .tw {
float: left;
margin: 0 5px; }
.features {
background: url("http://printgram.noflagra.com/wp-content/themes/Printgram/css/images/porque-bg.png") repeat scroll 0 0 transparent;
overflow: hidden; }
.features .content {
padding: 100px 0px;
margin: 0 auto; }
.features .block {
float: left;
width: 30%;
margin: 15px;
text-align: center;
position: relative; }
.features .block h3 {
font-size: 22px; }
.features .block p {
padding: 0px 20px; }
.features .feature1, .features .feature2, .features .feature3, .features .feature4, .features .feature5, .features .feature6 {
width: 152px;
height: 153px;
margin: auto; }
.features .feature1 {
background: url("http://printgram.noflagra.com/wp-content/uploads/2012/08/2-tralha1.png") no-repeat scroll center center transparent;
}
.features .feature2 {
background: url("http://printgram.noflagra.com/wp-content/uploads/2012/08/1-instagram1.png") no-repeat scroll center center transparent;
}
.features .feature3 {
background: url("http://printgram.noflagra.com/wp-content/uploads/2012/08/3-foto1.png") no-repeat scroll center center transparent;
}
footer {
background: url("http://printgram.noflagra.com/wp-content/themes/Printgram/css/images/footer-bg.png") repeat scroll 0 0 transparent;
border-top: 10px solid #464646;
color: white;
height: 100%;
}
footer .content {
width: 600px;
padding: 40px 0px;
text-align: center; }
footer .content .logo {
font-size: 25px;
font-weight: 300; }
footer .content p, footer .content a {
font-weight: 700; }
footer .content ul {
text-align: center;
padding: 0px;
display: block;
margin-bottom: 50px; }
footer .content ul li {
display: inline-block; }
footer .content ul a {
border-radius: 3px;
-webkit-border-radius: 3px;
-o-border-radius: 3px;
-moz-border-radius: 3px;
background: #0cad6c;
padding: 3px 7px;
margin: 3px; }
#media only screen and (max-width: 480px) {
header .content {
padding: 0;
margin-top: 0;
margin-bottom: 0; }
#bgMax {
left: 50%;
margin-left: -200px; }
#wrapper {
width: inherit; }
.content, .info {
margin: 20% auto;
width: 85%;
overflow: hidden; }
.info {
margin: 12% auto;
padding-top: 50px;
padding-bottom: 50px; }
.info .logo {
font-size: 55px; }
.info h2 {
font-size: 20px; }
.info small {
font-size: 11px; }
.info .field {
width: 100%; }
.info .field input, .info .field .green-btn {
padding: 12px;
font-size: 12px;
margin-top: 0px;
margin-bottom: 5px; }
.info .field input {
width: 90%%; }
.about {
font-size: 12px;
text-align: center; }
.about .left, .about .right {
width: auto; }
.about .left {
float: inherit;
margin: 0; }
.about .left h2 {
font-size: 40px; }
.about .right h2 {
font-size: 18px; }
.about .right p {
font-size: 14px;
line-height: 28px; }
.demo .content {
padding: 50px 0px; }
.demo .social {
width: 100px; }
.features {
font-size: 12px; }
.features .content {
width: 80%;
padding: 50px 0px; }
.features .block {
width: auto;
float: inherit;
margin: 55px 0px; }
.features .block h3 {
font-size: 18px; }
.features .block p {
line-height: 28px;
font-size: 14px; }
footer .content {
margin: 20% auto;
width: 85%;
overflow: hidden;
margin: 5% auto; } }
#media only screen and (min-width: 481px) and (max-width: 1024px) {
header .content {
padding: 0;
margin-top: 0;
margin-bottom: 0; }
#wrapper {
width: inherit; }
.content, .info {
margin: 15% auto;
width: 70%;
overflow: hidden; }
.info {
margin: 8% auto;
padding-top: 50px;
padding-bottom: 50px; }
.info .field {
width: 420px; }
.info .field input {
width: 50%; }
.about {
text-align: center; }
.about .left, .about .right {
width: auto; }
.about .left {
float: inherit;
margin: 0; }
.demo .content {
padding: 50px 0px; }
.features .content {
width: 80%;
padding: 50px 0px; }
.features .block {
width: auto;
float: inherit;
margin: 55px 0px; }
footer .content {
margin: 15% auto;
width: 70%;
overflow: hidden;
margin: 5% auto; } }
.error {
color: white;
text-shadow: 0px 1px 1px #353535;
-webkit-text-shadow: 0px 1px 1px #353535;
-o-text-shadow: 0px 1px 1px #353535;
-moz-text-shadow: 0px 1px 1px #353535;
animation: fadeInUp 1s 1;
-moz-animation: fadeInUp 1s 1;
-webkit-animation: fadeInUp 1s 1;
-o-animation: fadeInUp 1s 1;
font-weight: bold; }
.exist, .succesfull {
color: #5f5f5f;
font-size: 16px;
font-weight: normal;
width: 270px;
padding: 12px 10px;
margin: 0 auto;
border-radius: 5px;
background: white;
animation: fadeInUp 1s 1;
-moz-animation: fadeInUp 1s 1;
-webkit-animation: fadeInUp 1s 1;
-o-animation: fadeInUp 1s 1; }
.temp {
display: none;
color: #cccccc; }