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

browser [Issues with images when using zoom in Chrome]

Enthusiast ,
Jun 26, 2019 Jun 26, 2019

Copy link to clipboard

Copied

Hi,

Moving the zoom on Chrome from 100% to 50%,

Roar Cycles 4 looks fine.

But 6 images on Hosuns Portfolio 4 looks odd.

Is there any way to fix the problem?

Roar Cycles 4

Hosuns Portfolio 4

Hosun Kang

Q_Dw_32_browser.png

Views

409

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 27, 2019 Jun 27, 2019

Just wrap your complete code in a wrapper <div>

<div class="wrapper">

All your other html code goes here.

</div>

Then use:

.wrapper {

width: 90%;

max-width: 1200px;

margin: 0 auto;

}

I'm not sure this is a great idea simply to keep the 'proportion' of the layout correct and centered in the browsers window when zooming out. I personally don't know anyone that actually zooms out. Most likely they will want to zoom in and retricting the width to 1200px wont allow them to do that.

Votes

Translate

Translate
LEGEND ,
Jun 26, 2019 Jun 26, 2019

Copy link to clipboard

Copied

Try setting a max-width in px on your containers.

Example:

width: 80%;

max-width: 1200px;

margin: 0 auto;

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 27, 2019 Jun 27, 2019

Copy link to clipboard

Copied

Hi,

I did the follow;

[Desktop View]

change: max-width -> width

added lines 124 & 125

[Tablet View]

added lines 220-222

Q1.

Am I correct?

Q2.

Another issue is the difference in margins.

.box1 {

background-color: palegreen;

padding: 16px 32px 26px 32px;

background-image: url(images/hero-background.jpg);

background-size: cover; /*responsiveness*/

color: white;

margin: 1%;

}

.thumbnails {

display: flex;

flex-wrap: wrap;

justify-content: space-between;

border-top: 1px solid black;

border-bottom: 1px solid black;

padding-top: 12px;

margin: 0px 1% 12px 1%;

}

Is there any way to fix it?

Hosuns Portfolio 4

Hosun Kang

Q_Dw_33_browser.png

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 27, 2019 Jun 27, 2019

Copy link to clipboard

Copied

LATEST

Just wrap your complete code in a wrapper <div>

<div class="wrapper">

All your other html code goes here.

</div>

Then use:

.wrapper {

width: 90%;

max-width: 1200px;

margin: 0 auto;

}

I'm not sure this is a great idea simply to keep the 'proportion' of the layout correct and centered in the browsers window when zooming out. I personally don't know anyone that actually zooms out. Most likely they will want to zoom in and retricting the width to 1200px wont allow them to do that.

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