“lignes de fond CSS” Réponses codées

ligne de fond de cap CSS

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>HTML</title>
  <link rel="stylesheet" href="main.css" type="text/css" />
</head>

<body>
  <div id="wrapper">
    <div class="line"></div>
    <div class="textbox">
      <div class="text">This is my Title</div>
    </div>
  </div>
</body>

</html>
Faiz

ligne de fond de cap CSS

h1 {
    position: relative;
    font-size: 30px;
    z-index: 1;
    overflow: hidden;
    text-align: center;
}
h1:before, h1:after {
    position: absolute;
    top: 51%;
    overflow: hidden;
    width: 50%;
    height: 1px;
    content: '\a0';
    background-color: red;
}
h1:before {
    margin-left: -50%;
    text-align: right;
}
.color {
    background-color: #ccc;
}
Faiz

lignes de fond CSS

background: repeating-linear-gradient(
  45deg,
  #606dbc,
  #606dbc 10px,
  #465298 10px,
  #465298 20px
);
Bob7012

Propriété à une seule ligne de fond CSS

body {
  background: #ffffff url("img_tree.png") no-repeat right top;
} 
Fancy Fly

Réponses similaires à “lignes de fond CSS”

Questions similaires à “lignes de fond CSS”

Plus de réponses similaires à “lignes de fond CSS” dans CSS

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code