Site logo

Archived topic

Switching from Floats to Flexbox - font issue

11 replies · Started by Gianluca on October 23, 2020

Viewing posts 1–12 of 12

Hi,

I'm switching all my sites from the Float option to Flexbox, but I've noticed an issue with the font used, which seems to be thinner and lighter than before.

Is it normal? Is it possible to keep the font as it used to be?

Thank you in advance,

Gianluca

Hi there,

The font shouldn't change at all.

Where can we see the issue?

Hi there,

GP 3.0 introduced this CSS:

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

Which is why the typography is 'finer'.

If you can unset that with CSS:

html {
    -webkit-font-smoothing: unset;
    -moz-osx-font-smoothing: unset;
}

Hi David,

It worked, thank you!

Another issue I've noticed with the switch, is related to the hr tag.

I've styled it with this CSS:

/* hr tag - Horizontal line style */
hr {
  background-color: #a0d468;
  width: 20%;
  height: 2px;
}

to show the horizontal line in the center of the page, but with Flexbox the line is pushed to the left as you can see here https://imgur.com/a/ATeDIg4

Is there a way to center the hr tag with some CSS?

Thank you in advance

Sorry I missed the font issue before!

Can you link me to the page where I can see the hr tag issue?

Edit your CSS to this:

hr {
  background-color: #a0d468;
  width: 20%;
  height: 2px;
  margin-left: auto;
  margin-right: auto;
}

Perfect, thank you :)

No problem :)

This archived topic is closed to new replies.