• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4252 shaares
2 / 15
Filters
291 results tagged css

How to take control of Flexbox

QRCode
  • Flex children are just that: display: block or display: inline don't have any affect once display: flex is defined on the parent.

  • Flexbox is controlled inside --> out: The size of the children affect the size of the parent. Grid is outside --> in: the size of the parent is specified and the children fit inside.

  • Defaults: flexbox by default uses the 'best' size for the children. It doesn't expand them, but it will shrink them if necessary.
    flex-shrink: 1;
    flex-grow: 0;

  • If you have multiple rows and columns, and you want them consistent, grid is the better choice

  • width is the same as flex-basis IF you are using columns

https://www.youtube.com/watch?v=Ns12ALe8aqI
April 1, 2024 at 2:37:36 PM EDT *
flexbox css youtube
FILLER

CSS for printing to paper

QRCode

At work, one of the things I do pretty often is write print generators in HTML to recreate and replace forms that the company has traditionally done handwritten on paper or in Excel. This allows the company to move into new web-based tools where the form is autofilled by URL parameters from our database, while getting the same physical output everyone's familiar with.

This article explains some of the CSS basics that control how your webpages look when printed, and a couple of tips and tricks I've learned that might help you out.

https://voussoir.net/writing/css_for_printing/
April 1, 2024 at 9:38:29 AM EDT *
css print
FILLER

Modern CSS Tooltips And Speech Bubbles (Part 1) — Smashing Magazine

QRCode

Tooltips are a very common pattern used in CSS for years. There are a lot of ways to approach tooltips in CSS, though some evoke headaches with all the magic numbers they require. In this article, Temani Afif presents modern techniques to create tooltips with the smallest amount of markup and the greatest amount of flexibility.

https://www.smashingmagazine.com/2024/03/modern-css-tooltips-speech-bubbles-part1/
March 11, 2024 at 2:54:09 PM EDT *
css tooltip
FILLER

How SVG Fragment Identifiers Work | CSS-Tricks - CSS-Tricks

QRCode

I've talked a good bit about SVG's around here and using it to build an icon system. The beauty of is that you can reference just a part of some SVG defined

https://css-tricks.com/svg-fragment-identifiers-work/
February 13, 2024 at 9:17:59 AM EST *
svg css webdesign
FILLER

The Complex But Awesome CSS border-image Property — Smashing Magazine

QRCode

The CSS border-image property is one of those properties you undoubtedly know exists but may not have ever reached for. In this article, Temani Afif demonstrates different approaches for using border-image to create clever decorative accents and shapes.

Used for overlay images
https://www.youtube.com/watch?v=opHu7HvFM60

https://www.smashingmagazine.com/2024/01/css-border-image-property/
January 26, 2024 at 1:22:54 PM EST *
css border overlay
FILLER

An Interactive Guide to CSS Grid

QRCode

CSS Grid is an incredibly powerful tool for building layouts on the web, but like all powerful tools, there's a significant learning curve. In this tutorial, we'll build a mental model for how CSS Grid works and how we can use it effectively. I'll share the biggest 💡 lightbulb moments I've had in my own learning journey.

https://www.joshwcomeau.com/css/interactive-guide-to-grid/
January 9, 2024 at 11:24:44 AM EST *
css grid webdesign
FILLER

Why You Should Use px Units for margin, padding, & Other Spacing Techniques | Ashlee M Boyer

QRCode

When users increase their text size, they're not trying to make the space around text bigger.

https://ashleemboyer.com/blog/why-you-should-use-px-units-for-margin-padding-and-other-spacing-techniques
November 20, 2023 at 7:54:31 AM EST *
accessibility css webdesign
FILLER

html - How to increase space between dotted border dots - Stack Overflow

QRCode
div.five:before {
  content: "";
  position: absolute;
  border: 5px dashed #FF0000;
  top: -3px;
  bottom: -3px;
  left: -3px;
  right: -3px;
}

div {
  overflow: hidden;
  position: relative;

  text-align:center;
  padding:10px;
  margin-bottom:20px;
}
https://stackoverflow.com/questions/6250394/how-to-increase-space-between-dotted-border-dots
November 16, 2023 at 2:11:36 PM EST *
css boxes border
FILLER

Re-Creating The Pop-Out Hover Effect With Modern CSS (Part 1) — Smashing Magazine

QRCode

This article is all about experimenting with modern CSS features. We will combine things like CSS masks, CSS variables, trigonometric functions, @property, and more to create a neat hover effect that would have been extremely difficult to do even a few years ago without the latest and greatest that CSS has to offer.

https://www.smashingmagazine.com/2023/09/re-creating-pop-out-hover-effect-css-part1/
November 2, 2023 at 11:54:04 AM EDT *
webdesign css
FILLER

Compiling CSS with Eleventy

QRCode

A list of different options for compiling CSS with Eleventy

David Darnes came at me with a classic RTFM. Turns out Eleventy has a page on the docs for doing exactly this. This method uses Sass and requires a little bit of config. One thing to note is by default this will output all .scss file to the built site, so I added a check to see if the file is named app and if it's not, then skip it. Alternatively you can put your files in an _includes directory and these won't be output (thanks Dave). style: 'compressed' will minimise the CSS.

