Search
 
SCRIPT & CODE EXAMPLE
 

HTML

Capturing the amount of space related to the text html

<!DOCTYPE html>
<html>
<head>
    <style>
        .tab1 {
            tab-size: 2;
        }
  
        .tab2 {
            tab-size: 4;
        }
  
        .tab4 {
            tab-size: 8;
        }
    </style>
</head>
<body>
    <h1 style="color: green">
      GeeksforGeeks
    </h1>
    <b>How to insert spaces/tabs in
       text using HTML/CSS?
    </b>
      
    <pre class="tab1">
This is a tab with 2 spaces.
    </pre>
    <pre class="tab2">
This is a tab with 4 spaces.
    </pre>
    <pre class="tab4">
This is a tab with 8 spaces.
    </pre>
</body>
  
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: readium github 
Html :: html input avoid pre spacing 
Html :: set the html of the .template-target to be the the html from the template element. 
Html :: rainbow hr html 
Html :: How To Create "Empty" <Label Tag Without Name 
Html :: add link to text using span html 
Html :: HTML <abbr for Abbreviations 
Html :: description list attributes html 
Html :: html5 mssenger 
Html :: ubuntu 19.10 vmware 
Html :: salesforce lightning aura add red asterick for <lightning:input 
Html :: angular html interpret html 
Html :: fontawesome language icon 
Html :: thml text are 
Html :: html select multiple 
Html :: display ppt in html 
Html :: how to run yaml file 
Html :: education html templates 
Html :: what is the tag for i frame 
Css :: center position fixed 
Css :: css roboto font 
Css :: table add margin between rows 
Css :: wordpress smooth scroll to anchor 
Css :: html if text too long newline 
Css :: add image ::before css 
Css :: create a specific form size and center in css 
Css :: css centrar imagen 
Css :: grid direction 
Css :: css avoid line break in span 
Css :: css reset 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =