473,513 Members | 4,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CASCADEand INHERITED properties in Explorer v Firefox

I'm currently trying to set up a webpage where 'visitors' can select their
own size text (over-ride my preferred settings so to speak). I used to use
a fixed font size (11px) but have now tried to set the body element to font
size 70% (see www.flackgenealogy.co.uk/test1.html) and leave all the other
main page element unstated (assuming they inherit the same 70% that the body
gives them).

It all displays fine in FIREFOX (including the (table) TD 'holder' that
displays all the TD content as the same required 70% font value.

HOWEVER - IE6 chooses to ignore the body 70% font size instruction in the
stylesheet and displays the TD content at 100%.

THEN - if I change the stylesheet to TD=70% (see
www.flackgenealogy.co.uk/test2.html) it corrects the IE6 display, but of
course messes up the FIREFOX display.

Has anyone any bright ideas how I can retain the stylesheet with a % size
font (or something similar) rather than revert to my fixed font sizes - so
my pages will be 'viewer adjustable' - and be virtually identical in both
browsers.

Thanks
--
Jim Flack
www.flackgenealogy.co.uk
Jul 21 '05 #1
7 2183
"Jim Flack" <ja********@earthlink.net> wrote:
I'm currently trying to set up a webpage where 'visitors' can select their
own size text (over-ride my preferred settings so to speak).


Your preferred text size needs to be entered in your browser's
configuration, you then enable the user's preferred text size on your
web site by specifying no body font size, or set it to 100%.

--
Spartanicus
Jul 21 '05 #2
Thanks Spartanicus, but I think I didnt explain my problem too well.

I am writing the webpage at fontsize 70% as thats the way I initially
want it to look. But if a viewer disagrees, then because its expressed
as a font %, then they have the opportunity to change it - so far so
good.

My point is that Firefox and IE6 seem to cascade/inherit their values
in a different fashion and stop me displaying the webpage in a
consistent fashion

A Firefox TD data cell acts as an information holder only and displays
the enclosed data at the body font setting - while IE6 seems to decide
itself to go back to 100% fontsize in their TD data cell and
completely ignore the 70% font I set in the CSS body statement.

I realise that the viewer can increase/decrease the font size in both
IE and firefox as long as I use a % fontsize - but the 2 browsers (both
modern I thought) interpret the same CSS and display the output in a
totally different fashion.

Maybe its just best to stick with my static (11px) font sizes until the
browser manufacters can agree on how to consistently display the same
set of CSS commands in their browsers (IE6 not suprisingly is the one
that screws it up). (If you view the intitial posted links I gave in
each browser you will see what I mean)

Jim

Jul 21 '05 #3
"Jim Flack" <ja********@earthlink.net> wrote:
HOWEVER - IE6 chooses to ignore the body 70% font size instruction in the
stylesheet and displays the TD content at 100%.

THEN - if I change the stylesheet to TD=70% (see
www.flackgenealogy.co.uk/test2.html) it corrects the IE6 display, but of
course messes up the FIREFOX display.


Use conditional comments (->google) to give Internet Explorer an
additional td rule.

BTW: Do you create a site to simulate a visual test? I have to bow
heavily towards the screen to read it.

Your 70% rule results in 6px fonts for me. Anything smaller than 9px is
really illegible. Just set it to 100%, and the Text in <p> will be
displayed in the font size I prefer.

Bye,
Martin
Jul 21 '05 #4
"jimflack" <ja***@jimflack.co.uk> wrote:
Thanks Spartanicus
What are you replying to? Quote a small relevant bit of what you are
replying to, insert a blank line and then put your reply *beneath* it.
, but I think I didnt explain my problem too well.
You explained it very well.
I am writing the webpage at fontsize 70% as thats the way I initially
want it to look.
And so it will if you follow my instructions.
But if a viewer disagrees, then because its expressed
as a font %, then they have the opportunity to change it
They shouldn't have to, and quite a few won't change it, they might not
know how to, you'd be surprised how many people simply leave if they
can't read the text.
Maybe its just best to stick with my static (11px) font sizes


That's even worse.

--
Spartanicus
Jul 21 '05 #5
Jim Flack wrote:

I'm currently trying to set up a webpage where 'visitors' can select their
own size text ... tried to set the body element to font
size 70% (see www.flackgenealogy.co.uk/test1.html) and leave all the other
main page element unstated
Don't set body text to such a ridiculously small size - it will look
like fly droppings to many people. Get rid of Verdana while you're at it
- if you stop using it, you'll be less likely to set such tiny sizes in
the first place. Search google for past discussions on Verdana.

If 100% still looks too large in your particular browser, then you are
the one who should change browser settings, not the visitor. Just reduce
your own default text size until 100% looks good to you.
IE6 chooses to ignore the body 70% font size instruction in the
stylesheet and displays the TD content at 100%.


This could be because your page is triggering IE6 quirks mode, not
standards mode. Get rid of the xml prolog if you want more predictable
rendering in IE6. Search google for more info on this.

BTW, you should probably be using a Strict DTD, not Transitional.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 21 '05 #6

Użytkownik "Jim Flack" <ja********@earthlink.net> napisał w wiadomo¶ci
news:t6****************@newsread3.news.atl.earthli nk.net...
I'm currently trying to set up a webpage where 'visitors' can select their
own size text (over-ride my preferred settings so to speak). I used to use a fixed font size (11px) but have now tried to set the body element to font size 70% (see www.flackgenealogy.co.uk/test1.html) and leave all the other
main page element unstated (assuming they inherit the same 70% that the body gives them).

It all displays fine in FIREFOX (including the (table) TD 'holder' that
displays all the TD content as the same required 70% font value.

HOWEVER - IE6 chooses to ignore the body 70% font size instruction in the
stylesheet and displays the TD content at 100%.

THEN - if I change the stylesheet to TD=70% (see
www.flackgenealogy.co.uk/test2.html) it corrects the IE6 display, but of
course messes up the FIREFOX display.


In IE table cells don't inherit font size from body (and AFAIK from any
parent element other than table/tr).
body { font-size: 70%; }
* html td { font-size: 70%;}

It will work fine for you, will do exactly what you want.
I don't think it will be good for your users... other posts in this thread
explain why, my 'solution' is an explanation of why does it happen, not an
advice to set my font-size to 70% of my defult 11px (I would get 7.7px
font).
Jul 21 '05 #7
On Tue, 21 Dec 2004 15:04:04 +0100, vatore <va****@wp.pl> wrote:
In IE table cells don't inherit font size from body (and AFAIK from any
parent element other than table/tr).


