Home >Development Tools >dreamweaver >How to add spaces in dreamweaver
There are 4 ways to add spaces in Dreamweaver: use the shortcut key Ctrl Spacebar to add a single space; enter HTML code (such as ) to add multiple spaces; use entity character references (such as ); and use CSS style sheets (such as padding or margin) to create spacing.
How to add spaces using Dreamweaver
Dreamweaver provides an easy way to add spaces, either individually Spaces or multiple spaces.
Add a single space:
Add multiple spaces:
Alternative:
(non-interrupted spaces) or
(medium breaking spaces) and press Enter. padding
or margin
, to create proper spacing. Example:
Method 1: Use the shortcut Ctrl Spacebar to add a single space.
<code><p>This is a sentence with a space.</p></code>
Method 2: Use HTML code to add multiple spaces.
<code><p>This is a sentence with three spaces.</p></code>
Method 3: Add spacing using a CSS stylesheet.
<code class="css">p { padding-right: 10px; }</code>
The above is the detailed content of How to add spaces in dreamweaver. For more information, please follow other related articles on the PHP Chinese website!