HTML Font Question

So I was over at IGNcube.com when I realized that messing around with IE’s “text size” option had no affect on IGN’s text. Is there a way I can replicate that in HTML, or are they using something a bit more sophisticated?

That’s the standard action in IE when the font size has been defined using CSS (Cascading Style Sheets). If every single font element on the page has a definition in the stylesheet, then the IE font size change won’t be affected. On some sites, not all of the fonts will be described thus, and you’ll see some of the text change size, but not other bits. CSS isn’t strictly HTML, but it’s very common these days.

I don’t think that’s strictly true. If font sizes are defined using px rather than pt they will not be affected by IE’s accessibility options.
Many designers do this to protect their design but purists would say that it is not good use of html as it prevents the end user having the flexibility of use.

Actually…

If you specify the font-size property with fixed units - in, cm, mm, pt, pc, px - then IE will not let you resize.

However, if you specify the font-size with relative units - em, ex - or percentages, or so-called absolute-size keywords - xx-small, x-small, small, medium, large, x-large, xx-large - or soi-disant relative-size keywords - larger, smaller - then IE will let you resize. I think.

Sorry to voice an opinion in General Questions, but please don’t do this on a website. It is incredibly annoying - akin to saying “this is my design, and you’ll read it how I want you to”. The whole point of HTML is that the user can define how they want to view the information. Fixing the font size (normally at far too small a size) is just wrong. Just ask my parents when they’re struggling to read tiny fonts. :mad:

I know, but my website does not cater to an older audience, thus I don’t care if they can’t read the text. Also, a larger font tends to disrupt my page’s layout, hence my original question.

OK, but what do you gain by not allowing people to change the size? If it looks neat at the default size that you use, then cool - people will look at it like that if they can read it. If not, then isn’t it considerate to at least allow them the option of making the text bigger, at the expense of the pretty layout?

After all, it’s not going to affect the way the page looks to you.

The thing is, you have a bad layout. Not that that’s the worst thing in the world. It’s only as bad as having a high-contrast background that makes the text unreadable unless you highlight it, or sloppy coding that makes all the punctuation show up as question marks, or a font so big you need a horizontal scroll bar. And also realize that every other browser besides IE will allow people to resize the text anyway, and from the way web designers talk about it, I wouldn’t be surprised if later versions of IE do as well.

You’re dead right.

Prohibiting the users from viewing the way they want is pretty lame. You don’t know what size monitor the viewer has, or if they are trying to look at your page on a PDA or a phone, or if they’re using an unusual browser.

Duderdude2 - let the browser do it’s job and stop trying to control your users.

You can’t determine that without seeing the site. I don’t care about other browsers, etc. The majority of net surfers use IE, I’m not going after the lowest common denominator. Furthermore, this is GENERAL QUESTIONS, I don’t want to hear any more opinions on this matter.

“Stop trying to control [my] users”? What are you talking about? It’s not about control, it’s about how my site looks. Shit, my site isn’t even intended for others outside of a few select people to ever see! NOW BACK TO THE QUESTION!

I’ll be happy to look at the site if you want. However, I was just pointing out that there are very real, pragmatic problems with what it sounds like your layout is; it is somewhat subjective, sure, but it’s not just my opinion. Also, just because somebody’s advice isn’t useful to you doesn’t mean it won’t be useful to someone else reading this thread with the same problem.

There’s no need to.

It just irritates me when people call into question my site’s design, when they have no understanding of the site’s intent or target demographic. Obviously most IGN visitors don’t take issue with the inability to adjust text size, as they have one of the largest audiences of any website in the gaming field.

Then again, internet users put up with a lot of nonsense they probably don’t have to.

Although “target audience and demographic” is used to make a point about design sometimes, that’s not what it’s about. So saying “the elderly aren’t welcome on my site anyway, so I don’t care if they see it” doesn’t make an impression on me, FWIW.

Er… not to say that that’s actually what you said. I just mean, even an extreme a position as that would not nullify what people are saying, so a less extreme position like yours certainly doesn’t.

Why not link us?

Just because they’re big doesn’t mean people don’t care.

Yeah, you’re trying to control how your site looks. But the look of the site should remain constant with variable text size. Any less is a disservice to your users.

And I don’t think anyone wants to be ordered to answer a question of some guy on the internet.

I merely meant that I did not want any more opinions (or any at all for that matter). If I had, I would have posted my question in. IMHO. Thanks for understanding.

I think some of you are being a bit hard on Duderdude. You can’t dictate how he wants his site to look. If he has a strong idea of who his target audience is, let him make the site that he deems suitable.

Take it from someone who finds relative font settings a real hassle because of the vagaries of cross-browser incompatability, sometimes fixed sizes are the only answer to gain any sanity.

That doesn’t make sense to me. The point (or at least one point) is that there is only one current browser that I know of that will show only the size you specify. So if cross-browser quirks is your problem, fixed font sizes is not the solution.

Thanks. The others just don’t understand what I’m trying to do, yet I’m in the wrong regardless sigh