문제

I am working on a website that has a log size of 320x150 and looks really well on a resolution bigger than 600px, but if it`s lower it starts stacking up.

How can edit bootstrap to use a smaller logo if the resolution of the browser is smaller the 600 px?

Thank you

도움이 되었습니까?

해결책

Read up on media queries. They're used heavily in Bootstrap, and you'll just need to specify the image you want for each screen size range. It'll look something like this:

@media screen and (max-width: 600px) {
  .logo {
    background: url(my-image.jpg);
  }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top