Pratham Profile picture
10 Apr, 17 tweets, 4 min read
Complete guide to Responsive Web Design

🧵👇🏻
In order to make a RWD, you just need to consider one thing.

"Ability of content to fit inside any device that look good and it will be for user to interact with that"

{ 2 / 16 }
Responsive web design is not a kind of program or framework. We can say it's a combination of various concepts using which we try to make our web page look good on all devices

The great thing is that you can achieve RWD using HTML and CSS only⚡

{ 3 / 16 }
1️⃣ First and foremost thing in order to make RWD is <meta> viewport element.

It forces page to follow the screen-width of the device.

{ 4 / 16 }
2️⃣ The second important point to note is that don't use large fixed width or height element.

It can cause trouble. Let's say an element having width 500px but user is viewing on a device having width smaller than 500px

In such cases, use min-width or max-width

{ 5 / 16 }
3️⃣ Use HTML <picture> tag

The HTML <picture> element allows you to define different images for different browser window sizes.

{ 6 / 16 }
4️⃣ Responsive text size

Although you can make text responsive using media queries but you can also use "viewpoet" width as well.

h1 {
font-size: 10vw;
}

{ 7 / 16 }
5️⃣ Try to use Layouts

Using Grid or Flex layout always beneficial in order to make a web page responsive. Both these layout are not hard to learn. Try to use them😉

{ 8 / 16 }
6️⃣ Use box-sizing: border-box

Don't know you consider with point valid or not but small thing can make big impact.

Box-sizing: border-box; forces an element to adjust it's padding and border inside width and height of that element

CONT...👇

{ 9 / 16 }
Even small 4px border can damage the responsiveness. Hence I always consider box-sizing border-box for RWD.

{ 10 / 16 }
7️⃣ Media Queries are saviour

Media query is a rule to include a block of CSS properties only if a certain condition is true. It is very useful in order to make a RWD.

{ 11 / 16 }
Here is the basic syntax of media query

Check out the detailed thread on media query 🔽

🔗

{ 12 / 16 }
8️⃣ Use "auto" in media

Almost 99% a web page contains images or videos. And in order to make them responsive, use "auto"

If the width property is set to a percentage and the height is set to "auto", the image will be responsive

{ 13 / 16 }
In order to improve further, you can use max-width in image so that quality of image will be persist. After all it can also be considered as responsive 😅

{ 14 / 16 }
9️⃣ Use frameworks if possible

Sometimes it might be a tedious task to handle responsiveness if you're wirting pure CSS. Try to use frameworks because they can save a lot of time designing a responsive website

{ 15 / 16 }
I think that's pretty much it for this thread. Did I miss something?

Feel free to add your suggestion below and thanks for reading ❤️
I am glad you all are finding this thread helpful💖

Can we take it to 2K likes😉

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Pratham

Pratham Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Prathkum

12 Apr
8 CSS pseudo classes most likely you are not familiar with

🧵 👇🏻
1️⃣ :autofill

- The :autofill CSS pseudo-class matches when an <input> element has its value autofilled by the browser

See this in action here codepen.io/prathamkumar/p… input:autofill {   border: ...
2️⃣ :empty

- The :empty CSS pseudo-class represents any element that has no children. Image
Read 8 tweets
11 Apr
7 great websites a programmer should visit

Thread 🧵 👇🏻
1️⃣ Pastebin

Pastebin can store texts like code, notes, and snippets online for a set time which can be shared instantly.

🔗 pastebin.com Image
2️⃣ Learn Shell

Whether you are an experienced programmer or not, this website is intended for everyone who wishes to learn programming with Unix/Linux shell interpreters.

🔗 learnshell.org
Read 8 tweets
11 Apr
A complete guide to learning JavaScript for Web Development

🧵 👇🏻 Image
JavaScript is a robust language for web development. You should learn it if you want to be a web developers

Reasons 🔽

🔹 Currently used by 94.5% websites
🔹 Wide range of applications including mobile and desktop devices
🔹 Most in-demand language

{ 2 / 19 }
Depth of JavaScript is something that every developer loves or hates (Not sure). But starting with it is easy.

Even it becomes 50% easier if you're familiar with the few common programming concepts. For example, loops. control statements etc...

{ 3 / 19 }
Read 19 tweets
10 Apr
Top 12 Cheat Sheets that can help you immensely if you're a coder

🧵 👇🏻
1️⃣ Linux cheat sheet 🐧

🔗 assets.hongkiat.com/uploads/cheats…
2️⃣ Big-O cheat sheet

🔗 bigocheatsheet.com
Read 14 tweets
10 Apr
Are you planning to learn React in 2021? Here are some free courses for you

🧵 👇🏻
1️⃣ Course on Scrimba

You'll learn key React features while building two apps and practice what you learn through interactive coding challenges and exercises along the way.

🔗 scrimba.com/learn/learnrea…
2️⃣ Course on Codecademy

You’ll develop a strong understanding of React’s most essential concepts: JSX, class and function components, props, state, lifecycle methods, and hooks. And able to combine these ideas in React’s modular programming style

🔗 codecademy.com/learn/react-101
Read 6 tweets
9 Apr
These 9 websites will help you improve your JavaScript knowledge

🧵👇🏻
1️⃣ JavaScript visualizer

- A great visualizer for JavaScript code

🔗 jsv9000.app
2️⃣ JavaScript Tutorial

- This JavaScript Tutorial helps you learn JavaScript programming language from scratch quickly and effectively.

🔗 javascripttutorial.net
Read 11 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!