Home > Net >  I have a problem with making a website responsive
I have a problem with making a website responsive

Time:08-04

I have website I want to make responsive but I don't know how to. I building it with html and css.

CodePudding user response:

You may find this guide helpful: https://www.w3schools.com/html/html_responsive.asp

There's also a free course on responsive web design on FreeCodeCamp which could be useful: https://www.freecodecamp.org/learn/2022/responsive-web-design/

Hope it helps!

CodePudding user response:

KaisaSS has pointed so well also if you are not aware of different screen size for mobile and Tablet also for big screens use

/* Extra small devices (phones, 600px and down) */ @media only screen and (max-width: 600px) {...}

/* Small devices (portrait tablets and large phones, 600px and up) */ @media only screen and (min-width: 600px) {...}

/* Medium devices (landscape tablets, 768px and up) */ @media only screen and (min-width: 768px) {...}

/* Large devices (laptops/desktops, 992px and up) */ @media only screen and (min-width: 992px) {...}

/* Extra large devices (large laptops and desktops, 1200px and up) */ @media only screen and (min-width: 1200px) {...}

Referal artical : https://www.w3schools.com/howto/howto_css_media_query_breakpoints.asp

  • Related