Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

First div CSS example in Portfolio 1 is confusing #18

@projectgus

Description

@projectgus

The first Portfolio chapter has people create a div with width: 100%; margin: 0 auto; and says that this centres the div.

A lot of people then put content into the div and were asking why it wasn't centered. I think it may be necessary to explain more of the box model at this point, or use a more straightforward (or fleshed out) initial example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions