473,473 Members | 4,297 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IE 6 displays larger font size in div element that Firefox

Hello ,

I have a web page that has a div element, with css applied to that
element.
Within the div is an ul with li tags, etc. the displayed font size in
IE is larger than the the font size in
firefox. Needless to say the code for the page in question is the
same.

I would like to font size to be the same for both browsers.
Here is a snippet of the code that creates the div element and its CSS.

Note i load this code into the page using the XHTTPRequestObject - aka
Ajax
the page name "systems.php" and the <div id="test">page code goes
here</div>

So i create the "Copy" div within the "test" div.

Page Code:
<div id="Copy">
<p>Company functions for Systems.</p>
<p class="warning">PRINCIPAL TASKS:</p>
<!--BLOCKQUOTE-->
<p>Advanced planning, systems engineering and integration, readiness
verification, technical oversight of contractors, and anomaly
resolution.</p>
<!--/BLOCKQUOTE-->
<p class="warning">CORE CAPABILITIES:</p>
<ul>
<li><em class="warning">Launch certification</em>,
including validation of flight vehicle processing and
certification for flight.<br>
&nbsp; </li>
<li><em class="warning">System of Systems Engineering</em>,
encompassing architecture, planning and development,
and modeling
and simulation.<br>
&nbsp; </li>
<li><em class="warning">Systems Development and
Acquisition</em>, including requirements analysis and
evaluation, and risk and
performance assessment.<br>
&nbsp;</li>
<li><em class="warning">Process Implementation</em>,
includes MILSPEC and standards reform and critical process
evaluation.<br>
&nbsp; </li>
<li><em class="warning">Technology Application</em>,
notably assessment of technology opportunities,
alternatives, and risks.</li>
</ul>
</div<!-- end copy div-->

the CSS for the Copy div is on the main page (intro.php). I use a
couple of other style sheets, as you can see, but changing the order
(who is first, etc) does not seem to change anything.
I do not override any ul or li tags in the other style sheets (I
think), there are ul and li tags in the other style sheet, but they are
associated with id tags: #header ul li { mystyle: nice; }, etc.

<style type="text/css" media="all"@import "css/v5.css"; </style>
<link rel="stylesheet" type="text/css" href="css/testmain1.css" />
<style type="text/css" media="all">
<!--
#Copy {
text-align: left;
margin: 0px 0px 0px 0px; /*top right bottom left*/
padding: 0px 0px 0px 6px; /* noted inconsistencies between */
/* browser types so be careful and
test */
display: block;
border-left: 1px solid #CCCCCC; /* can turn off borders when
appropriate */
border-bottom: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
border-top: 1px solid #CCCCCC;
overflow: auto;
height: 352px; /* set as necessary; can also set width to fixed
width */
width: auto;
vertical-align: top;
font-size:small;
text-decoration:none;
}
#Copy li {
font-family:Verdana, Arial, Geneva, sans_serif;
font-size:100%;
}
-->
</style>

Any suggestions or observations will be appreciated,

Thanks,

eholz1

Jan 8 '07 #1
5 10087
eholz1 wrote:
I have a web page that has a div element, ...
I would like to font size to be the same for both browsers.
Here is a snippet of the code that creates the div element and its
CSS.
Please post the URL to the page with the problem. There is too much
missing from your snippet to make any kind of educated guesses.

--
-bts
-Motorcycles defy gravity; cars just suck
Jan 8 '07 #2
VK

eholz1 wrote:
Hello ,

I have a web page that has a div element, with css applied to that
element.
Within the div is an ul with li tags, etc. the displayed font size in
IE is larger than the the font size in
firefox.
<snip>
font-size:small;

<http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/fontsize.asp>
....
The property has a default value of medium. The Cascading Style Sheets
(CSS) attribute is inherited.

Remarks
As of Internet Explorer 6, when you use the !DOCTYPE declaration to
specify standards-compliant mode, the default value for this property
is small, not medium.

That's the first place to check.

Jan 8 '07 #3
eholz1 wrote:
>
I have a web page that has a div element, [...] the displayed font size in
IE is larger than the the font size in firefox.
the CSS for the Copy div is on the main page (intro.php). I use a
couple of other style sheets, as you can see,
but which we can't see :-(
but changing the order
(who is first, etc) does not seem to change anything.
I do not override any ul or li tags in the other style sheets (I
think), there are ul and li tags in the other style sheet, but they are
associated with id tags: #header ul li { mystyle: nice; }, etc.

<style type="text/css" media="all"@import "css/v5.css"; </style>
<link rel="stylesheet" type="text/css" href="css/testmain1.css" />
<style type="text/css" media="all">
#Copy { font-size:small; }

There's no requirement expressing how big a browser should render
font-sizes like this. Every browser maker can decide something
different, and also change their implementation with every version,
patch, or service pack.

You didn't mention which versions of the browsers mentioned you were
seeing this in. You also didn't say what you saw in Opera, Safari,
Konqueror, etc.

Depending on the font, browser, system, phase of the moon, etc., the
displayed size can be affected by rounding limitations. Maybe you're
bumping into something there.

