Search
 
SCRIPT & CODE EXAMPLE
 

CSS

increase space between dashed border css

div.two{border:2px dashed #FF0000}

div.five:before {
  content: "";
  position: absolute;
  border: 5px dashed #FF0000;
  top: -3px;
  bottom: -3px;
  left: -3px;
  right: -3px;
}

div.ten:before {
  content: "";
  position: absolute;
  border: 10px dashed #FF0000;
  top: -8px;
  bottom: -8px;
  left: -8px;
  right: -8px;
}

div.odd:before {left:0;right:0;border-radius:60px}

div {
  overflow: hidden;
  position: relative;


  text-align:center;
  padding:10px;
  margin-bottom:20px;
}

<div class="two">Kupo nuts here</div>
<div class="five">Kupo nuts<br/>here</div>
<div class="ten">Kupo<br/>nuts<br/>here</div>
<div class="ten odd">Kupo<br/>nuts<br/>here</div>
Comment

border dashed spacing

<!-- dashed border spacing -->
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="UTF-8" />
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <title>Border Spacing</title>
      <style>
         div.two {
            border: 2px dashed #ff0000;
         }

         div.five:before {
            content: '';
            position: absolute;
            border: 5px dashed #ff0000;
            top: -3px;
            bottom: -3px;
            left: -3px;
            right: -3px;
         }

         div.ten:before {
            content: '';
            position: absolute;
            border: 10px dashed #ff0000;
            top: -8px;
            bottom: -8px;
            left: -8px;
            right: -8px;
         }

         div.odd:before {
            left: 0;
            right: 0;
            border-radius: 60px;
         }

         div {
            overflow: hidden;
            position: relative;

            text-align: center;
            padding: 10px;
            margin-bottom: 20px;
         }
      </style>
   </head>

   <body>
      <div class="two">Kupo nuts here</div>
      <div class="five">Kupo nuts<br />here</div>
      <div class="ten">Kupo<br />nuts<br />here</div>
      <div class="ten odd">Kupo<br />nuts<br />here</div>
   </body>
</html>
Comment

PREVIOUS NEXT
Code Example
Css :: make clicks pass through element css html 
Css :: flex: 0 1 auto 
Css :: neomorphic box 
Css :: in a form how to remove the input outerline color or shadow 
Css :: css change multiple classes 
Css :: background css 
Css :: inline block display has margin 
Css :: html style input number buttons 
Css :: width in % of a screen css 
Css :: CSS 3D Transforms 
Css :: padding block 
Css :: tailwind npm 
Css :: execution timeout expired the timeout 
Css :: jQuery ripple effects 
Css :: font color css 
Css :: what is the animation property in html and css 
Css :: css shape-outside 
Css :: how to insert icons pseudo content 
Css :: wordpress page css not working 
Css :: trim background image css 
Css :: back button css 
Css :: variable in scss 
Css :: animation using css 
Css :: background image causes webpage scrolling slow 
Css :: transform element to the left 
Css :: css resize tabe cell 
Css :: effetto fade con css 
Css :: Loop Over Array of Objects and Combine them if they have similar keys 
Css :: page rotate css 
Css :: how to make button appear on hover 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =