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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user