So I’m just starting on the product landing page. Im trying to format my header and am wondering why something ive stumbled upon is working.
For my header I have a img for the logo, text in for the title then and a ul of links for ‘about us’ ‘features’ and ‘pricing’.
Ive noticed when I type a number after the first line of code in my header div in CSS it aligns my ul to the right side. This is what I want but I want to know why. Im not typing any command before the number, not putting a semicolon after, literally just typing a number.
Here is the example:
Version 1 without the number.
Version 2 with the number! (its all the way at the bottom of my CSS in the header div)
I have no clue why this is working and would like to understand why.
Thanks in advance for any and all help!