LoginSignup
0
0

More than 3 years have passed since last update.

サイドバーレイアウト作ってみる

Posted at

サイドバーレイアウト作ってみる

.parent {
    display: flex;
    height: 100vh;
    color: white;
}

aside {
    width: 30%;
    background-color: #2A66DB;
}

main {
    background-color: #322B29;
    flex: 1;
    overflow: scroll;
}
import React from 'react'
import './Hoge.css'

export const Hoge = () => {
    return (
        <>
            <div className="parent">
                <aside>aside</aside>
                <main>main aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</main>
            </div>
        </>
    )
}

結果
スクリーンショット 2020-11-18 22.52.22.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0