Center image to parent

Continuing the discussion from Tribute Page - Build a Tribute Page:

Yeah how to center image with is parent

Hi @Shaker1 ,

Few issues in the code: Tribute Page - Build a Tribute Page

  1. In the <meta charset="UTF-8> tag, there is a missing closing double quote. It should be <meta charset="UTF-8">.
  2. The CSS property for centering text is text-align, not text-center. So, the line figure, img { text-center: center;} should be replaced with figure, img { text-align: center;}.
  3. The href attribute in the <a> tag is empty. You should provide a valid URL for the href attribute.
  4. The img tag is missing the src attribute, which specifies the source URL of the image. Add the appropriate image URL to the src attribute.
1 Like