473,776 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3302
Scripsit co****@gmail.co m:
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.co m:
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
2118
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 is my code that generates the string : function InvokeURL(url_to_forward_to) { try {
24
4729
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 need to specify html instead. The scrollbars do hide on Gecko browsers though, so there is definitely a disagreement among browser developers on how to implement scrollbars (as a side note, Gecko browsers with their notoriously bug-ridden...
50
3865
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 value="blah" selected="selected">...</option> ^^^^^^^^^^^ Can anyone tell me what browsers those might be? I'm in the process of converting some marginal HTML to something resembling XHTML, and
5
1881
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_ acceptable, but not char entities (such as &quote;), decimal characters (such as ‛) or style-sheet defined elements (such as <q>). Re. <meta name="description">, is a line break acceptable here? My impression is that for the enclosed descriptor...
6
13099
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 </FONT> text after However when I let this html source validate the FONT tag is marked as not compatible with XHTML. So how do I specify otherwise new font attributes to only a few words?
1
4659
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 unsuccessful in getting it to work in asp.net 1.1 The following code has allowCustomAttributes set and works fine for labels, but not for textboxes. This is because it is building span tags around the control. I need to embed the class tag inside the...
4
4128
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 with css defs it just does not work unless I use <link rel...> in the <header>. However, this is not how the xhtml examples link style sheets and I would like to know the reason why it is not working for me. Here is the html file:
3
1268
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 provides, cannot read elements of an xml file that contain xhtml. The reader does not return the text, if it contains a <td> tag, or a <font> tag etc. Below is my pseudo code I use to get the contents of the element. XMLTextReader reader =...
12
2415
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
5365
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, telling me that it should be: http://localhost:2063/Client/ViewReport.aspx?Ref=58&amp;Type=SUMMARY see: <http://www.htmlhelp.com/tools/validator/problems.html#amp>
0
9625
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9459
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10282
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10117
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9920
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7467
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5365
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4027
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3619
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.