Striped Background with CSS repeating-linear-gradient | Plantpot

Striped Background with CSS repeating-linear-gradient

Web Dev
Sponsored links


Full Screen


Sponsored links




<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>CSS Striped Background</title>
    <link rel="stylesheet" type="text/css" href="">
    <link rel="stylesheet" href="">
    <link rel="stylesheet" type="text/css" href="style.css">
    <div id="container">
      <h1>CSS Striped Background</h1>


@charset "utf-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
html {
  font-size: 16px;
body {
  font-family: futura-pt, sans-serif;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
#container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 15px;
  background-image: repeating-linear-gradient(-45deg, #c998ea 0, #c998ea 10px, #fff 10px, #fff 20px);
h1 {
  margin: 0;
  padding: 15px 10px;
  background-color: #fff;
  color: #3d3935;
  font-size: 2.5rem;
  text-align: center;
@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.75rem;