[SOLVED] A silly problem, for advance coders :) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[SOLVED] A silly problem, for advance coders :)

Hi! I just finished my HTML course in SoloLearn, and I've been working on my blog project. Someone mentioned that my blog (even though is not a "real" blog, just an exercise) wasn't compliant with the new GDPR laws. So long story short, I decided to add a line of code with a checkbox to ask the "visitor" to give me consent to have his or her email address. When I run the code this annoying gap between the check box and the text appears... I've tried different ways to fix it, but nothing works. Can someone please help me :P Here's the link to my code, thanks! https://code.sololearn.com/WgdLxUr0Aq91/#html

7th Jun 2018, 3:34 PM
Kizzy Lugo
Kizzy Lugo - avatar
2 Answers
+ 4
The reason for the gap- the consent check box shares CSS attributes with the rest of the inputs and text area where the width is at 70%. Gave the checkbox an Id (consent) https://code.sololearn.com/WUgoC551BUmH/#css
7th Jun 2018, 4:19 PM
ODLNT - avatar
+ 1
YAY! I get it now.. 😂 You're are my hero!! Thanks!!! 🙏😌💙
7th Jun 2018, 4:38 PM
Kizzy Lugo
Kizzy Lugo - avatar