Stephanie Eckles has an Eleventy plugin for using LightningCSS which handles all the configuration and as a bonus ignores any files that start with _ so they won't get copied to the build folder.

https://rknight.me/compiling-css-with-eleventy/
September 13, 2023 at 11:35:14 AM EDT *
css eleventy sass
FILLER

Sass: Sass and Native Nesting

QRCode
.foo, #bar {
  .baz { /* ... */ }
}

produces the selector .foo .baz, #bar .baz in Sass but :is(.foo, #bar)) .baz in native CSS. This changes the specificity: :is() always has the specificity of its most specific selector,

Sass nesting and native CSS nesting both support syntax that looks like &foo, but it means different things.

https://sass-lang.com/blog/sass-and-native-nesting/
August 31, 2023 at 10:22:03 AM EDT *
sass css
FILLER

Using CSS Variables Correctly - MadeByMike

QRCode

Custom Properties have the potential to change how we write and think about CSS.

In most cases, I'd now consider it code smell if a media query or CSS selector swaps one variable for another. Rather than swapping variables it's better to define one variable, set its initial value and change it with a selector or media query.

https://www.madebymike.com.au/writing/using-css-variables/
August 2, 2023 at 11:03:07 AM EDT *
css webdesign
FILLER

Stephanie Eckles - Scaling CSS Layout Beyond Pixels

QRCode

Responsive designs being created today have to serve more users on more devices and with more varied abilities and preferences than ever before. And size and spacing of elements can quite literally make or break your layout. In this new world, strict pixel values are so Web 2.0. Let’s review modern CSS techniques for building future-forward flexibility into our layouts and components.

https://www.youtube.com/watch?v=8slZJrTK3nE
June 28, 2023 at 10:40:06 AM EDT *
youtube css webdesign toread
FILLER

HTML: The good parts - Vadim Makeev

QRCode

Correction in the thumbnail: This video was shot on April 2023

  • It's not HTML5 or CSS3 - it's just 'html' and 'css'!
  • https://developer.mozilla.org/en-US/docs/Web/HTML - Good documentation but not the spec!
  • https://html.spec.whatwg.org/
  • Content model - What is legal to nest
  • Transparent: a > h1 is ok, but p > a > h1 not ok!
  • https://caninclude.glitch.me/
  • preload preconnect prefetch prerender for links
  • Get your head straight: https://www.youtube.com/watch?v=UW1PEMBdX5E
  • <header><main><footer> are important!
  • Subheading <hgroup><h1><p> - Not <hgroup><h1><h2>
  • Upgrade Your HTML (4 books)
  • <menu> - like <ul>
  • script - defer async type="module" nomodule
  • <template id="mytable"> - Don't have to put html in javascript
  • JavaScript is expensive, HTML is almost free!
https://www.youtube.com/watch?v=RPCkuz-TteA
May 21, 2023 at 11:58:48 AM EDT *
html youtube webdesign css
FILLER

The Contrast Triangle

QRCode

A three-way color contrast checker for when you remove underlines from links.

https://chipcullen.com/the-contrast-triangle/

In order for your text and links to be accessible, they both need to have sufficient contrast from the background, as well as from each other. This creates a three-way design constraint.

https://contrast-triangle.com/
May 18, 2023 at 2:17:03 PM EDT *
accessibility css color
FILLER

It's time to learn oklch color

QRCode

I think the biggest bang for your buck is to learn OKLCH (or, “Oklachroma”)

  • It’s based on human perception
  • It can define any color
  • the chroma value is a number between 0 and 0.37
https://keithjgrant.com/posts/2023/04/its-time-to-learn-oklch-color/
April 26, 2023 at 9:30:18 AM EDT *
color colorscheme css
FILLER

Boilerform

QRCode

Boilerform is a little HTML and CSS boilerplate to take the pain away from working with forms.

https://boilerform.hankchizljaw.com/
April 11, 2023 at 11:14:41 AM EDT *
forms css webdesign boilerplate
FILLER

CSS Masking - Ahmad Shadeed

QRCode

A deep dive into CSS masking

https://ishadeed.com/article/css-masking/
April 11, 2023 at 9:56:26 AM EDT *
css webdesign images
FILLER

3 useful CSS hacks | Kevin Powell

QRCode

border-radius: 100vmax;

.full-width {
box-shadow: 0 0 0 100vmax var( --color );
clip-path: inset( 0 -100vmax );
}

https://www.youtube.com/watch?v=MywezIxlp8Y
March 18, 2023 at 11:01:42 AM EDT *
css webdesign forms buttons
FILLER

Hex Colors Aren't Great At Anything Except Being Popular - Chris Coyier

QRCode

The hsl() and hsla() functions also have 0% usage in the data, and they have just as good of support as the hex codes. Why? HSL can do anything HEX can do, except it’s far more readable and easier to adjust. It’s just better, really.

https://chriscoyier.net/2023/02/01/hex-colors-arent-great-at-anything-except-being-popular/
March 1, 2023 at 9:59:51 AM EST *
color css webdesign
FILLER
2 / 15
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community