
- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
Word Spacing Working with CSS
The CSS word-spacing property is used to specify the space between words of an element.
Syntax
The syntax of CSS word-spacing property is as follows −
Selector { word-spacing: /*value*/ }
Example
The following examples illustrate CSS word-spacing property −
<!DOCTYPE html> <html> <head> <style> div { display: flex; float: left; padding: 10px; background-color: salmon; } div > div { word-spacing: 30px; width: 340px; height: 140px; border-radius: 5%; box-shadow: inset 0 0 15px blueviolet; } </style> </head> <body> <div> <div> Magento is an open source E-commerce software, created by Varien Inc., which is useful for online business. It has a flexible modular architecture and is scalable with many control options that is helpful for users.</div> </div> </body> </html>
Output
This gives the following output −
Example
<!DOCTYPE html> <html> <head> <style> q { display: flex; padding: 10px; word-spacing: 6em; background-color: orange; font-size: 1.2em; } </style> </head> <body> <h2>What is Java?</h2> According to Java's official documentation, <hr> <q cite="https://www.java.com/en/download/faq/whatis_java.xml">Java is a programming language and computing platform first released by Sun Microsystems in 1995.</q> </body> </html>
Output
This gives the following output −
- Related Articles
- Word Spacing using CSS
- Animate CSS word-spacing property
- Usage of word-spacing property in CSS
- Managing Spacing Between Words with CSS wordspacing Property
- Letter Spacing in CSS
- Letter Spacing using CSS
- Working with Inline CSS
- Working with CSS Units
- Setting Spaces between Letters with CSS letter-spacing Property
- Animate CSS border-spacing property
- Working with element for CSS
- Working with CSS Overflow Property
- Working with CSS Pseudo Classes
- Display Inline Working with CSS
- Text Indentation Working with CSS

Advertisements