Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.14 KB

README.md

File metadata and controls

48 lines (29 loc) · 1.14 KB

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.