• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4367 shaares
2 / 16
Filters
305 results tagged css

Problems solved by OpenType | Roel Nieskens | CSS Day 2024

QRCode

About Roel: https://pixelambacht.nl

Depending on whether the information is technical or not, you might want different font features.

29:20 - "Never grab a Monotype font"

font-variant-numeric: tabular-nums;

@font-face {
size-adjust: 110%;
}

https://wakamaifondue.com/
(what can my font do?)

https://pixelambacht.nl/

https://www.youtube.com/watch?v=TreBK-EyACQ
February 7, 2025 at 9:59:24 AM EST *
youtube css webdesign typography fonts
FILLER

CSS Text balancing with text-wrap:balance

QRCode

A look at text wrap balancing in CSS

Have you ever wished there is a native way in CSS to make two lines headlines consistent in the number of words per line? As a designer, I spot that a lot when dealing with varying content lengths while designing a website or a UI.

https://ishadeed.com/article/css-text-wrap-balance/
January 3, 2025 at 7:54:34 AM EST *
css typography webdesign
FILLER

Layout grids in the browser · Medienbäcker Thomas Günther

QRCode

A simple guide to building keyboard-activated layout grid overlays with JavaScript and CSS for web development projects.

https://medienbaecker.com/articles/layout-grids-in-the-browser
January 3, 2025 at 7:45:42 AM EST *
grid css webdesign layout
FILLER

A practical guide to using shadow DOM

QRCode

How (and why) to use shadow DOM, now that the declarative syntax is here.

https://www.youtube.com/watch?v=8Z8H2NEbLtE

shadow DOM has lower precedence than regular styles

(X, Y, Z)
#id, classes and attrs, elements

[id="myid"] is (0,1,0) not (1,0,0)!

You can duplicate classes to increase specificity! (0, 4, 0)
.button.button.button.button
or
.button {
&&& {
}
}

is( .button, #hammertime )
.button:not(#id1#id2) -> "impossible" because two IDs, (2, 0, 0)!

Decreasing specificity

:where( .button) -> (0,0,0)

** Very useful for css reset!
input:where([type="checkbox"])

17:55 - meta keyword in sass

** Might need to use !important in layers (dialog: display:none)

https://mayank.co/blog/declarative-shadow-dom-guide/
November 21, 2024 at 2:26:17 PM EST *
webdesign css html
FILLER

An HTML element id is a global variable

QRCode

Little relatively unknown fact, if you have an id attribute on an element, you can reference it in this way:

<button id="yo">…</button>
yo.onclick = ...

Furthermore, child elements with a name attribute can be referenced in this way:

<form id="x"> 
  <input name="em"> 
</form>
x.em.onclick = ...
https://flaviocopes.com/an-html-element-id-is-a-global-variable/
October 7, 2024 at 3:36:27 PM EDT *
javascript webdesign forms css
FILLER

How I build a button component - Piccalilli

QRCode

A button is arguably the most likely component to find itself in your codebase so I’m going to show you how I approach building one.

https://piccalil.li/blog/how-i-build-a-button-component/
October 7, 2024 at 3:35:02 PM EDT *
buttons css webdesign
FILLER

Styling Tables the Modern CSS Way - Piccalilli

QRCode

Modern CSS makes styling HTML tables in a considered, responsive nature a breeze. Michelle Barker breaks it all down for you in this deep dive.

https://piccalil.li/blog/styling-tables-the-modern-css-way/
October 7, 2024 at 3:26:58 PM EDT *
tables css webdesign
FILLER

How not to use box shadows

QRCode

So you think you know box shadows huh? I bet you didn't know they could do this.

https://dgerrells.com/blog/how-not-to-use-box-shadows
August 2, 2024 at 9:28:21 AM EDT *
css webdesign shadow
FILLER

CSS Grid Areas

QRCode

A fresh look at the CSS grid template areas and how to take advantage of its full potential today.

https://ishadeed.com/article/css-grid-area/
July 22, 2024 at 10:11:21 AM EDT *
css grid webdesign
FILLER

Auto-margin works with absolute positioned elements | Stefan Judis Web Development

QRCode

If you're defining absolute width or height for an absolute positioned element, you can use auto margin to lay out these elements.

https://www.joshwcomeau.com/css/center-a-div/

.box {
  position: absolute;
  inset: 0.5rem;
  width: 7rem;
  height: 7rem;
  margin: auto;
}
https://www.stefanjudis.com/today-i-learned/auto-margin-works-with-absolute-positioned-elements/
July 15, 2024 at 10:51:44 AM EDT *
css margins centering
FILLER

The Modern Guide For Making CSS Shapes — Smashing Magazine

QRCode

I get asked this question often, and my answer is always the same: Use SVG if you can! I have nothing against SVG. It’s just another approach for creating shapes using another syntax with another set of considerations. If SVG was my expertise, then I would be writing about that instead!

https://www.smashingmagazine.com/2024/05/modern-guide-making-css-shapes/
May 28, 2024 at 2:52:03 PM EDT *
css webdesign
FILLER

Hardest Problem in Computer Science: Centering Things @ tonsky.me

QRCode

The text will be off! Even though rectangles are perfectly centered.
But even if font can have its metrics unbalanced, it doesn’t mean it does. What happens in reality?
In reality, most of the popular fonts have metrics slightly off. Many have it significantly off:

https://tonsky.me/blog/centering/
May 20, 2024 at 2:36:18 PM EDT *
fonts webdesign css flexbox
FILLER

93 Beautiful CSS box-shadow examples - CSS Scan

QRCode

🎨 Curated collection of 93 free beautiful CSS box-shadow, ready-to-use for your next projects. Click to copy.

https://getcssscan.com/css-box-shadow-examples
April 2, 2024 at 11:41:13 AM EDT *
css webdesign
FILLER

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
2 / 16
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