Skip to content

Discrepancy Between solution.html and desired-outcome.png in 01-css-methods #660

@martinzutel

Description

@martinzutel

Description:

The current implementation of solution.html does not visually align with the reference image desired-outcome.png. Specifically, the button's styling differs from the expected design.

Steps to Reproduce:

  1. Navigate to foundations/intro-to-css/01-css-methods/solution/solution.html.
  2. Open solution.html in a web browser.
  3. Compare the rendered button to the one depicted in desired-outcome.png.

Expected Behavior (Desired Outcome):

The button should have:

  • An orange background.
  • Black text.
  • A white'ish border, as seen in desired-outcome.png.
  • Some vertical padding, making the button slightly taller.

Actual Behavior:

The button currently displays:

  • An orange background.
  • Black text.
  • A border that does not match the expected design.
  • Lacks the expected vertical padding, making it appear shorter than in desired-outcome.png.

Suggested Fix:

To align the button's appearance with the desired outcome, replace the button in solution.html with the following (Ignoring padding which hasn't been introduced in the course at this point and should probably be modified in the image):

<button style="background-color: orange; border-color: white; font-size: 16px;">Inline Method</button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions