473,770 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Text display differences in IE 6 vs. Firefox

Hello Group,

I am developing a web site using CSS. I have a div that has a vert
scroll bar in it. The div works just fine (scroll up and down, etc).
I have regular text (using <ptags) in the div, as well as an
unordered list - with 3 or 4 list items. The display of text in the
scroller div is just fine in firefox.

When I look at the same page using IE 6 - my li text is larger (font
size) than the text in the <ptags.

this happens only with ie 6. Is there some sort of "fix" that will
allow ie to have the same text display as firefox??? In my css i do
have this: but I think it just deals with the width of my divs (I
hope).
this is from my secondary css file
* html div#mainContent {
/* value for ie browsers width was 310*/
width: 310px;
/* value for MAC IE browsers */
w\idth: 290px;
}

I am using two css files, and a few lines of css in the document in
question.

I have this code in my "top" css file:
html body {font-size:small;}

I believe the rest of my css is "ok" since what I am doing is not
exotic - but I must be missing something between IE and Firefox.

Any suggestions,

Thanks,

eholz1

Dec 15 '06 #1
5 5900
eholz1 wrote:
I am developing a web site using CSS.
And the URL is?
I have a div that has a vert
scroll bar in it. The div works just fine (scroll up and down, etc).
I have regular text (using <ptags) in the div, as well as an
unordered list - with 3 or 4 list items. The display of text in the
scroller div is just fine in firefox.
Have you considered the usability impact of this sort of construction?
Although irrelevant to the problem at hand I would advise against
having scrolling regions within a page - I've never heard a user say
anything other than bad things about them.
When I look at the same page using IE 6 - my li text is larger (font
size) than the text in the <ptags.
Without being able to see the HTML and CSS for the entire page this is
very hard to debug. Post the URL.
this happens only with ie 6.
As opposed to what? IE5? IE 5.5? IE7? Mac IE5?
Do these all display the same as FireFox?
I have this code in my "top" css file:
html body {font-size:small;}
Several things,

1. IE<7 does not support the child selector so html>body is often
used to hdie styles from IE<7. But at least some of these browsers
treated it html body as html body and did apply the rule, so the
spaces around the should be omitted.

2. Depending on whether you trigger quirks or standards mode IE6 may
treat 'small' as the same as the browser default (i.e. it emulates IE5)
or as smaller than the default (as FireFox does).

3. Setting your body text size to something that is smaller than the
user's chosen default is probably a bad idea.

4. This shouldn't be able make li elements display larger than p
elements. Are you setting font-size anywhere else?

Without a URL there's not a lot than can be done.

Steve

Dec 15 '06 #2
On 14 Dec 2006, eholz1 wrote:
I have this code in my "top" css file:
html body {font-size:small;}
[ ] Hang
[X] Tar and feather
[ ] Tie to a horse and drive out of the town

Dec 15 '06 #3

Andreas Prilop wrote:
On 14 Dec 2006, eholz1 wrote:
I have this code in my "top" css file:
html body {font-size:small;}

[ ] Hang
[X] Tar and feather
[ ] Tie to a horse and drive out of the town
Don't forget they didn't post a URL either. Feathers are too good for
this one, lets break out the porcupine quills we had left over from
Andkon

Dec 15 '06 #4

Andreas Prilop wrote:
On 14 Dec 2006, eholz1 wrote:
I have this code in my "top" css file:
html body {font-size:small;}

[ ] Hang
[X] Tar and feather
[ ] Tie to a horse and drive out of the town
Don't forget they didn't post a URL either. Feathers are too good for
this one, lets break out the porcupine quills we had left over from
Andkon

Dec 15 '06 #5

Steve Pugh wrote:
eholz1 wrote:
I am developing a web site using CSS.

And the URL is?
As far as the url, no can do - this is a secured intranet web site -
and behind a firewall.
>
I have a div that has a vert
scroll bar in it. The div works just fine (scroll up and down, etc).
I have regular text (using <ptags) in the div, as well as an
unordered list - with 3 or 4 list items. The display of text in the
scroller div is just fine in firefox.
As far as the scrollbar - i concur with your thought, but the scroll
bar was requested by management (higher than me!).
Have you considered the usability impact of this sort of construction?
Although irrelevant to the problem at hand I would advise against
having scrolling regions within a page - I've never heard a user say
anything other than bad things about them.
When I look at the same page using IE 6 - my li text is larger (font
size) than the text in the <ptags.

