Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Resizing the image

Enthusiast ,
Jun 06, 2019 Jun 06, 2019

Hi,

Moving from Tablet to Mobile, I want to make the logo image smaller.

How do I do?

Hosuns Portfolio 3

Hosun Kang

Q_Dw_21_size.png

356
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 06, 2019 Jun 06, 2019

Just set the width of the logo in the mobile media query:

@media (max-width: 500px) {

.logo {

width: 40px;

}

}

Translate
Community Expert ,
Jun 06, 2019 Jun 06, 2019

Have a look at Responsive images - Learn web development | MDN

Wappler, the only real Dreamweaver alternative.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 06, 2019 Jun 06, 2019

Just set the width of the logo in the mobile media query:

@media (max-width: 500px) {

.logo {

width: 40px;

}

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 06, 2019 Jun 06, 2019

Hi,

Thank you very much for your reply.

Does width and height change "in proportion"?

Hosun Kang

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 06, 2019 Jun 06, 2019
LATEST

Hosun  wrote

Hi,

Thank you very much for your reply.

Does width and height change "in proportion"?

Hosun Kang

Yes height and width change in proportion, you only need to set a width or a height.

Normally I don't use fixed width for images but I think logos are a good example of where a fixed size can work well. Set the size you think looks good for desktop/tablet/smartphone

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines