Forums

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

Home Forums CSS Adding a button creates white space between div's Reply To: Adding a button creates white space between div's

#169280
aprobert
Participant

When you view the website you’ll see I have a button ‘Where I Learned’ in the blue section. The blue section is the div class “learn”. Inside this div I have another div class “col-right2”. Inside this div is the button which is a paragraph with an anchor tag and the class “btn”. However, if at first I didn’t put the button inside the “col-right2” div and it forced white space between the “learn” blue div and the orangeish section above it. I don’t understand why I need to put the button inside the nested div.

Again, I’m new so I’m not so good at explaining the issues. Hope that helps and thank you very much for patiently helping.