Search results

  1. Y

    Why I have padding-left on my .nav_primary when i did not set it

    Hi All, Could you please tell me why i have padding on my .nav_primary when i did not set it? I added a media query and was not able to center that class and then found out there is a padding-left and do not know why. When i add padding:0 all work. Here are my codes Thank you <header...
  2. Y

    HTML & CSS Empty div has width and height in % but does not appear

    Hi @Johna and @menator01 , Thank you for your kind and fast help. It is my bad, I should have known this when % given it needs to have specific height or width of the parent element. Just freecodecamp confused me as it worked without adding height or width to a parent element. How professional...
  3. Y

    HTML & CSS Empty div has width and height in % but does not appear

    Hi All, I have just bumped into this case while i am doing a freecodecamp challenge. In the freecodecamp editor the div showed per given % but when i tried to do the same in VSC i did not get the same result, so i created a little example. Could you please tell me how it works as it works with...
Top