https://github.com/ulivz/css-layout
CSS layout samples
https://github.com/ulivz/css-layout
css css-layout layout
Last synced: 4 months ago
JSON representation
CSS layout samples
- Host: GitHub
- URL: https://github.com/ulivz/css-layout
- Owner: ulivz
- Created: 2017-03-27T16:53:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-30T06:45:19.000Z (almost 9 years ago)
- Last Synced: 2025-03-27T20:41:41.485Z (11 months ago)
- Topics: css, css-layout, layout
- Language: HTML
- Homepage:
- Size: 4.66 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSS layout
CSS layout samples
## Layout List
- Two Columns Layout
- via `float`
- via `negative margin`
- via `flexbox`
- Three Columns Layout
- via `negative margin`
- via `flexbox`
- CSS Center Layout
- Text
- Single Line
- Multiple Lines
- Block
- Inline Block
- Block
## Demo
### Two Columns Layout

### Three Columns Layout

### CSS Center - Text

### CSS Center - block

## Compatibility
- `float`: IE6+, Firefox 2+, Chrome 1+ etc;
- `negative margin`: IE6+, Firefox 2+, Chrome 1+ etc;
- `flex`: Till 2017-3-28:

## Suggestion
- Two columns in PC-side —— `float`;
- Three columns in PC-side —— `margin`;
- Mobile application —— `flex`。