diogolimas / css-learning-initiative

❗ It's a self-made initiative to learning more features of CSS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS Learning Initiative

It's a self-made initiative to learning more features of CSS.

Resources

Week 1 - Scroll-Smooth:

Method of specifying the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs. source

My feature:

Alt

Details:

After use href to link section in your main content, you may just use this css selector and property:

html{
    scroll-behavior: smooth;
}

Week 2: Focus Within

The :focus-within pseudo-class matches elements that either themselves match :focus or that have descendants which match :focus. source

My Feature:

Alt

Details:

First, I removed all properties by default of the textarea tag, then I added in form selector on css:

form:focus-within{
  border: 2px solid #76F5AA;
}

The idea of Focus-Within, instead of Focus, is use Focus effect to father elements too.

About

❗ It's a self-made initiative to learning more features of CSS.


Languages

Language:HTML 60.0%Language:CSS 40.0%