Skip to content

Images overflow horizontally when margin is enabled #36

@logikwright

Description

@logikwright

After correcting cmargin typo to margin, images overflow horizontally inside the article layout.

the issue appears to come from:

img {
    width: 100%;
}

combined with the universal selector margins:

* {
    margin: 10px;
}

Since the image width is already 100%, horizontal margins increase the rendered width beyond the container size.

Possible fixes could include:

  • removing image margins
  • scoping margins more selectively
  • or using a different sizing strategy

I attached a screenshot demonstrating the overflow behavior.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions