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

Resizing the image

Enthusiast ,
Jun 06, 2019 Jun 06, 2019

Copy link to clipboard

Copied

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

Views

253

Translate

Translate

Report

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;

}

}

Votes

Translate

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

Copy link to clipboard

Copied

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

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

@media (max-width: 500px) {

.logo {

width: 40px;

}

}

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hi,

Thank you very much for your reply.

Does width and height change "in proportion"?

Hosun Kang

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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