I've read about, but I don't have any larger monitor to test. So, I'm asking: how can I resize fonts to fit screen?
If I write font-size: 12px/18px, will font be resized according screen resolution?
Or it's better to express font-size in em?
Please give me an answer.
dflor
0
Newbie Poster
Recommended Answers
Jump to PostI tried that today in an h1 tag's style. Firefox would not accept % for a font size (I wanted a double sized font, so I put 200%). It also refused to set a font size in em. The only values that worked were px, pt, and the relative size …
Jump to PostI was using Firefiox 3.
That page works. So now I have to find out why mine does not.
One difference was that I was using a class, instead of modifying a generic tag type.
.double {font-size: 200%;} ..... <h1 class="double">big type</h1>
Question: Are the …
Jump to PostI was using Firefiox 3.
That page works. So now I have to find out why mine does not.
One difference was that I was using a class, instead of modifying a generic tag type.
.double {font-size: 200%;} ..... <h1 class="double">big type</h1>
Shouldn't really matter. BTW, I'm using …
Jump to PostI figured it out.
The relative size of the h1 font-size style is referenced to the base font size, not the large font size used for h1 by default. So I was actually asking for the font size h1 normally uses when I asked for a double size with …
Jump to PostI figured it out.
Putting in 400% gave me what I wanted.Yes of course. Sorry about not remembering or being clear about that.
All 30 Replies
ingeva
almostbob
866
Retired: passive income ROCKS
ingeva
almostbob
866
Retired: passive income ROCKS
ccube921
2
Junior Poster in Training
ingeva
MidiMagic
579
Nearly a Senior Poster
ingeva
MidiMagic
579
Nearly a Senior Poster
ingeva
almostbob
866
Retired: passive income ROCKS
MidiMagic
579
Nearly a Senior Poster
ingeva
MidiMagic
579
Nearly a Senior Poster
ingeva
MidiMagic
579
Nearly a Senior Poster
ingeva
MidiMagic
579
Nearly a Senior Poster
ingeva
MidiMagic
579
Nearly a Senior Poster
ingeva
MidiMagic
579
Nearly a Senior Poster
almostbob
866
Retired: passive income ROCKS
ingeva
ingeva
MidiMagic
579
Nearly a Senior Poster
ingeva
MidiMagic
579
Nearly a Senior Poster
ingeva
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.