WordPress.org

Ready to get started?Download WordPress

Forums

Expound
[resolved] space after bullets (2 posts)

  1. jschwabish
    Member
    Posted 8 months ago #

    Hi,

    I'm just learning HTML and CSS code, so hopefully this is pretty easy for someone. I'm trying to remove the paragraph spacing *after* a bulleted list (two bullets). The code in my post (not yet live, so unfortunately I can't share the link), looks like this:

    <style type="text/css" media="all">
    p {margin:0px;}
    </style>

    <p> first paragraph text </p>

    • first bullet text
    • second bullet text

    <p> second paragraph text </p>

    This gives me:
    first paragraph text
    * first bullet text
    * second bullet text

    second paragraph text

    But I want to remove that space between "* second bullet text" and "second paragraph text". Is there some additional CSS code I need?

    Thanks.

  2. jschwabish
    Member
    Posted 8 months ago #

    So it doesn't look like my code pasted correctly here. But, after fooling around for a while, I figured this out by adding the following code to the top of my post:

    <style type="text/css">
    p, ul { display: inline; } li { margin-left: 40px; }

    </style>

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.