|
Everything You Need To Know About CSS Margins — At first glance, margins place space around DOM elements, pushing other elements away, but things can get complicated fast when you think about how margins can collapse together or introduce Flexbox or CSS Grid.
Rachel Andrew
|
|
Color Inputs: A Deep Dive into Cross-Browser Differences — This really is a ‘deep dive’. Certainly deeper than I needed, but I admire Ana’s ability to go so deep into analyzing the styling of a browser-supplied input component. You will absolutely learn something but, as one commenter notes, “that’s nightmare territory.”
Ana Tudor
|
Image & Video Management Made for Front-End Developers — Simplify and automate the process of uploading, manipulating, optimizing, and delivering images and videos across every device at any bandwidth. Try Cloudinary. See how easy media management can be. Get your own free account today.
Cloudinary sponsor
|
|
Debugging CSS Grid with Firefox Dev Tools — When you build a layout using CSS grid you end up with rows, columns, cells, etc. but they’re not really elements so visualizing and debugging them can be tough.. but Firefox’s dev tools have some nifty features to help.
Chris Nwamba
|
|
A Look At z-index Values Seen in The Wild — There’s not a lot to learn here, but it’s just the sort of data and analysis I enjoy seeing. Unsurprisingly, people love using z-index values like 1000 and 9999 just to make sure their element of choice is rendered on top π
Philippe Suter
|
|
Using HTML Validator Badges Again? — Remember when sites used to declare their code was both semantic and followed W3C guidelines by displaying validator badges with pride? Should we bring them back..?
Bradley Taunt
|
supported by 
|
|
How to add a custom scrollbar to your page
A site rocking a distinctive scrollbar isn't something that's overly common, mainly due to limited browser support, but it can prove to be a nice little touch — whether you make it bigger and easier to grab, or have it match your brand colours. Here's how to do it by way of some CSS pseudo-properties.
To start out, you can change the width by defining one in a -webkit-scrollbar declation like so:
|
|
body::-webkit-scrollbar {
width: 1.2em;
}
|
Changing the color of the scrollbar makes use of the following selector:
|
|
body::-webkit-scrollbar-thumb {
background-color: #f06529;
}
|
|
|
π§ Code, Tools & Resources
|
|
No comments:
Post a Comment