RSS Amplifier

justmarkup · Apr 15, 2020

100 days - 100 CSS properties in a tweet

0
Sign in to vote or save

Michael Scharnagl · justmarkup.com

At the beginning of the year I thought it may be fun to tweet about a CSS property for 100 days in a row. Before I started I wasn't really sure if there are even so many different CSS properties, but I soon realized there are much more, especially if you count all the long-hand properties as separate properties. Or did you know that there are 61 properties starting with border?

I have to say I learned quite a lot about CSS the last 100 days, many of the properties I have never used before or even never heard before. It is pretty incredible how CSS involved over all the years. I also have to say that it is fantastic to have MDN as a reference available. You can learn so much by looking things up there.

So, without further ado here is the full list of properties I tweeted about.

— Michael Scharnagl (@justmarkup)

January 6, 2020

— Michael Scharnagl (@justmarkup)

January 7, 2020

— Michael Scharnagl (@justmarkup)

January 8, 2020

— Michael Scharnagl (@justmarkup)

January 9, 2020

— Michael Scharnagl (@justmarkup)

January 10, 2020

Day 6: box-sizing

- Sets how the total width and height of an element is calculated.

/* Reset, so an element's specified width and height aren't affected by padding or borders */
*,
*::before,
*::after {
box-sizing: border-box;
}

https://t.co/LYRZIk1lBI

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 11, 2020

Day 7: position

- Sets how an element is positioned
- Possible values are relative, absolute, fixed, sticky and static

ℹ️ Use absolute, fixed and sticky positioned elements carefully, as they may be problematic for keyboard users.

https://t.co/UBFoy6p4ke

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 12, 2020

— Michael Scharnagl (@justmarkup)

January 13, 2020

— Michael Scharnagl (@justmarkup)

January 14, 2020

Day 10: font

- Shorthand for font-style, font-variant, font-weight, font-stretch, font-size, line-height, font-family
- Alternatively, sets an element's font to a system font

ℹ️ Nobody* knows the correct order for the font property

https://t.co/XELaH2zRRR

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 15, 2020

Day 11: animation-play-state

- Sets whether an animation is running or paused.

ℹ️ When you set it to paused and after again to running it will start the animation from where it left off at the time it was paused

https://t.co/wyvCnNBVsk

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 16, 2020

Day 13: caption-side

- Puts the content of a table's <caption> on the specified side. The values are relative to the writing-mode of the table
- Currently supported values are either top or bottom

https://t.co/oCJ5CvSwUm

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 18, 2020

Day 14: background-attachment

- Sets whether a background image's position is fixed within the viewport, or scrolls with its containing block
- Possible values are scroll, local, fixed

ℹ️ Was already available in IE4 (scroll, fixed)

https://t.co/537iNB8zkd

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 19, 2020

— Michael Scharnagl (@justmarkup)

January 20, 2020

Day 16: text-combine-upright

- Sets the combination of characters into the space of a single character.

ℹ️ This is used to produce an effect that is known as tate-chū-yoko (縦中横) in Japanese, or as 直書橫向 in Chinese.

https://t.co/WphlZmZaDB

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 21, 2020

— Michael Scharnagl (@justmarkup)

January 22, 2020

— Michael Scharnagl (@justmarkup)

January 23, 2020

— Michael Scharnagl (@justmarkup)

January 24, 2020

— Michael Scharnagl (@justmarkup)

January 25, 2020

Day 21: right

- Participates in specifying the horizontal position of a positioned element.

ℹ️ When both left and right are defined, if not prevented from doing so by other properties, the element will stretch to satisfy both.

https://t.co/SS7M3cJHmr

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 26, 2020

— Michael Scharnagl (@justmarkup)

January 27, 2020

— Michael Scharnagl (@justmarkup)

January 28, 2020

— Michael Scharnagl (@justmarkup)

January 29, 2020

Day 25: scroll-behavior

