CSS - CSS3Sviluppo

[CSS3] – Come creare un bordo tratteggiato con le DIV

Come creare un bordo tratteggiato con le DIV

In questa guida cercheremo di creare un bordo tratteggiato utilizzando le DIV e il foglio di stile CSS3.

Esempio di struttura HTML:

!DOCTYPE html
<html>
   <head>
      <title>Land of World</title>
   </head>
   <body>
      <div class="bordo">
      </div>
   </body>
</html>

Esempio CSS3 da applicare:

div {
   width: 200px;
   height: 200px;
   border-width: 10px;
   border-color: coral;
   border-style: dashed;
}

Nel codice CSS3 possiamo notare che il tratteggio viene applicato grazie alla seguente proprietà: boder-style: dashed

/ 5
Grazie per aver votato!

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *