mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:12:43 +00:00 
			
		
		
		
	 5d4e9a0673
			
		
	
	
		5d4e9a0673
		
	
	
	
	
		
			
			Note that this simple form of text-indent only affects the first line of formatted content in each block. Percentages are resolved against the width of the block.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			310 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			310 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><style>
 | |
| * {
 | |
|     border: 1px solid black;
 | |
|     font: 16px SerenitySans;
 | |
| }
 | |
| .px-indent {
 | |
|     text-indent: 50px;
 | |
| }
 | |
| .pct-indent {
 | |
|     text-indent: 50%;
 | |
|     width: 100px;
 | |
| }
 | |
| </style><div class="px-indent">50px indent <p>is inherited</p></div><div class="pct-indent">50% indent snip snap snib snab</pct>
 |