CSS properties to improve your responsive design of web page๐ก๐ช
๐งต๐
1โฃ Use Em / Rem
โ Always try using em/percentage/rem instead of px, so that the text, images size adjust regarding the device-width
2โฃ Padding/Margin
โ we usually use a lot of padding when we make websites for desktops, to make them more attractive.
โ While making it responsive for mobiles, tablets try decreasing the existing padding and margin.
3โฃ Flex-Box
โ using flexbox to align your HTML elements, such as <div> <p> provides the force elements that can wrap onto multiple lines according to their width.
4โฃ Media Query
โ Media query should be used to set width and height according to the breakpoints. Breakpoints refer to the width at which the websites look distorted.
5โฃ Box-Sizing
โ It resolves a lot of problems padding causes. Using box-sizing on HTML elements with a percentage width will take padding into account rather than having to adjust the width because of padding
{ box-sizing : border-box ; }
6โฃ Grid-Layout
โ Reduced code bloat. Rather than creating extra HTML elements to contain your grid, columns and rows, your grid tracks are created within your style sheet.
Top GitHub Repository you should definitely check out as a web developer (thread):
1/ Developer-roadmap
If you want to start your career in web development but don't know where to start then check out this repository you get all the details about web development.