SuperSimpleDev / html-css-course-2022

1.44k stars 1.06k forks source link

Underlined numbers #9

Open Naleks-ph opened 2 years ago

Naleks-ph commented 2 years ago

image The underline is starting from the beginning of the number but goes beyond it. I've put, at the end, the code as in the solution but it didn't help...

SuperSimpleDev commented 2 years ago

Hmm, can you share your full code here? This might be happening because there's a space after each number:

<a class="search-result" href="https://google.com">1 </a>

Instead of:

<a class="search-result" href="https://google.com">1</a>

(Notice there's no space after the "1")

MuzamilJanjua commented 2 years ago

Additionally, if you wrote your code by pressing enter between the lines like

<a href="https://google.com> text </a>

it'll detect a space

SuperSimpleDev commented 2 years ago

Oh yes, that is right! If you have a new line in the link <a> element that newline will be converted into an extra space.

You'll just have to type out the link without any spaces or newlines around the text. It might look weird sometimes (since the line might get very long) but this is normal for links

Naleks-ph commented 2 years ago

Thanks a lot for help!!