- Sets the behavior for a scrolling box when scrolling is triggered by the navigation or CSSOM scrolling APIs

ℹ️ Note that any other scrolls, eg. those performed by the user, are not affected by this property

https://t.co/GnIbDgvOci

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 30, 2020

Day 26: max-height

- Sets the maximum height of an element
- Prevents the height property from becoming larger than the value specified for max-height.

ℹ️ Often used to transition height, as to height: auto not possible

https://t.co/kTtWBBjUij

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

January 31, 2020

— Michael Scharnagl (@justmarkup)

February 1, 2020

— Michael Scharnagl (@justmarkup)

February 2, 2020

— Michael Scharnagl (@justmarkup)

February 3, 2020

Day 30: scale

- Allows you to specify scale transforms individually and independantly of the transform property

ℹ️ One/two values for scale along X and Y axes, by using three values last will be for the Z axis (same as scale3d())

https://t.co/ZCn4Wcks6E

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 4, 2020

Day 31: animation-direction

- Sets whether an animation should play forwards, backwards, or alternating back and forth.

ℹ️ Possible values are normal, reverse, alternate and alternate-reverse

https://t.co/CrJTSFegGx

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 5, 2020

— Michael Scharnagl (@justmarkup)

February 6, 2020

— Michael Scharnagl (@justmarkup)

February 7, 2020

Day 34: letter-spacing

- Sets the spacing behavior between text characters.

ℹ️ Applying negative letter spacing to headings makes them more compact and closer in appearance to the body type.

https://t.co/r5D5TdRDnH

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 8, 2020

— Michael Scharnagl (@justmarkup)

February 9, 2020

Day 36: hyphens

- Specifies how words should be hyphenated when text wraps across multiple lines.

ℹ️ Hyphenation does vary from browser to browser and language support varies quite a lot between them.

https://t.co/PorF3qmsfP

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 10, 2020

Day 37: object-fit

- Sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container

ℹ️ It's one of the properties I somehow always forget the name and have to look it up.

https://t.co/bgGuCwUkwH

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 11, 2020

Day 38: caret-color

- Sets the color of the insertion caret, the visible marker where the next character typed will be inserted.

ℹ️ The caret is typically a thin vertical line that flashes to help make it more noticeable.

https://t.co/BwwdaVmdvi

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 12, 2020

Day 39: scroll-margin

- Is a shorthand property which sets all of the scroll-margin longhands,

ℹ️ The value specified for scroll-margin determines how much of the page that's primarily outside the snapport should remain visible.

https://t.co/ZBB8PmFnCD

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 13, 2020

— Michael Scharnagl (@justmarkup)

February 14, 2020

— Michael Scharnagl (@justmarkup)

February 15, 2020

— Michael Scharnagl (@justmarkup)

February 16, 2020

Day 43: text-decoration-thickness

- Sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or overline.

https://t.co/JkWuUFXCRU

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 17, 2020

Day 44: direction

- Sets the direction of text, table columns, and horizontal overflow.

ℹ️ Note that text direction is usually defined within a document (e.g. dir attribute) rather than through direct use of the direction property.

https://t.co/CCMA49D01C

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 18, 2020

Day 45: translate

- Allows you to specify translation transforms individually and independently of the transform property.

ℹ️ Currently only supported in Firefox, but others will follow soon hopefully.

https://t.co/sxpsbri2jp

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 19, 2020

Day 46: background-position

- Sets the initial position for each background image.
- It is relative to the position layer set by background-origin.

Note: You can't position background-color.

https://t.co/zYhVYjn1Q7

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 20, 2020

Day 47: text-justify

- Sets what type of justification should be applied to text when text-align: justify; is set on an element.

ℹ️ Be careful as the uneven spaces created by justify can harm readability and be very distracting.

https://t.co/Eg1Qd3KAZi

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 21, 2020

Day 48: flex

