Make a div fill the height of the remaining screen space

2015 update: the flexbox approach There are two other answers briefly mentioning flexbox; however, that was more than two years ago, and they don’t provide any examples. The specification for flexbox has definitely settled now. Note: Though CSS Flexible Boxes Layout specification is at the Candidate Recommendation stage, not all browsers have implemented it. WebKit implementation … Read more

Styling an input type=”file” button

Styling file inputs are notoriously difficult, as most browsers will not change the appearance from either CSS or javascript. Even the size of the input will not respond to the likes of: Instead, you will need to use the size attribute: For any styling more sophisticated than that (e.g. changing the look of the browse … Read more

How do I style a dropdown with only CSS?

Here are three solutions: Solution #1 – appearance: none – with Internet Explorer 10 – 11 workaround (Demo) — To hide the default arrow set appearance: none on the select element, then add your own custom arrow with background-image Browser Support: appearance: none has very good browser support (caniuse) – except for Internet Explorer. We can improve this technique and add … Read more