Without being able to see the HTML and CSS for the entire page this is
very hard to debug. Post the URL.
this happens only with ie 6.

As opposed to what? IE5? IE 5.5? IE7? Mac IE5?
Do these all display the same as FireFox?
we are a mandated IE 6.0 house - there are a few macs, but do not
have a mac to test it on.
>
I have this code in my "top" css file:
html body {font-size:small;}

Several things,

1. IE<7 does not support the child selector so html>body is often
used to hdie styles from IE<7. But at least some of these browsers
treated it html body as html body and did apply the rule, so the
spaces around the should be omitted.

2. Depending on whether you trigger quirks or standards mode IE6 may
treat 'small' as the same as the browser default (i.e. it emulates IE5)
or as smaller than the default (as FireFox does).

3. Setting your body text size to something that is smaller than the
user's chosen default is probably a bad idea.

4. This shouldn't be able make li elements display larger than p
elements. Are you setting font-size anywhere else?

Without a URL there's not a lot than can be done.

Steve
I will check some of the other suggestions

Dec 15 '06 #6

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

Similar topics

8
1705
by: Cool Guy | last post by:
I'm converting my table-layout style HTML site to a mainly CSS one and have run into a little problem with IE. Here is a demonstration screenshot of the problem: http://tomjb.com/misc/problem.png Basically, when the text in my 'div' wraps around, it goes too far left in IE. This doesn't happen in Firefox.
2
3222
by: RobG | last post by:
Why does Firefox insert #text nodes as children of TR elements? As a work-around for older Safari versions not properly supporting a table row's cells collection, I used the row's childNodes collection as it was pretty much exactly the same thing. However, in Firefox 1.0.7 text nodes are inserted between the TDs. I'm certain that this didn't use to happen with older versions. The HTML specification states that the only element that...
7
3271
by: Eric Lindsay | last post by:
I would like to do a photo gallery with a liquid layout. I wanted to center a caption below each photo (or above each photo). I can do that easily with tables, but then I don't have a liquid layout. Besides, I wanted to try to do it with CSS. I can do centered captions with text-align. This works provided the element containing each photo is floated left. I have found several examples of how to do this. However I didn't want the...
10
3522
by: Eric Lindsay | last post by:
This may be too far off topic, however I was looking at this page http://www.hixie.ch/advocacy/xhtml about XHTML problems by Ian Hickson. It is served as text/plain, according to Firefox Response Headers - http://www.hixie.ch/advocacy/xhtml Date: Wed, 23 Nov 2005 21:36:06 GMT Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e Vary: Accept-Encoding,User-agent
4
5624
by: drew197 | last post by:
I am a newbie. I am editing someone elses code to make it compatible with Firefox and Safari. In IE, when you click on the proper link, a block of text is shown in a nice paragraph form. But, in FireFox and Safari it appears as a narrow column of text with only 2-3 words per line. Here is the code: function showAll()
14
4032
by: Roger Withnell | last post by:
How to I find out what size text the browser is set to? Thanks in anticipation.
3
2134
by: JaRudzik | last post by:
Hello Try to add some blank text field and refresh window in IE it is ok but in firefox input hide_show works wrong , why ? Somebody can help me ? I'm not good in JS beacause I'm PHP coder The completly code (mix of PHP and JS):
11
8083
by: jimstruckster | last post by:
I have a table with 10 rows, I want all rows except for the first to be hidden when the page first opens up. If the user puts a value in a text box in the first row then I want the second row to display. If they put a value in the text box in the second row then display the third row etc. etc. etc. to 10 rows. I'm pretty new to javascript, so I'm not to sure where to start. Any help would be great, thanks a lot.
1
4222
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being aligned to the top, along with the slideshow and link buttons, you have to scroll down to see the text - how can I make IE6 display correctly? http://geekarama.co.uk/new_home.html here is the code for new_home.html and following that the CSS...
0
10260
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
10102
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...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
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
6712
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
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.