- Sets how a flex item will grow or shrink to fit the space available in its flex container.
- It is a shorthand for flex-grow, flex-shrink, and flex-basis.

ℹ️ CSS Flexbox is awesome in case you didn't know :-)

https://t.co/JV9zVKTld3

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 22, 2020

Day 49: z-index

- Sets the z-order of a positioned element and its descendants or flex items.

ℹ️ The maximum value is infinite, bounded only by a browser's variable size. For most browsers this days the highest is 2147483647 though.

https://t.co/PleBHuDPF6

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 23, 2020

Day 50: cursor

- Sets the type of cursor, if any, to show when the mouse pointer is over an element.

ℹ️ cursor: none; is for mouse users as outline: none; is for keyboard users - don't do either!

https://t.co/CgFcXsxLwt

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 24, 2020

Day 51: will-change

- Hints to browsers how an element is expected to change.

ℹ️ In some situations it imay have negative performance impact. So, always test carefully and use as a last resort.

https://t.co/yvI73qtT0e

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 25, 2020

— Michael Scharnagl (@justmarkup)

February 26, 2020

— Michael Scharnagl (@justmarkup)

February 27, 2020

— Michael Scharnagl (@justmarkup)

February 28, 2020

Day 55: image-orientation

- Specifies a layout-independent correction to the orientation of an image

ℹ️ Will be probably deprecated in the future. The good news is that browsers will honor EXIF info (Safari and Chrome already does)

https://t.co/8jPaLmQWGT

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

February 29, 2020

— Michael Scharnagl (@justmarkup)

March 1, 2020

— Michael Scharnagl (@justmarkup)

March 2, 2020

— Michael Scharnagl (@justmarkup)

March 3, 2020

Day 59: counter-increment

- Increases or decreases the value of a CSS counter by a given value.

ℹ️ You can change multiple counter at once, eg. counter-increment: cter1 cter2 -4; will increment cter1 by 1 and decrement cter2 by 4

https://t.co/pO99ufKqtg

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 4, 2020

— Michael Scharnagl (@justmarkup)

March 5, 2020

— Michael Scharnagl (@justmarkup)

March 6, 2020

— Michael Scharnagl (@justmarkup)

March 7, 2020

Day 63: place-content

- Is a shorthand for align-content and justify-content.

ℹ️ If the second value is not present, the first value is used for both, provided it is a valid value for both.

https://t.co/gLGy8W36vR

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 8, 2020

Day 64: row-gap (grid-row-gap)

- Sets the size of the gap (gutter) between an element's grid rows.

ℹ️ CSS Grid Layout initially defined the grid-row-gap property. This prefixed property is being replaced by row-gap.

https://t.co/rVCfOvFrA2

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 9, 2020

— Michael Scharnagl (@justmarkup)

March 10, 2020

— Michael Scharnagl (@justmarkup)

March 11, 2020

— Michael Scharnagl (@justmarkup)

March 12, 2020

— Michael Scharnagl (@justmarkup)

March 13, 2020

Day 69: padding

- Sets the padding area on all four sides of an element.

ℹ️ If you use box-sizing: border-box; the padding the width/height will include the padding value.

https://t.co/8NHhePLv0O

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 14, 2020

— Michael Scharnagl (@justmarkup)

March 15, 2020

— Michael Scharnagl (@justmarkup)

March 16, 2020

— Michael Scharnagl (@justmarkup)

March 17, 2020

— Michael Scharnagl (@justmarkup)

March 18, 2020

Day 74: object-position

- Specifies the alignment of the selected replaced element's contents within the element's box.

ℹ️ Like background-position, but for <img>, <video>

https://t.co/KxxZXzhYGt

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 19, 2020

— Michael Scharnagl (@justmarkup)

March 20, 2020

— Michael Scharnagl (@justmarkup)

March 21, 2020

— Michael Scharnagl (@justmarkup)

March 22, 2020

