Home > OS >  How to decrease component size with screen size like amazon website?
How to decrease component size with screen size like amazon website?

Time:11-01

This is a full-screen view of the amazon website This is responsive view I want to do like this how can I do that using CSS

CodePudding user response:

I would suggest you to read this post https://stackoverflow.com/help/how-to-ask

Specifically we could get more information about what you have already tried doing.

CodePudding user response:

You can use css media queries to manipulate the layout of the website.

reference link

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}

CodePudding user response:

I suggest u for using bootstrap. It's easier way to learn responsive website

https://getbootstrap.com/docs/4.0/getting-started/introduction/

After that, u can build miniproject to learn it.

  •  Tags:  
  • css
  • Related