What defaults are you using in each browser? In IE, the setting under
View|Text Size|Whatever might be Medium (the default as installed, I
believe), or it may be something else. In FF, a flick of the scroll
wheel on a mouse can bump the apparent text size up or down. Check your
test-browsers for adjustments you may have made.

How much is the difference displayed between the browsers? How (easily)
can you tell? And most important of all: does it matter? Trying to get
every browser to display every element exactly the same is not a very
product pursuit. As long as the page is functional (and looks reasonably
good in each separate browser), your work is done. BTW, I find "small"
to be a bit, well, small for me to see. I'd have to bump it up anyway.*

I'm not aware of text display sizes being affected by quirks mode
rendering, but an URL would have shown us what doctype you're using
(among other things). There are also inheritance oddities for texts
within tables (although it doesn't look like that's your situation).

As BTS said: no URL; no educated guess. So I give you: *uneducated*
guesses. ;-)

HTH
--
John
Jan 8 '07 #4
Thanks for the tips. sadly the url is behind a secure firewall, and
intranet based only.

BUT - the tip about !DOCTYPE and IE (6.)) and the font-size attribute
helped out.
I deleted the font-size setting from the #Copy style, and set the
percentage for
the font for ul and li tags to 90%. I also added the ul tag to my
style def where the
#Copy li was, now is "#Copy ul li { font-size:90%; }

This seems to work fine with both browsers (IE 6.0, and Firefox 2.0)

Thanks again,

You group members are not as polite as those in comp.lang.php, but you
are just as skilled!!! :)

eholz1

VK wrote:
eholz1 wrote:
Hello ,

I have a web page that has a div element, with css applied to that
element.
Within the div is an ul with li tags, etc. the displayed font size in
IE is larger than the the font size in
firefox.
<snip>
font-size:small;


<http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/fontsize.asp>
...
The property has a default value of medium. The Cascading Style Sheets
(CSS) attribute is inherited.

Remarks
As of Internet Explorer 6, when you use the !DOCTYPE declaration to
specify standards-compliant mode, the default value for this property
is small, not medium.

That's the first place to check.
Jan 9 '07 #5
eholz1 wrote:
Thanks for the tips. sadly the url is behind a secure firewall, and
intranet based only.
Yes, secure firewalls make me sad. They're the worst kind.
>
BUT - the tip about !DOCTYPE and IE (6.)) and the font-size attribute
helped out.
I deleted the font-size setting from the #Copy style, and set the
percentage for
the font for ul and li tags to 90%. I also added the ul tag to my
style def where the
#Copy li was, now is "#Copy ul li { font-size:90%; }
90% of my preferred font-size? Wottsamatta? You don't like old people
using your site? Don't want 'em to see your stuff? Or is it because
you've suggested the rather-wide font Verdana as a first choice?
>
This seems to work fine with both browsers (IE 6.0, and Firefox 2.0)
Yay!
>
Thanks again,

You group members are not as polite as those in comp.lang.php, but you
are just as skilled!!! :)
You're welcome, And thank you for the compliment. I guess. What is it
about c.l.php that makes them so much more polite? Do they genuflect
over there or what? ;-)

Wishing you, dearest Appellant, the most productive and in all ways
successful continuation of your noble endeavors, on behalf of all other
newsgroupers and -groupees on c.i.w.a.s and other sites you may feel so
inclined to grace with your presence ('cause we *love* presents), I
thank you for bringing this fascinating query to our attention, and wish
you, further, a pleasant day. I remain, your most humble servant, etc.

--
John
(Politely ignoring the fact that the query was about an intranet and not
the www)
Jan 9 '07 #6

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

Similar topics

7
by: gino | last post by:
Dear all, My monitor was set to 1600x1200 so the fonts in IE is too small for me even when I set the "View->Text Size->Largest"... I don't have previlage to change the monitor resolution... ...
3
by: Matej Cepl | last post by:
I know about element.style.fontSize, but it seems to work here (with Mozilla Firefox 1.0.6) just only when the fontSize was set via CSS. Can I get somewhere current size of the font in the actual...
16
by: JD | last post by:
Hi guys What's the best way to specify font size using CSS? I try to avoid absolute units like pt and px because then users can't resize the fonts in IE, but % and em are a complete pain to use...
4
by: Andreas Borutta | last post by:
Hi, what is the task with which I could not cope? There is a link with an inline-element (strong e.g.) inside. It has a higher font-size than the content of its parent. For the hover effect...
30
by: Takehiko Abe | last post by:
I have a <pelement with <ttinside: ;;; <p>A paragraph contains <tt>tt element</tt>.</p> I would like to set the font-size of the TT to the same as the containing <p>. This does not seem to...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
3
by: coyttl | last post by:
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...
32
by: rfox | last post by:
When viewed in several different browsers, both Mac and PC, my fonts are consistent in size -- EXCEPT when viewed in IE7. In IE7, the fonts appear larger. Is there a way to ensure consistency in...
0
by: ll | last post by:
I'm working with 'pure ASP upload' script which is designed to redirect to an alert/error message, should a file larger than the set limit be attempted to be uploaded. The problem is that, while...
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
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,...
1
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
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...
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.