Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Css floats #18

Open
lkw657 opened this issue Jan 15, 2023 · 0 comments
Open

Css floats #18

lkw657 opened this issue Jan 15, 2023 · 0 comments

Comments

@lkw657
Copy link

lkw657 commented Jan 15, 2023

The reason your floats aren't adjacent in 03-css is because you have newlines between the divs.
The second div starts on a line of text below the start of the first.
You can test this a few ways e.g. by removing the newlines, adding more newlines, and putting them in a parent container with a different font size.
This is caused by the <pre> tag that the editor and results are in, since it makes newlines in the file newlines on the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant