Anonymous Anonymous - 3 months ago
174 0

No description

CSS

Designer 1 CSS

body {
  margin: 0;
}

.header {
  padding: 10px 20px;
}

.header h1 {

}

.nav {

}

.nav a {
	color: #000;
	text-decoration: none;
}

.content {
	font-size: 0;
}

.box {
  box-sizing: border-box;
	/*height: 200px;*/
  padding: 10px 20px;
	font-size: 16px;
}

.gallery {

}

.gallery ul {
  /*RESET*/
  padding: 0;
  margin: 0;
  list-style: none;
  /*RESET END*/
  font-size: 0;
}

.gallery li {
  box-sizing: border-box;
  display: inline-block;
  width: 25%;
  padding: 20px;
}

.gallery img {
  width: 100%;
}

.footer {
  padding: 10px 20px;
}

.copyright {
  text-align: center;
}

/* MOBILE */
@media (max-width: 699px) {

  h1 {
    text-align: center;
  }

  .nav {
    /* Minus Margin für Null abstand zum Rand */
    /* Header(padding: 10px 20px) - 20px */
    margin-right: -20px;
    margin-left: -20px;
  }

	.nav a {
		display: block;

		padding: 10px;
		margin: 10px 0;

		background: #000;
		color: #fff;

		font-weight: bold;
		text-align: center;
		text-transform: uppercase;
	}

	.box {
		margin: 0 0 10px 0;
	}

  .footer {
    text-align: right;
  }

  .footer-nav {
    display: none;
  }

}

/* TABLET */
@media (min-width: 700px) {

  .header {
    margin: 0 0 20px 0;
    font-size: 0;
  }

  h1 {
    display: inline-block;
    width: 50%;
    font-size: 32px;
  }

  .nav {

  }

  .nav a {
    padding: 0px 28px 0px 0;
    border-right: 1px solid #000;
    margin-right: 25px;
  }

  .nav a:last-child {
    padding: 0;
    border: 0;
    margin: 0;
  }

  .header-nav {
    display: inline-block;
    width: 50%;
    font-size: 18px;
    text-align: right;
    vertical-align: baseline;
  }

  .footer-nav {
    font-size: 14px;
    text-align: right;
  }

  .box1,
  .box2 {
     display: inline-block;
     width: 50%;
     vertical-align: top;
	}

  .back-to-top {
    display: none;
  }

}

/* DESKTOP */
@media (min-width: 900px) {

  /* max-width 1200px und zentriert */
  .header,
  .content,
  .gallery,
  .footer {
    box-sizing: border-box;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
  }

	.box {
    display: inline-block;
    width: 33.333%;
  }

}
Comments