Can I add paragraph styles in div?

  • Author
    Posts
  • #87862

    okjungsoo
    Member

    Hi.
    Paragraphs in the demo page are defined by p tag with margin-bottom: 40px. But, divs created by chrome in wysiwyg editor doesn’t have margin-bottom.

    So I tried insert empty line with  

    Is there a way to add margin-bottom:40px to ‘div.entry-content > div’?
    Thank you.

    The blog I need help with is okjungsoo.wordpress.com.

    #87968

    tarasdashkevych
    Theme Author

    Hello,

    p tag is added automatically by WordPress.
    Did you add these custom divs to your post paragraphs? Or is it added automatically?

    You can create a custom class, and add this class to your div, and then use a custom css to add margins to your custom class.

    Cheers,
    Taras

    #87971

    okjungsoo
    Member

    Hi taras.
    That’s my mistake. My post was wrote in evernote and copied to wordpress. Remove format function in wordpress remains div tags.

    So, I thought div used as paragraph in chrome.
    I need to use post in wordpress, not evernote.

    Thank you very much.

    #88018

    tarasdashkevych
    Theme Author

    Oh I see. Yea, it’s possible that Evernote adds div tags to your paragraphs.

    You are very welcome :)

The topic ‘Can I add paragraph styles in div?’ is closed to new replies.