Quick CSS Q
- Started
- Last post
- 4 Responses
- johndiggity
is there a rule i can apply to a div so when someone presses ctrl+ to mke the text larger, the text in said div does not enlarge? sorry, i'm a CSS n00b.
- myobie0
if you give text a size in pixels, it will not enlarge...try to learn to use em's if you want it to enlarge correctly...
post a link buddy?
you could use font-size:80%; for body and then use 1em for p's, and like 2.2em for h1's, etc?
- johndiggity0
i'd post a link, but i just switched my hosting and i'm wainting for the new DNS to propagate.
i'm using pixels for the type in question, but even when i test it it enlarges. all the body copy is set in em's.
it's just a couple lines of fine print that i want to remain small and not flow ou of the div. i have the overflow set to clip, so it looks shitty when enlarged, and i don't want it to scroll. should i just use a graphic instead? i'd rather everything be consistent. thanks for your help.
- unfittoprint0
I think alistapart has something on this article about preventing parts of your text to rescale:
http://www.alistapart.com/articl…
- johndiggity0
that's what i was looking for, thanks unfit.