Forums

Give help. Get help.

  • # December 5, 2017 at 7:50 am

    I’m trying to lay out a food menu. Here’s an example of what I have.

    View post on imgur.com

    Here’s what I would like it to be.

    View post on imgur.com

    Here’s my code so far.

    # December 5, 2017 at 8:40 am

    Heading elements have, amongst other things, default margins.

    Try zeroing the top margin on the h4 and the bottom margin on the h2 to bring them closer to other elements.

    # December 5, 2017 at 8:56 am

    Indeed…if you click the Cog on the CSS section and pick “reset” you get this

    Google “CSS Reset” or “CSS Normalize” for more information.

    # December 22, 2017 at 11:53 am

    Sorry for the late reply, but here is what fixed it. I’m using flexbox inside a the text module of the Divi theme by Elegant Themes. There were additional line breaks added that were not in my code. The were visible when inspecting the code via Chrome. They appeared around code that had been commented out. The comments were bracketed with /…./ so I don’t know what the issue is, but as they were notes for me, I removed them. The breaks promptly disappeared and all is well. thank you both for your input.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag