Learn css Day 1

 

article > p:first-child::first-letter {

  color: red;

  font-family: Georgia;

  font-size: 75px;

  line-height: 9px;

}


p {

  font-family: verdana;

  font-size: 20px;

  top:12px

}

::first-letter pseudo-element.


<article>

<p>This is a paragraph.</p>

<p>Hello fdgd</p>

</article>



index.ts
// ⛔️ Property 'example' does not exist on // type 'Window & typeof globalThis'.ts(2339)
window.example = 'hello';

console.log(window.example);
src/types/index.d.ts
export {}; declare global { interface Window { example: string; } }

Comments

Popular posts from this blog

Become a Expert + Secret of Success -- ii

Change Detection

without writing media queries How to make responsive component