What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Gap between fieldset and div element?

KennyFan382

New member
On my webpage I have got an annoying gap that seperates my background color from the edge of my fieldset. I am trying to find a way to fill it in using css, it appears to not be working, Here is an image with the problem and the css for the fieldsets and the div element. (#left and #right are the fieldset elements, they both needed different margins to be placed on each different side to the page).


CSS:
div {
    background-color: black;
    border: none;
    margin: auto;
    float: top;
    position: relative;
    bottom: 28px;
    right: 13px;
}

#left {
 margin-right: 400px;
 border-color: black;
}

#right {
    margin-left: 400px;
    border-color: black;
}
CodingGapProblem.png
 
Back
Top