473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

XHTML & CSS Font-Size Oddity..

Hey guys, I'm sure I'm doing something dumb but can't figure out
exactly what it is... Here are details:

XHTML Transitional pages with a linked CSS page. (See the CSS bits
below) On Firefox 2.0.0.3, if I have a span with a style/class
containing a "font-size" or "font-size-adjust" in it, it appears
normally. In IE 7 (don't have any other IEs to test against at this
moment), the font-size remains unchanged, no matter what I put into
either value. An example page is here: http://tsqmadness.com/testsites/subu...ntal/_bad.html.
The linked stylesheet is here: http://tsqmadness.com/testsites/subu.../_suburban.css.
(Note that both pages may have unused values, since I've been poking
and prodding trying to get IE to do something - anything - different.
For example, in the body{}, it doesn't matter if the 'font-size' is
present or not, nor what it's set if present.)

So my question is, why is IE ignoring the font-size directive? I'm not
getting errors that I'm /aware/ of. Any tips would be appreciated. :)

Thanks!
Mike

May 18 '07 #1
3 3288
Scripsit co****@gmail.com:
Hey guys, I'm sure I'm doing something dumb
I might agree:
XHTML Transitional pages
Pointless.
On Firefox 2.0.0.3, if I have a span with a style/class
containing a "font-size" or "font-size-adjust" in it, it appears
normally.
Only Firefox 2 supports font-size-adjust.
In IE 7 (don't have any other IEs to test against at this
moment), the font-size remains unchanged, no matter what I put into
either value.
For font-size-adjust, that surely happens. For font-size, are you sure?

You should first validate your page and run your CSS code through the W3C
CSS checker ("CSS Validator").
So my question is, why is IE ignoring the font-size directive? I'm not
getting errors that I'm /aware/ of.
You didn't use the available checking tools.

Besides, using 9pt font size is criminal, or should be. Drop Verdana, and
you will be less tempted into such destructive moves.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

May 18 '07 #2
Jukka K. Korpela wrote:
Hey guys, I'm sure I'm doing something dumb
I might agree:
Thanks for the wonderful confirmation..
On Firefox 2.0.0.3, if I have a span with a style/class
containing a "font-size" or "font-size-adjust" in it, it appears
normally.
Only Firefox 2 supports font-size-adjust.
In IE 7 (don't have any other IEs to test against at this
moment), the font-size remains unchanged, no matter what I put into
either value.
For font-size-adjust, that surely happens. For font-size, are you sure?
You should first validate your page and run your CSS code through the W3C
CSS checker ("CSS Validator").
Yes, I'm sure to point #1. For point #2, both pass without errors OR
warning.
You didn't use the available checking tools.
Other than the CSS validator and the HTML validator, what else is
there/
Besides, using 9pt font size is criminal, or should be. Drop Verdana, and
you will be less tempted into such destructive moves.
Again, the 9pt is just me testing. If I put it at 76pt, or a %, or em,
no results. In fact, I just updated it to remove the 'font-size' 9pt
from the body tag in the CSS file. You'll note that the
'span.errmsg' (which is how I first noticed it) is the same size as
the rest of the body, despite both the 'font-size' and 'font-
size'adjust' tags. However, to appease you and testing purposes. I
removed the 'font-size-adjust' as well.

Despite your tone, thanks for your input!
Mike.

May 18 '07 #3
Scripsit co****@gmail.com:
Jukka K. Korpela wrote:
>>Hey guys, I'm sure I'm doing something dumb
I might agree:
Thanks for the wonderful confirmation..
You're welcome. By the way, if chat like this isn't what you want, you could
get to the point in the first sentence in your future postings.
Yes, I'm sure to point #1.
My IE seems to display texts in the same sizes as Firefox. You haven't told
which texts you see differently.

By the way, problems in font size are typically caused by CSS. This is an
HTML newsgroup.
For point #2, both pass without errors OR warning.
When I looked at them, they didn't. Maybe you have kept changing the files.
It's generally a good idea to freeze a problem page (and make any additional
tests under a different file name) after asking for help with it in public.
>Besides, using 9pt font size is criminal, or should be. Drop
Verdana, and you will be less tempted into such destructive moves.
Again, the 9pt is just me testing.
I don't believe you. It's far too common to use such font sizes in real
life.
In fact, I just updated it to remove the 'font-size' 9pt
from the body tag in the CSS file.
You did? I can still see it.
You'll note that the
'span.errmsg' (which is how I first noticed it) is the same size as
the rest of the body,
There's no span.errmsg there. You have a CSS rule for span.errormsg though.
But you have no element with class="errormsg".
However, to appease you and testing purposes. I
removed the 'font-size-adjust' as well.
I don't need to be appeased. I simply pointed out, somewhat indirectly, that
you should learn the basics of practical CSS authoring. How did you get the
idea of using font-size-adjust? Surely not from any reputable tutorial,
since it would have told you it hasn't been implemented or (if it's new)
that is has only been implemented in Firefox 2 and relatives.

ObHTML: An input field should have its label text associated with in in
markup, using <labelmarkup. Your current approach makes that impossible.
It's probably fruitless to play with the current page and try to fix it up.
It would be easier to redesign it from scratch.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

May 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rick | last post by:
Hi.. I've got some code I wrote in PHP that will generate a new argument string for the browser, but the xhtml parser in Firefox and Opera both complain about my use of &var=value pairs. Below...
24
by: Nobody | last post by:
Okay, you are all so smart in here. Answer me this: IE6 in standards mode doesn't seem to hide scrollbars on the body element (overflow:hide) Ain't this a quandary. I have it in my head that I...
50
by: Christopher Benson-Manica | last post by:
(if this isn't the place for XHTML, I'd appreciate a redirect) According to the w3's web site, some non-HTML 4 browsers won't properly interpret non-minimized boolean attributes, i.e. <option...
5
by: Haines Brown | last post by:
Re. <title>, my impression has been that a line break is _NOT_ allowed in the contained text. Is that true? Also, I gather a double quotation mark in the text string (and ampersand, etc.) _IS_...
6
by: Matt Adams | last post by:
I want define for a couple of words inside a longer text with different font specifications. I declared it like: ....text before.... <FONT class=aaa> these text should get other attributes...
1
by: Jose Gonzalez | last post by:
How to apply a numeric format to a textbox using xhtml? I know you have to use the "-wap-input-format" style tag in css. I can get this to work in a regular xhtml page, however, I've been...
4
by: Alexander Bolotnov | last post by:
I am trying to read xhtml spec and use one of its examples about css2 in xhtml. The example on the PDF paper with internal styles defenition works just fine. When I try to use an external file...
3
by: Jason Shohet | last post by:
I have an xml file (that is updated through infopath), which populates various .net controls. One of the elements in my xml file contains XHTML tags: And the xml text reader object that .NET...
12
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
13
by: mark4asp | last post by:
When I write a url in xhtml, with an unencoded ampersand, like this: http://localhost:2063/Client/ViewReport.aspx?Ref=58&Type=SUMMARY the xhtml sytax checker correctly indicates an error,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.