/    Sign up×
Community /Pin to ProfileBookmark

Grid – Container height

I’ve got a page which has a container for it’s main display.

One of those areas has it’s own container which is also a grid. 3 rows, 1 column.

“`
grid-row: 2/3;
grid-column: 2/3;
width: 100%;
box-sizing: border-box;
display: grid;
grid-template-columns: 100%;
grid-template-rows: 42px auto auto;
height: fit-content;
“`

On my 3rd row. I’ve got a parent DIV. Position relative and placed in this row. Inside this I’ve got more DIV’s. I’m changing their opacity via JS and setting their position to absolute.

“`
display: block;
transition: all 0.5s ease-out;
position: absolute;
top:0;
left:0;
width: 100%;
padding: 1em;
“`

My issue is, these DIVS have a lot of text / images and got beyond the default space created and the height doesn’t auto adjust.

Any ideas?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@kiwisauthorJan 02.2021 — troubleshoot update, when I remove position absolute. The grid expands to the full required height.
Copy linkTweet thisAlerts:
@SempervivumJan 02.2021 — Fine, is this issue fixed now?
×

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 4.23,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...