Witam,
jeśli ktoś ma czas i chciałby go poświęcić na ocenę kodu i wytknięcie błędów to będę bardzo szczęśliwy :)
Prosiłbym również o poradę jak mam wyjąć div:
<div class="about_img">
<img src="images/salon_1.png" width="100%" height="100%" alt="Salon">
</div>
z section, aby obrazek skalował się poprawnie.
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simon Street's</title>
<link rel="stylesheet" href="reset.css" type="text/css" />
<link rel="stylesheet" href="style2.css" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>
<body>
<header>
<div>
<a href="#"><img src="images/logo.png" width="349px" height="230px"alt="logo"></a>
</div>
</header>
<nav>
<ol>
<li><a href="#">GŁÓWNA</a></li>
<li><a href="#">GALERIA</a></li>
<li><a href="#">O NAS</a></li>
<li><a href="#">OFERTA</a></li>
<li><a href="#">REZERWACJA</a></li>
<li><a href="#">KONTAKT</a></li>
</ol>
</nav>
<div class="slider">
<img src="images/salon_1.png" width="100%" height="100%" alt="Salon">
</div>
<section class="offerCON">
<h1>-Nasza oferta-</h1>
<p>Szukasz nowego spojrzenia i nowego ja? Chciałbyś poczuć, że czas jaki poświęcamy na wykonanieusługi jest tylko dla Ciebie? Cenisz odwagę i świeże pomysły? Przyjdź i odmień swój styl ! Zapraszamy!</p>
<div class="offer">
<a href="#"><img src="images/oferta/golibroda.png" width="100%" height="100%" alt="golibroda"></a>
<a href="#"><img src="images/oferta/scinanie_meskie.png" width="100%" height="100%" alt="scinanie_meskie"></a>
<a href="#"><img src="images/oferta/odzywki.png" width="100%" height="100%" alt="odzywki"></a>
<a href="#"><img src="images/oferta/scinanie.png" width="100%" height="100%" alt="scinanie"></a>
<a href="#"><img src="images/oferta/farbowanie.png" width="100%" height="100%" alt="farbowanie"></a>
<a href="#"><img src="images/oferta/modelowanie.png" width="100%" height="100%" alt="modelowanie"></a>
</div>
<h3>Umów się na wizytę już teraz!</h3>
<div class="button">
<a href="#">REZERWUJ TERMIN</a>
</div>
</section>
<section class="about">
<h2>-O NAS-</h2>
<p>Tworzymy grupę świetnie uzupełniających się profesjonalistów. Biorąc udział w szkoleniach zdobywamy certyfikaty podążając za aktualnymi trendami mody. Wszystko to robimy w trosce o jakość świadczonych usług. Osoby chętne do współpracy zapraszamy do sprawdzenia jak nasza praca prezentuje się od zaplecza.</p>
<div class="about_img">
<img src="images/salon_1.png" width="100%" height="100%" alt="Salon">
</div>
</section>
<section class="kontakt">
asdasdadadadsdasdadadad
</section>
</body>
</html>
body{
font-size: 0.65em;
font-family: 'Roboto', sans-serif;
}
section, footer, nav, .onas{
max-width: 1000px;
margin: auto;
}
/*
######################################################
####################### HEADER ######################
######################################################
*/
header{
width: 100%;
z-index: 0;
position: relative;
height: 360px;
}
header div{
width: 100%;
height: 330px;
border-top: 15px solid #E12227;
border-bottom: 15px solid #E12227;
background-color: #3F5075;
text-align: center;
}
header a img{
margin-top: 45px;
}
/*
###################################################
####################### NAV ######################
##################################################
*/
nav{
background-color: yellow;
min-height: 100px;
}
nav > ol{
list-style-type: none;
}
nav > ol > li{
float: left;
margin: 30px 2% 30px 0;
width: 15%;
font-size: 2em;
background-color: #E12227;
text-align: center;
height: 40px;
}
nav > ol > li:last-child{
margin-right: 0;
}
nav > ol > li > a{
padding: 7% 0;
color: #fff;
text-decoration: none;
display: block;
}
/*HOVER*/
nav > ol > li:hover{
background-color: #3F5075;
transition-duration: 1s;
}
/*
##################################################
#################### SLIDER ######################
##################################################
*/
/*
.slider {
width: 100%;
margin: auto;
}
*/
.slider > img{
width: 100%;
height: 100%;
}
/*
##################################################
#################### OFERTA ######################
##################################################
*/
.offerCON{
width: 100%;
}
.offerCON h1{
font-size: 8em;
color: #E12227;
text-align: center;
padding: 40px 0;
}
.offerCON p{
font-size: 2em;
max-width: 400px;
text-align: center;
padding: 0 30%;
float: left;
}
.offerCON h3{
font-size: 2.5em;
width: 50%;
margin: 20px 25%;
text-align: center;
float: left;
}
/*
.offerCON button{
width: 250px;
font-size: 2em;
padding: 20px 20px;
background-color: #E12227;
text-decoration: none;
border: none;
color: yellow;
margin: 20px 37.5%;
}
*/
.offerCON .button{
float: left;
width: 250px;
margin: 0 37.5%;
}
.offerCON .button a{
font-size: 2em;
padding: 20px 0;
background-color: #E12227;
text-decoration: none;
color: #fff;
text-align: center;
font-weight: 600;
display: block;
transition: 2s;
}
.offerCON .button a:hover{
border-radius: 25px;
transition: 2s;
}
/*
#######################################################
####################### OFFER_HOVER ###################
#######################################################
*/
.offer {
width: 100%;
float: left;
margin-top: 40px;
}
.offer a{
display: block;
float: left;
margin-right: 20px;
margin-bottom: 20px;
position: relative;
width: 320px;
}
.offer a:nth-of-type(3n) {
margin-right: 0px;
}
.offer a img{
float: left;
transition-duration: 5s;
}
.offer a:after{
background-color: rgba(63, 80, 117,.7);
opacity: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
font-size: 38px;
color: #fff;
text-align: center;
font-weight: bold;
transition-duration: 1s;
}
.offer a:nth-of-type(1):after{
content:"GOLIBRODA";
padding: 45% 10%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(2):after{
content:"STRZYŻENIE MĘSKIE";
padding: 45% 10%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(3):after{
content:"ODŻWYKI";
padding: 45% 20%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(4):after{
content:"STRZYŻENIE DAMSKIE";
padding: 45% 10%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(5):after{
content:"FARBOWANIE";
padding: 45% 10%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(6):after{
content:"MODELOWANIE";
padding: 45% 2%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:hover:after{
display: block;
cursor: pointer;
opacity: 1;
}
/*
#######################################################
####################### O NAS ###################
#######################################################
*/
.about{
width: 100%;
}
.about h2{
width: 50%;
margin: 40px 25%;
float: left;
font-size: 60px;
max-height: 100px;
color: #3F5075;
text-align: center;
}
.about p {
float: left;
font-size: 2em;
width: 50%;
position: relative;
margin: 20px 25%;
text-align: center;
}
.about_img{
float: left;
}
.about_img > img{
left: 0;
width: 100%;
position: absolute;
}
/*
#######################################################
####################### RESPONSYWNOSC ###################
#######################################################
*/
@media all and (min-width:600px) and (max-width:900px){
nav > ol > li{
font-size: 1.5em;
}
.offer a{
margin-right: 20px;
width: 256px;
}
.offer a img{
width: 100%;
}
.offer a:after{
font-size: 30px;
width: 100%;
}
.offer a:nth-of-type(1):after{
content:"GOLIBRODA";
padding: 45% 0%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(2):after{
content:"STRZYŻENIE MĘSKIE";
padding: 45% 0%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(3):after{
content:"ODŻWYKI";
padding: 45% 0%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(4):after{
content:"STRZYŻENIE DAMSKIE";
padding: 45% 0%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(5):after{
content:"FARBOWANIE";
padding: 45% 0%; /*ustawia tekst w odpowiednim miejscu*/
}
.offer a:nth-of-type(6):after{
content:"MODELOWANIE";
padding: 45% 0%; /*ustawia tekst w odpowiednim miejscu*/
}
Z góry wszystkim bardzo dziękuję