1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-12 00:54:45 +02:00

Highlight centering sample code

This commit is contained in:
Phuoc Nguyen
2019-11-15 16:37:08 +07:00
parent 029755ed64
commit 478297f11a
3 changed files with 16 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ import React from 'react';
import DetailsLayout from '../DetailsLayout';
import BrowserFrame from '../placeholders/BrowserFrame';
import SampleCode from '../SampleCode';
const Centering = () => {
return (
@@ -13,7 +14,19 @@ const Centering = () => {
</div>
}
source={
<div>source</div>
<SampleCode
lang="html"
code={`
<div style="
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
">
CENTER
</div>
`}
/>
}
/>
</DetailsLayout>