Ask coding questions

← Back to all posts
Full height?
RixTheTyrunt

I tried 100vh, but the scroll bars to the body appeared, then i tried the script, which is this:

I see, the menu is not getting full height... And how to fix it?

Answered by potatojs [earned 5 cycles]
View Answer
Voters
RixTheTyrunt
Comments
hotnewtop
potatojs

put

this will hide anything that's outside your container in the y axis, and thus removing the scroll bar (the vertical one)

for the horizontal

RixTheTyrunt

Works!

sn236

Do you want the full width or height

RixTheTyrunt

What is the title's name?

RixTheTyrunt

Let's think!

RixTheTyrunt

Your d**b question...

RixTheTyrunt

Obviously, height!

sn236

@RixTheTyrunt I see, the menu is not getting full width... And how to fix it? You have written this in the bottom. So anyone could get confused

sn236

@sn236 And it's 600px for the height

RixTheTyrunt

No no, it's the MENU, like in Replit

sn236

@RixTheTyrunt you mean you want to create the sidebar of replit

RixTheTyrunt

Yes

RixTheTyrunt

A simple yes

RixTheTyrunt

But the only problem left, now I can't viw the repl because of disabled JavaScript

sn236

@RixTheTyrunt oh, just try to remove that noscript part

RixTheTyrunt

I don't want

RixTheTyrunt

OHHH!!! I FINALLY REMEMBER THE STEPS TO ALLOW JAVASCRIPT!!!

RixTheTyrunt

WASTE OF TIME!!!

sn236
sn236

@RixTheTyrunt One more thing, it might waste your time but it's important to be humble

RixTheTyrunt

Humble?

RixTheTyrunt

What do you mean "humble"

sn236

@RixTheTyrunt respectful to others

RixTheTyrunt

OK

potatojs

@RixTheTyrunt "bruh it's not nice not being nice to people" - people

potatojs

i know it's easy to just use pixels as units, but it's not a best practice
because:
1. it won't work in mobile deices or really any device with a height different than yours
2. it's a nightmare to update because nothing is responsive changing one thing will break the other
3. just use %, ems, rems, ok?

trust me i speak from experience
use

instead

Coder100

You forgot to add the unit of measurement, in this case px

RixTheTyrunt

Cannot read property "style" of "null"?

sn236

If you want the full width try-