Reputation: 7555
I want to increase the size of the '…' unicode character while maintaining its parent container's dimension.
#more-with-increased-size { font-size: 2rem }
<div><p>I want this parent's dimension but with increased size of the 3 dots..</p>
<button id="more-original">
…
</button></div>
<br>
<div>The size of the 3 dots here is right, but the parent container has become too big...</div>
<button id="more-with-increased-size">
…
</button>
Upvotes: 2
Views: 355
Reputation: 1453
You may try this style:
#more-with-increased-size {
font-size: 2rem;
line-height: 0;
padding-bottom: 1rem;
}
It sets line height to 0 and adds padding for button so dots will be inside.
#more-with-increased-size {
font-size: 2rem;
line-height: 0;
padding-bottom: 1rem;
}
<div><p>I want this parent's dimension but with increased size of the 3 dots..</p>
<button id="more-original">
…
</button></div>
<br>
<div>The size of the 3 dots here is right, but the parent container has become too big...</div>
<button id="more-with-increased-size">
…
</button>
Upvotes: 0
Reputation: 4474
I think this is kind of what you are after. Setting 0 line height and max width on the boxes. You may want to fiddle with additional properties to try and match the browser default look.
#more-with-increased-size { max-width: 40px; max-height:40px; }
#more-with-increased-size span{ font-size: 2rem; line-height:0px; }
<div><p>I want this parent's dimension but with increased size of the 3 dots..</p>
<button id="more-original">
…
</button></div>
<br>
<div>The size of the 3 dots here is right, but the parent container has become too big...</div>
<button id="more-with-increased-size">
<span>…</span>
</button>
Upvotes: 1