- Czy da się osiągnąć taki efekt (pozioma biała linia między dwoma wierszami w stópce) nie używając do tego dwóch kontenerów, tylko żeby w jednym kontenerze była cała stópka + to co tworzy tą białą linię (ale też żeby biała linia rozciągała się na całą szerokość, a nie do max-width kontenera).
- Powiedźcie mi dlaczego dla tego kodu, przy mniejszych rozdzielczościach ta biała linia mi znika w ogóle? (jak widać na załączonym obrazku)
Kod:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>title</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css">
</head>
<body>
<header class="background-primary">
<div class="container">Header Content</div>
</header>
<main>
<section class="background-secondary">
<div class="container">Hero Primary Content</div>
</section>
<section>
<div class="container">
<div class="row">
<div class="col-1-3 pull-right-sm">
Circle Image
</div>
<div class="col-2-3">
Content Area
</div>
</div>
</div>
</section>
<section>
<div class="container">
<div class="row">
<div class="col-1-3 remove-gutter-xs">
<div class="background-secondary">
Feature Content
</div>
</div>
<div class="col-1-3 remove-gutter-xs">
<div class="background-secondary">
Feature Content
</div>
</div>
<div class="col-1-3 remove-gutter-xs">
<div class="background-secondary">
Feature Content
</div>
</div>
</div>
</div>
</section>
<section class="background-primary">
<div class="container">Testimonial Content</div>
</section>
<section class="background-secondary">
<div class="container">
<div class="row">
<div class="col-1-2">
Media Object
</div>
<div class="col-1-2">
Media Object
</div>
</div>
</div>
</section>
<section class="background-tertiary">
<div class="container">More Content</div>
</section>
</main>
<footer class="background-quaternary">
<div class="container">
<div class="row">
<div class="col-1-3">
Logo
</div>
<div class="col-1-4">
Address
</div>
<div class="col-1-6">
Phone Number
</div>
<div class="col-1-4">
Social Media
</div>
</div>
</div>
<div class="col-1-1 no-collapse background-white">
</div>
<div class="container">
<div class="row">
<div class="col-1-3 no-collapse">
</div>
<div class="col-1-4">
Copyright
</div>
<div class="col-1-6">
Privacy Policy
</div>
<div class="col-1-4">
Terms of Use
</div>
</div>
</div>
</footer>
</body>
</html>
/*Color List:
- light blue = 00AEEF;
- dark blue = 1C75BC
- green = 8DC63F
- dark green = 009444
- orange = F7941E
- dark orange = F15A29
- brown = 594a42; */
/***************************
****************************
Reset Styles
****************************
***************************/
@import 'normalize.css';
/* Change all elements to use border-box */
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
/***************************
****************************
Base Styles
****************************
***************************/
body {
color: #414042;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
}
h1, h2, h3 {
font-weight: bold;
}
a {
color: #8dc63f;
font-weight: bold;
}
a:hover {
text-decoration: underline;
}
footer {
color: white;
}
/***************************
****************************
Layout Styles
****************************
***************************/
.container {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
max-width: 1170px;
}
.row {
margin-right: -15px;
margin-left: -15px;
}
.row:after {
content: "";
display: table;
clear: both;
}
[class*='col-'] {
width: 100%;
padding-left: 15px;
padding-right: 15px;
}
/* Media Query excludes extra small devices and includes small and above */
@media (min-width: 48em) {
[class*='col-'] {
float: left;
}
/* Column Third */
.col-1-3 {
width: 33.3333%;
}
/* Column Two Thirds */
.col-2-3 {
width: 66.6666%;
}
/* Column One Half */
.col-1-2 {
width: 50%;
}
/* Column one Quarter */
.col-1-4 {
width: 25%;
}
/* Column One Sixth */
.col-1-6 {
width: 16.6666%;
}
.col-1-1 {
width: 100%;
}
.no-collapse {
min-height: 1px;
}
}
@media (min-width: 48em) {
.pull-right-sm {
float:right;
}
}
@media only screen and (max-width : 47.9375em) {
.remove-gutter-xs {
padding-left: 0px;
padding-right: 0px;
}
}
/***************************
****************************
Module Styles
****************************
***************************/
/***************************
****************************
Theme Styles
****************************
***************************/
.background-primary {
background: #F7941E; /*Orange*/
}
.background-secondary {
background: #00AEEF; /*Blue*/
}
.background-tertiary {
background: #8DC63F; /*Green*/
}
.background-quaternary {
background: #594A42; /*Brown*/
}
.background-white{
background: white;
}
Freja Draco