« first day (2460 days earlier)      last day (1328 days later) » 

6:10 AM
posted on January 24, 2020

New Cyanide and Happiness Comic

 
 
3 hours later…
9:27 AM
1 message moved to Trash can
 
9:53 AM
2 messages moved to Trash can
 
 
4 hours later…
1:38 PM
I have a table with more rows than can be displayed in the window at once, and it's set inside a scrollable div. How can I set the height of the div to be the same size as what the window will currently allow, given that there is also a header and footer on the page? I don't want the page itself stretched to the point where it needs its own scroll bar.
 
1792
Q: Make a div fill the height of the remaining screen space

Vincent McNabbI am working on a web application where I want the content to fill the height of the entire screen. The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom. I have a header div an...

 
1:59 PM
height:100vh still puts it at 100% of the page height, except it doesn't start at the top so it still extends below the bottom of the window.
100% of the window height, rather
 
2:49 PM
subtract out the height of the header and footer. Or use flexbox to have it fill the space
 
3:10 PM
I solved it. Instead of figuring out the height of the header I just used the offsetTop of the element I'm trying to size.
That way, if the header changes I'm still good.
 
@ZachSaucier o/ happy 2020
 
 
1 hour later…
4:44 PM
@TylerH \o
 
5:34 PM
 
 
1 hour later…
6:34 PM
I have a quick question about Web Extensions API, is this the right place?
@Feeds This is a horrible idea. Please consult an astronomer.
 

« first day (2460 days earlier)      last day (1328 days later) »