adsense

How to Fix WordPress Spacing





Remove Paragraph Breaks Between Lines
1. Create some example text with spacing problems by typing several lines of text in the WordPress write panel, pushing the return button between each line. WordPress will put a paragraph break between each line.
2. Place the cursor at the beginning of the second line, and press your backspace key until the second line merges with the first. Then hold down the 'Shift' key while pressing 'Return.' WordPress will create a carriage return without a paragraph break.

3. Repeat for each line until all lines of text are separated by single carriage returns instead of paragraph breaks.
Change Line Spacing in the Stylesheet
4. Find the Appearance tab on the left side of the WordPress admin, open it and click 'Editor.'
5. On the right side of the resulting editing page, look for the link called 'style.css' and click on it. The editing page will then load the 'style.css' file, which contains style information for your WordPress theme.
6. Scroll to the bottom of the editing page and add the following CSS code:p {line-height: 1.5em}Click 'Update File' to save your change.
7. Open any page of your WordPress site and note the line spacing.
8. In your new CSS code, change the portion that reads '1.5em' to different numbers, refreshing the page you're examining on your WordPress site each time to see how the line spacing changes. You can also use pixels and percentages to set the line height. For example, instead of '1.5em' you could write '20px' for 20 pixels or '120%' to make the line spacing 1.2 times the default spacing.

Comments

0 Responses to "How to Fix WordPress Spacing"

Post a Comment

Popular Posts

About