CSS Word Spacing
Advertisements
CSS Word Spacing
CSS Word Spacing properties are used for give sufficient space between two words on web page.
You can give space between two word on web page by using these two size format;
- px
- em
CSS word-spacing values
Value | Description |
---|---|
normal | This is a default value. it specifies a normal word-spacing. |
initial | It sets this property to its default value. |
inherit | It inherits this property from its parent element. |
Example
<!DOCTYPE html> <html> <head> <style> p.px { word-spacing: 10px; } p.em { word-spacing: 2.2em; } </style> </head> <body> <p class="px">This is my first html with css code.</p> <p class="em">This is my first html with css code.</p> </body> </html>
Result
This is my first html with css code.
This is my first html with css code.
Browser supported
Properties | |||||
word-spacing | Yes | Yes | Yes | Yes | Yes |
Google Advertisment