5 webdev tips you may want to know 🔥 #2

1. Web workers cheatsheet

A worker thread can perform tasks without interfering with the user interface. This can be handy if you want to perform a CPU heavy operation for example:

 

2. Manipulating placeholders with CSS

📍How …


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Mustapha Aouas

1. Web workers cheatsheet

A worker thread can perform tasks without interfering with the user interface. This can be handy if you want to perform a CPU heavy operation for example:

Web workers cheatsheet

 

2. Manipulating placeholders with CSS

📍How to style a placeholder? Use the ::placeholder pseudo element

📍How to target an input with a visible placeholder? Use the :placeholder pseudo class

Manipulating placeholders with CSS

 

3. Make your headers look better

You can use the text-rendering CSS property to provides information to the rendering engine about what to optimize for when rendering text:

Make your headers look better

 

Hi there! I'm Mustapha, a technical writer, speaker and a passionate JS / TS developer. Follow me on Twitter for daily tech tips 🚀

 

4. Sass mixins cheatsheet

You can use Mixins to define styles that can be re-used throughout your stylesheets:

Sass mixins

 

5. Text alignement with HTML

You can use <sup> HTML element to display a superscripts: a raised baseline using smaller text, and <sub> to render a subscripts: a lowered baseline and smaller text:

Text alignement with HTML

You can achieve the same behaviour with the vertical-align CSS property. More on this below:

 
 

Let's connect

That's it for this week. I hope you liked it. If you did, please share it with your friends & colleagues and follow me on Twitter @theAngularGuy where I tweet about web development and computer science 🚀

Cheers!


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Mustapha Aouas


Print Share Comment Cite Upload Translate Updates
APA

Mustapha Aouas | Sciencx (2022-09-26T13:30:03+00:00) 5 webdev tips you may want to know 🔥 #2. Retrieved from https://www.scien.cx/2022/09/26/5-webdev-tips-you-may-want-to-know-%f0%9f%94%a5-2/

MLA
" » 5 webdev tips you may want to know 🔥 #2." Mustapha Aouas | Sciencx - Monday September 26, 2022, https://www.scien.cx/2022/09/26/5-webdev-tips-you-may-want-to-know-%f0%9f%94%a5-2/
HARVARD
Mustapha Aouas | Sciencx Monday September 26, 2022 » 5 webdev tips you may want to know 🔥 #2., viewed ,<https://www.scien.cx/2022/09/26/5-webdev-tips-you-may-want-to-know-%f0%9f%94%a5-2/>
VANCOUVER
Mustapha Aouas | Sciencx - » 5 webdev tips you may want to know 🔥 #2. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/09/26/5-webdev-tips-you-may-want-to-know-%f0%9f%94%a5-2/
CHICAGO
" » 5 webdev tips you may want to know 🔥 #2." Mustapha Aouas | Sciencx - Accessed . https://www.scien.cx/2022/09/26/5-webdev-tips-you-may-want-to-know-%f0%9f%94%a5-2/
IEEE
" » 5 webdev tips you may want to know 🔥 #2." Mustapha Aouas | Sciencx [Online]. Available: https://www.scien.cx/2022/09/26/5-webdev-tips-you-may-want-to-know-%f0%9f%94%a5-2/. [Accessed: ]
rf:citation
» 5 webdev tips you may want to know 🔥 #2 | Mustapha Aouas | Sciencx | https://www.scien.cx/2022/09/26/5-webdev-tips-you-may-want-to-know-%f0%9f%94%a5-2/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.