I have this HTML
<a href="foo.html">↶</a>
with this CSS
a {
 box-sizing: border-box;
 font-size:28px;
 font-weight:bold;
 text-decoration: none;
 display:block;
 width:40px;
 height:40px;
 text-align:center;
}
Firefox displays the left curving arrow (↶) vertically centred in
the anchor. Whereas Chrome has it about 6 pixels too high.
Is it the nature of the unicode character or is there something I can do
to get it to centre vertically in all browsers?
I have this HTML
<a href="foo.html">↶</a>
with this CSS
a {
box-sizing: border-box;
font-size:28px;
font-weight:bold;
text-decoration: none;
display:block;
width:40px;
height:40px;
text-align:center;
}
Firefox displays the left curving arrow (↶) vertically centred in
the anchor. Whereas Chrome has it about 6 pixels too high.
Is it the nature of the unicode character or is there something I can do
to get it to centre vertically in all browsers?
Andrew Poulos
I have this HTML
<a href="foo.html">↶</a>
with this CSS
a {
 box-sizing: border-box;
 font-size:28px;
 font-weight:bold;
 text-decoration: none;
 display:block;
 width:40px;
 height:40px;
 text-align:center;
}
Firefox displays the left curving arrow (↶) vertically centred in
the anchor. Whereas Chrome has it about 6 pixels too high.
Is it the nature of the unicode character or is there something I can do
to get it to centre vertically in all browsers?
I have this HTML
<a href="foo.html">↶</a>
with this CSS
a {
box-sizing: border-box;
font-size:28px;
font-weight:bold;
text-decoration: none;
display:block;
width:40px;
height:40px;
text-align:center;
}
Firefox displays the left curving arrow (↶) vertically centred
in the anchor. Whereas Chrome has it about 6 pixels too high.
Is it the nature of the unicode character or is there something I can
do to get it to centre vertically in all browsers?
Andrew Poulos
a {
box-sizing: border-box;
font-size: 28px;
font-weight: bold;
text-decoration: none;
width: 100px;
height: 100px;
text-align: center;
border: 2px solid red;
display: flex;
align-items: center;
justify-content: center;
}
<span style="color: #d4d4d4;">:Â none;</span></div><div><span style="color: #d4d4d4;">Â Â Â Â Â Â Â Â Â Â Â Â </span><span style="color: #9cdcfe;">width</span><span style="color: #d4d4d4;">:Â </span><span style="color: #b5cea8;">100px</span><span style="color: #d4d4d4;">;</span></div><div><span style="color: #d4d4d4;">Â Â Â Â Â Â Â Â Â Â Â Â </span><span style="color: #9cdcfe;">height</span><span style="color: #d4d4d4;">:Â </span><span style="color: #b5cea8;">100px</span><span style="color: #d4d4d4;">;</
On 13/03/2020 12:18 pm, Andrew Poulos wrote:
I have this HTML
<a href="foo.html">↶</a>
Firefox displays the left curving arrow (↶) vertically
centred in the anchor. Whereas Chrome has it about 6 pixels too
high.
Is it the nature of the unicode character or is there something I
can do to get it to centre vertically in all browsers?
Oh, I tried changing the CSS for the anchor to
display:table-cell;
vertical-align:middle;
but still the text is too high in Chrome.
In Message: <R9Gdnbc6L_cKfffDnZ2dnUU7-cGdnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
On 13/03/2020 12:18 pm, Andrew Poulos wrote:
I have this HTML
<a href="foo.html">↶</a>
[snip]
Firefox displays the left curving arrow (↶) vertically
centred in the anchor. Whereas Chrome has it about 6 pixels too
high.
Is it the nature of the unicode character or is there something I
can do to get it to centre vertically in all browsers?
Oh, I tried changing the CSS for the anchor to
display:table-cell;
vertical-align:middle;
but still the text is too high in Chrome.
Evertjan & Jonathan pointed out font.
Select a font-family that contains ANTICLOCKWISE TOP SEMICIRCLE ARROW
entity: ↶. Do not leave it up to the ua.
Edge ⇒ Segoe UI Emoji
Vivaldi ⇒ Segoe UI Symbol
Chrome ⇒ Cambria Math
Firefox ⇒ Segoe UI Symbol
On 14/03/2020 11:05 am, James Kirk wrote:
In Message: <R9Gdnbc6L_cKfffDnZ2dnUU7-cGdnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
On 13/03/2020 12:18 pm, Andrew Poulos wrote:
I have this HTML
<a href="foo.html">↶</a>
[snip]
Firefox displays the left curving arrow (↶) vertically
centred in the anchor. Whereas Chrome has it about 6 pixels too
high.
Is it the nature of the unicode character or is there something I
can do to get it to centre vertically in all browsers?
Oh, I tried changing the CSS for the anchor to
display:table-cell;
vertical-align:middle;
but still the text is too high in Chrome.
Evertjan & Jonathan pointed out font.
Select a font-family that contains ANTICLOCKWISE TOP SEMICIRCLE ARROW
entity: ↶. Do not leave it up to the ua.
    Edge ⇒ Segoe UI Emoji
 Vivaldi ⇒ Segoe UI Symbol
  Chrome ⇒ Cambria Math
 Firefox ⇒ Segoe UI Symbol
I tried all the suggested solutions and Firefox has the characters down towards the bottom of the anchor. I think it's a quirk in the unicode character as other characters I tested seem fine.
I just going to need to make images of the characters and use those :-(
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 52:47:03 |
Calls: | 6,650 |
Calls today: | 2 |
Files: | 12,200 |
Messages: | 5,330,484 |