Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Trying to remove unwanted spacing in a div

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #249971
    knbfoster
    Participant

    Hello,
    I feel like I should totally know this, but I’m stumped. I am trying to create an element just like this:

    https://test.insureyonder.com/wp-content/uploads/2017/01/boxexample.jpg

    In doing so, I’m getting this spacing around my title element that I would prefer not to have. As you can see from the image, I would like the gray background behind the title “The Basics” to go all the way to the edge on the top, right and left.

    Here’s what I have so far:
    http://codepen.io/knfoster/pen/NdNZEd

    Please pardon my messy code. I’ve been trying everything under the sun to get it to work.

    Thank you so much!

    B

    #249973
    bearhead
    Participant

    Its because of the default styling for a ul.

    add
    margin:0px;
    padding:0px;

    to .questions-list

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.