Unless you are talking about MSIE 6.0 after triggering Standards mode, of
course.

--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen

Jul 21 '05 #8

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

Similar topics

2
18391
by: Stefan Sch?rmeli | last post by:
I already read about several problems using firefox and the window.opener property. But obviously it didn't help out. So here is my problem: I got a "Search..." link which opens a new window with an FTP-browser. function popup(url,width,height){ var popupX = (screen.width/2)-(width/2); var popupY = (screen.height/2)-(height/2); var pos...
1
12272
by: Todd Cary | last post by:
In my previous post, I stated that some JavaScript I inherited does not work in Firefox but does work in IE 6 . I have now isolated a line where it fails in Firefox; the line with the property of "children". function InitMenu() { if (document.all) { } else
14
2496
by: catorcio | last post by:
I'm trying to have some text in my page changed by clicking a button. Googleing around I've discovered that innerText doesn't work with every browser, so I've switched to innerHTML. It works fine on IE and Opera, but nothing happens on Firefox (just updated to version 1.0.4). Any suggestions? Thanks in advance! C.
5
4617
by: Earl Teigrob | last post by:
Is there a way to rename the public properties of a inherited class? I am inheriting an asp.net control (class) and am adding addtional functionality. (in this case, up to 3 borders on an imagebutton control) I would like to change the name of the BorderColor property to InnerBorderColor because it would make more sense in the context of this...
2
6620
by: Paolo | last post by:
I imported a VC++6.0 project into VC++7.1. The conversion operation makes a mess with Preprocessor Definitions, adding a "$(NoInherit)" for each file. For example: I had a DLL project in VC++6.0 where the definitions were: _UNICODE,_DEBUG,_WIN32_DCOM,WIN32,_WINDOWS,_WINDLL,_AFXDLL,_USRDLL In VC++7.1, these are the preprocessor definitions...
5
10091
by: eholz1 | last post by:
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.
9
1983
by: =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post by:
I have a ASP .Net page that allows moving around items on the page through javascript. This page works fine in IE. In FireFox however, I have found that if the page is using XHTML 1.0 Transitional as the doctype, you cannot set the style.left and style.top properties of image or div tags. If you remove the doctype from the page it works...
11
11202
by: saril.ks | last post by:
Hi The JSON object I am using is as below . this object is returned after an AJAX call {"application" :} In the JS i am using the below code data = ajaxRequest.responseText ;
1
2556
oranoos3000
by: oranoos3000 | last post by:
hi i make a shopping online that in home page i show my product picture's to user (information product's such as address location of picture and name and the other properties is kept in database my programming language is php and my database is mysql) my problem is that my product pictures in Internet Explorer is shown correctly but in firefox...
0
7178
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...
0
7563
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...
1
7125
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...
0
7543
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...
1
5102
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...
0
3252
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...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
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
1
813
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.