• So, I recently had upgraded to 3.3.1 and now I have a strange problem with paragraph spacing. When I go into the HTML editor and add ‘<p style=”margin-top: 10px;”></p>’ this tag to get some spacing, then update the page looks perfect with spacing.

    When I go back into the Visual editor and make a color or font change, I lose (meaning they disappear from the code) the ‘<p style=”margin-top: 10px;”></p>’ tags that I had throughout the page. I can’t seem to get the spacing to work through the Visual editor that’s why I’m adding the paragraph spacing tags.

    https://www.shahconsultinggroup.com — thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Don’t switch editing tabs. Pick a tab and then stick to it.

    Thread Starter mubai

    (@mubai)

    OK, I got it. The Visual tab doesn’t seem to produce the spacing results I’m looking for. Actually it doesn’t produce spacing at all for any time that I hit “Enter/Return.”

    That’s why I had to use the HTML editor (believe me, not my preference).

    Try using SHIFT+Enter in the Visual Editor.

    Thread Starter mubai

    (@mubai)

    That didn’t work either. The preview didn’t update then I tried to just update the page and see it “live” and still no go. Is there something in the style sheet that would prevent creating spacing through the visual editor?

    Quite possibly. Try using Firefox with the Firebug add-on for this kind of CSS work.
    https://getfirebug.com/

    The visual editor is a pain to use for anything beyond simple text. It will replace <p> by 2 newlines which then get replaced with <p> by the wpautop function. The best way to apply formatting to <p> elements is to use CSS styles that target either general or specific areas of the site.

    Or do as @esmi suggests and only use one editor.

    /peter

    Thread Starter mubai

    (@mubai)

    /peter thanks for the feedback.

    I downloaded Firebug, but I’m just too much of newbie to trouble shoot this. So, I will use just the HTML editor going forward, until I can get the Visual editor doing what I need it to do. Although, the Visual editor was so convenient with changing text colors and adding images.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Paragraph Spacing’ is closed to new replies.