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
I feel like I should totally know this, but I’m stumped. I am trying to create an element just like this:
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:
Please pardon my messy code. I’ve been trying everything under the sun to get it to work.
Thank you so much!
Its because of the default styling for a ul.