/    Sign up×
Community /Pin to ProfileBookmark

Sidebar height

I’m using a grid display on my main DIV class is (page-content).

On the first column I have a sidebar menu. Class name ‘sidebar’ and it’s height set to 100%.

In the second column I have my website content in a class called ‘content’. If my content inside my second column extends the main DIV ‘page-content’ my ‘sidebar’ element doesn’t grow with it to be a 100% page height.

Here’s my sidebar class

“`
grid-area: menu;
background: #2F323A;
padding-top: 30px;
margin-top: 60px;
position: absolute;
left:0;
width: 250px;
height: 100%;
transition: 0.5s;
transition-property: left;
box-sizing: border-box;
“`

Here’s my content class

“`
color: #FFF;
grid-area: body;
grid-column: 1 / 3;
margin-left: 250px;
padding: 2em;
align-items: center;
justify-self: center;
transition: 0.5s;
“`

to post a comment
CSS

0Be the first to comment 😎

×

Success!

Help @kiwis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...