Day 78: place-self

- Is a shorthand property sets both the align-self and justify-self properties.

ℹ️ The first value is the align-self property value, the second the justify-self one.

https://t.co/7dRDJF7QrF

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 23, 2020

— Michael Scharnagl (@justmarkup)

March 24, 2020

— Michael Scharnagl (@justmarkup)

March 25, 2020

Day 81: overflow

- Sets what to do when an element's content is too big to fit in its block formatting context.

ℹ️ Setting one axis to visible while setting the other to a different value results in visible behaving as auto.

https://t.co/c3DLcTHYMs

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 26, 2020

Day 82: word-spacing

- Sets the length of space between words and between tags.

ℹ️ A large positive or negative word-spacing value will make the sentences the styling is applied to unreadable and therefore inaccessible.

https://t.co/p2Kj4cxTqA

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 27, 2020

Day 83: padding-inline-start

- Defines the logical inline start padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.

https://t.co/H2SPAqIv06

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 28, 2020

Day 84: color

- Sets the foreground color value of an element's text and text decorations, and sets the currentcolor value.

ℹ️ The value must be a uniform color. It can't be a <gradient>, which is actually a type of <image>

https://t.co/Jr6UW0Wd7I

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

March 29, 2020

— Michael Scharnagl (@justmarkup)

March 30, 2020

— Michael Scharnagl (@justmarkup)

March 31, 2020

— Michael Scharnagl (@justmarkup)

April 1, 2020

— Michael Scharnagl (@justmarkup)

April 2, 2020

— Michael Scharnagl (@justmarkup)

April 3, 2020

— Michael Scharnagl (@justmarkup)

April 4, 2020

— Michael Scharnagl (@justmarkup)

April 5, 2020

— Michael Scharnagl (@justmarkup)

April 6, 2020

— Michael Scharnagl (@justmarkup)

April 7, 2020

Day 94: pointer-events

- Sets under what circumstances (if any) a particular graphic element can become the target of pointer events.

https://t.co/bh6e8MXnGr

input[disabled],
button[disabled] {
pointer-events: none;
}

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

April 8, 2020

Day 95: rotate

- Allows you to specify rotation transforms individually and independently of the transform property.

ℹ️ You can also set the name of the axis you want to rotate the affected element around, e.g. rotate: x 90deg;

https://t.co/HlgcPw6CD0

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

April 9, 2020

— Michael Scharnagl (@justmarkup)

April 10, 2020

Day 97: touch-action

- Sets how an element's region can be manipulated by a touchscreen user

ℹ️ After a gesture starts, changes to touch-action will not have any impact on the behavior of the current gesture.

https://t.co/sgDTQSYCMQ

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

April 11, 2020

— Michael Scharnagl (@justmarkup)

April 12, 2020

Day 99: font-optical-sizing

- Sets whether text rendering is optimized for viewing at different sizes.

ℹ️ The optical size variation axis is represented by opsz in font-variation-settings.

https://t.co/COuqQob1iV

#CSSPropertyInTweet

— Michael Scharnagl (@justmarkup)

April 13, 2020

— Michael Scharnagl (@justmarkup)

April 14, 2020

Here is the full list on twitter

If you looked closely you saw that I somehow missed Day 12 to tweet - I realized this just now when writing this article, even though I was 100% sure before I didn't miss a day. So, there are only 99 properties after all I tweeted.

Oh, here is what would have been Day 12:

Day 12: inset
  • Defines physical offsets, regardless of the element's writing mode, directionality, and text orientation

ℹ️ Is still an Editor’s Draft and currently only supported in Firefox

https://developer.mozilla.org/en-US/docs/Web/CSS/inset

#CSSPropertyInTweet

I might repeat this some day, maybe 50 JavaScript keywords or something.

<information>
This article was written with Writerie - The Writer for Internet People.
</information>

Read the original on justmarkup.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.