2,828 questions
-2
votes
1
answer
28
views
How to prevent text size from changing depending on size of container on mobile version of my website? [closed]
font-size is inherited from the same parent for the elements in question. however it displays differently. I am at complete loss on how to solve it.
But if I let max-width of the container element be ...
0
votes
3
answers
68
views
Line height still depends on font-family even though both font-size and line-height are set to the same fixed pixel value
<style>
div {
font-size: 16px;
line-height: 16px;
display: inline-block;
width: 40%;
background: gray;
vertical-align: top;
}
</style>
<div style="font-family: monospace;">Lorem ...
0
votes
1
answer
17
views
VBA function to double sheet sizing
I would like to increase the 'resolution' of an infographic I am working on and was wondering if some kind soul would help me with a VBA function that does the following:
For columns BU:HG, double ...
0
votes
1
answer
127
views
.NET MAUI: How to set the font family and font size for a custom Webview renderer
I am using a custom WebView to display HTML content in a .NET MAUI application. I need to set the font family and font size for Webview. I have implemented font size adjustments, and it works on ...
0
votes
0
answers
36
views
NextJS/React custom text component: Font Size delay on first character typed and line break loss
I'm trying to code in NextJS 15 a very simple text input that lets users format their text and outputs the final text to be saved on a database. The input looks like the image below. (It should work ...
0
votes
0
answers
39
views
Why does font-size > 0 add extra height to web component aka HTML custom element?
I can't get this to work in a snippet here, so here's my test page on my github pages site: https://sidewayss.github.io/scratch/wc-bugs.html
Note the top row labeled <svg>:, the two rectangles. ...
0
votes
1
answer
43
views
Emulating “relative pixels” in CSS, based on root font size
As far as I know, there is still no such thing as a “relative pixel” in CSS. (1 relative pixel == 1px, if 1rem == 16px, or proportionally changed, if not).
I'm looking for an expressive way of ...
0
votes
1
answer
39
views
font size is not working when using from html
I have a textview in an Android application. I want to set the textview's value from HTML. For example, I get a value like this:
<span style="font-family:'Roboto-Regular'; font-size:13px; ...
0
votes
2
answers
730
views
Set default selected font size in Quill editor
I'm trying to programmatically set the default font size for different Quill rte's on a page in my application, but each approach seems more and more of a hacky workaround than something that would ...
0
votes
0
answers
104
views
Is it possible to change .NET MAUI Default fontsize
Is it possible to change the default font sizes of Title, Subtitle, Small, Micro, Medium, Large, Header, Default, Caption and Body according to user's preference?
I would like to set user's font size ...
1
vote
2
answers
217
views
in css, How come that 1rem is smaller than the root? [closed]
In this code the <a> keeps its original 30px size with the 1rem that is applied using the .a (As it should).
but the <h2> turns smaller.
why?
@import url('https://fonts.googleapis.com/...
0
votes
0
answers
55
views
How to automatically increase font size to fill N sheets of paper?
How do I say via (pure) CSS: "This document should print on two sheets of paper,
and not have any wasted white space on the last page"?
I.e., "Please automatically increase the font-...
0
votes
1
answer
37
views
Issue with setting the font size of the Telerik <ol> list
Actually the <ol> tag font-size is getting as 1 after received the output even the <li><font>listItem01</font></li> font size is bigger (1,, 2, 3, 4, 5, 6, 0r 7), so here ...
0
votes
1
answer
90
views
Changing Font Size
I would like to know how can I resize text font in Text widget in Tkinter without resize text box.
Here is my code:
from tkinter import *
root = Tk()
def font_size(value):
text.configure(font =(...
5
votes
1
answer
73
views
Change font of TextField without affecting context menu
Setting a custom font style on a TextField in JavaFX will also affect its default context menu, I noticed. What can I do to change the font of the user input, but keep the menu items in the context ...