473,807 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why does stylesheet directive not work with FireFox?

Firefox will not take the following "font-weight:bold" directive in my
stylesheet. Works fine in IE.

#rightMenuText h5 {
font-weight:bold;
padding-bottom:0px;
padding-top: 10px;
margin-bottom:0px;
}

If you view http://www.clearpointsystems.com in both FF and IE you can see
difference. I've been trying different things, but can't seem to get the
bold font. Is there something wrong with my code? Or is this another quirk
with FF vs. IE?

Here's the (abbreviated) code:

<div id="rightMenu" >
<div id="rightMenuBo dy">
<div id="rightMenuTe xt">
<p>[image]</p>
<h5>Welcome to CSI</h5>
[text]
<h5>Big News!</h5>
[text]
<h5>Security Matters</h5>
[text]
<h5>[more headings]</h5>
[more text]
Jul 21 '05
19 9295
deko wrote:
I wrote:
In any case, why are you using a level five heading at that point?
What happened to h1 to h4? I'd expect these to be nested before a
recourse to h5.
I thought I might use those other <h> tags somewhere else, so I
picked one that I thought I would not use. Does it matter what it is
if I redefine it?


Not in terms of how it will appear in a browser following your styles,
however... firstly, some won't; secondly, html is much easier to
interpret if the available elements are used to mark up your content's
structure as appropriately as possible & hence are used to convey as
much information about the document structure as possible.

If when you need an h<x> you arbitrarily choose the <x>, you lose the
chance to use that number to tell the reader something specific /about/
the heading required at that point.

By sticking to having a single h1 per page & thereafter ensuring h2 to
h6 are nested in that order, the h<x> at any point now reflects the
degree of subdivision of a document, iyswim?

eg

h1
h2
h2
h3
h4
h3
h4
h2
I thought it was better to us px. That's news to me if it's bad(tm).
Why?


I see others have commented on this ;)

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 21 '05 #11
> You *will* "stop using px" whenever I need to read your page, no
matter what you put into your stylesheet. The harder you try to do
the wrong thing, the greater the probability that the reader will have
to out-vote you. And on the WWW the reader always gets the last word.


This whole argument hinges on one question: Should users be allowed to
adjust the font size in a web page? As long as you don't make things too
small, I don't think its an issue. Folks with poor eyesight will probably
have a monitor resolution setting that accommodates their needs anyway,
without having to adjust font sizes in web pages.

Still, what you've not so eloquently argued is that, yes, people should be
able to adjust the font size in a web page. But you also seem to be saying
that you *will* override my settings if use px. So what difference does it
make? Is it harder for you to adjust the font size when I use px?

I looked for alternate font sizes recently as I was authoring another page.
The code completion feature in Dreamweaver - when coding a stylesheet -
lists font-sizes in px-denominated values and also "large" and "small". I
didn't see any other options in the drop-down list. Call me lazy, but I
didn't look for alternate sizes beyond that.

I can't say I've found anything persuasive enough on Stephen Poley site, or
in your rant, to change something that's been working so well for so long.
Jul 21 '05 #12
On Sat, 19 Mar 2005, deko wrote:
This whole argument hinges on one question:
Not at all.
Should users be allowed to adjust the font size in a web page?
In our jurisdictions it's illegal to even /try/ to stop them - even
though the attempt is futile, because, in a WWW context, the user
always has the last word anyway.
As long as you don't make things too small,
The author can have no idea what's "too small" for each reader.
Only the reader knows that. Once you've managed to grasp that idea,
everything else falls into place.
I don't think its an issue.
(oh yes you do, or you wouldn't be arguing on this thread.)
Folks with poor eyesight will probably have a monitor resolution
setting that accommodates their needs anyway,
Eh? When readability is an issue, it's best to set the resolution as
high as the display can naturally accommodate, and zoom the material
to suit.
Still, what you've not so eloquently argued is that, yes, people
should be able to adjust the font size in a web page.
Erm, I've merely pointed out that some people /will/ adjust it if they
need to. That's a fact, not an opinion. My *opinion* is that it's a
good idea to take the facts into account when deciding on one's
authoring style. The flexible style of authoring is the one which
best fits the facts.
But you also seem to be saying
that you *will* override my settings if use px.
My normal browser (Mozilla) configuration (for the 135dpi desktop
settings) - when I'm not being asked to critique a page's design -
sets a minimum font size of 15px, so yes, if you ask for anything less
you won't get it. (On the laptop it's 13px).
So what difference does it make? Is it harder for you to adjust the
font size when I use px?
For me, "no": for the majority of MSIE users, "yes".

I'm just trying to guide you to an understanding that asking for
something that's inappropriate to a proportion of your users - trying
to rely on them overriding it (they aren't all as well-informed about
their browser's capabilities as I am, after all) is quite unnecessary,
when there's a size unit (100% or 1em) that achieves its intended
purpose for all of them.
I can't say I've found anything persuasive enough on Stephen Poley
site, or in your rant, to change something
It's OK: your inflexible approach to this topic has been clear from
the start. My participation here wasn't intended for you, it was for
anyone reading this thread who is willing to consider what they're
really doing.
that's been working so well for so long.


If you say so. Bye.
Jul 21 '05 #13
On Sat, 19 Mar 2005 06:06:55 GMT, "deko" <de**@hotmail.c om> wrote:

[Alan J. Flavell wrote...]
You *will* "stop using px" whenever I need to read your page, no
matter what you put into your stylesheet. The harder you try to do
the wrong thing, the greater the probability that the reader will have
to out-vote you. And on the WWW the reader always gets the last word.
This whole argument hinges on one question: Should users be allowed to
adjust the font size in a web page?


Yes of course!

If I invite a guest into _my_ house I have the right to expect the guest
to accept and follow my house rules.

If I invite your web pabe into _my_ browser I have the right to expect
your page to accept and follow my browsers house rules.

In either case the soultion is simple;

[an invited guest | your web page] breaks my house rules?
then expect to be kicked out in the cold.

[...]

--
Rex
Jul 21 '05 #14
> If I invite a guest into _my_ house I have the right to expect the guest
to accept and follow my house rules.

If I invite your web pabe into _my_ browser I have the right to expect
your page to accept and follow my browsers house rules.

In either case the soultion is simple;

[an invited guest | your web page] breaks my house rules?
then expect to be kicked out in the cold.

Jul 21 '05 #15
> >This whole argument hinges on one question: Should users be allowed to
adjust the font size in a web page?


Yes of course!

If I invite a guest into _my_ house I have the right to expect the guest
to accept and follow my house rules.

If I invite your web pabe into _my_ browser I have the right to expect
your page to accept and follow my browsers house rules.

In either case the soultion is simple;

[an invited guest | your web page] breaks my house rules?
then expect to be kicked out in the cold.


I'm not sure that's the best analogy. I don't want my page to be 'invited
into a browser'. I want my audience to be able to read the content and use
the resources available on my page. In this way it's like a book or a
magazine. Not everyone can read regular size print. But most people can.
Of course I want to accommodate as wide an audience as possible, and I think
it's a good idea to have adjustable font sizes, but that's something the
browser should do. From a web programmer's perspective, I want a reliable
standard to code against. I don't want Firefox to render things one way, IE
another, and Opera a third. But that's what we have today and that's why
developers are hanging on to px as a standard. My guess is px will remain a
standard and the folks who make the browsers will learn how to adjust it.
Only time will tell.
Jul 21 '05 #16
deko wrote:
This whole argument hinges on one question: Should users be allowed to
adjust the font size in a web page? As long as you don't make things too
small, I don't think its an issue. Folks with poor eyesight will probably
have a monitor resolution setting that accommodates their needs anyway,
without having to adjust font sizes in web pages.

I can't say I've found anything persuasive enough on Stephen Poley site, or
in your rant, to change something that's been working so well for so long.


Flavell is not ranting. He is giving you good, solid advice. Listen to
him ... and all the others who offer similar advice. Or don't listen to
him, and let your clients wonder why they are losing visitors.

Jul 21 '05 #17
deko wrote:

I'm not sure that's the best analogy. I don't want my page to be 'invited
into a browser'. I want my audience to be able to read the content and use
the resources available on my page. In this way it's like a book or a
magazine. Not everyone can read regular size print. But most people can.
A web page is not a page from a book. Pages in books have fixed sizes,
with fonts of fixed sizes. Web pages are far more flexible: you have
opportunities with web pages that you don't have with books, including
the ability to offer each reader their choice of page and font size.

Another point is that you delude yourself if you think that you can
control font sizes. In the first places, some browsers (e.g. Firefox)
let the user easily resize your text, even if you specify sizes in
pixels. In the second place, 12px on one display is not necessarily the
same size as 12px on another, so what may be just right for you may be
too large for some, and too small for others ... and might badly break
your site.

And why do you harp on the issue that most people can read regular-size
print? So what? Most people in the US are white, but does that mean
that it is okay to disregard those who are not? The web is much more
diverse that you appear to realize.
Of course I want to accommodate as wide an audience as possible, and I think
it's a good idea to have adjustable font sizes, but that's something the
browser should do. From a web programmer's perspective, I want a reliable
standard to code against. I don't want Firefox to render things one way, IE
another, and Opera a third.


Who are you building your sites for? You, or your clients' visitors?
If you are building a site just for yourself, then fine, go ahead and
try to get total control over page appearance. But if you are building
your sites for your clients' visitors, then you have to serve their
needs, not your wants.

Jul 21 '05 #18
deko wrote:
You *will* "stop using px" whenever I need to read your page, no
matter what you put into your stylesheet. The harder you try to do
the wrong thing, the greater the probability that the reader will have
to out-vote you. And on the WWW the reader always gets the last word.

This whole argument hinges on one question: Should users be allowed to
adjust the font size in a web page?


That's like asking if a person reading a book should be allowed to use a
magnifying glass if the print's too small for him to read it without
one, or if he should be allowed to have someone else read the text to
him without also telling him how the text is arranged on the page or
what kinds of borders are used.

As long as you don't make things too small, I don't think its an issue.


Have you never met people who blow text up to characters a centimeter or
larger in order to be able to read them? Have you seen how large the
print is in large-print books published for the visually impaired?
Jul 21 '05 #19
deko wrote:
I don't want my page to be 'invited
into a browser'. I want my audience to be able to read the content and use
the resources available on my page.


They won't if they can't, or if it's more trouble for them than it's
worth. Isn't that obvious?
Jul 21 '05 #20

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

Similar topics

4
11263
by: Al Dykes | last post by:
I'm playing around with FireFox and RSS for the first time and I'm getting this error "This XML file does not appear to have any style information associated with it. The document tree is shown below." There is a "use this style sheet" entry in the properties for RSS that is blank in the fresh install (XP). I've tried putting the path for a couple of the .css files in the crome folder, with no success.
12
3706
by: Tony Carnell | last post by:
Hi, Here's a conundrum that I hope someone out there can help me solve. I've created a page to XHTML 1.0 Transitional / CSS standards using Macromedia Dreamweaver MX 2004 (and validated both with no problems). Whilst creating the page I've previewed it in IE 6, FireFox 0.8 and Opera 7.21 on my PC and the page displays perfectly (well, as perfectly as IE's implementation of CSS will allow!)
14
24244
by: David Blickstein | last post by:
I have some XML documents that I want to open in a web browser and be automatically translated to HTML via XSLT. I'm using an xml-stylesheet processing command in a file called "girml.xml". This all works in Internet Explorer, but doesn't work with Firefox. In both IE and Firefox this works: <?xml-stylesheet type="text/xsl" encoding="UTF-8" href="makehtml.xslt" version="1.0"?>
3
3308
by: gdelfino | last post by:
I have an XML file which I transform into XHTML using stylesheetA.xsl. I also have stylesheetB.xsl which transforms my XML file into an Excel XML document. As both Excel and most new browsers have a built in XSTL engine, I decided to add the stylesheet information to the original XML file. Like this <?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml-stylesheet href="stylesheetA.xsl" type="text/xsl" media="excel"?>
3
5516
by: juergen.riemer | last post by:
Hi all, I have a problem in attaching an external stylesheet to a newly created iframe in Firefox (1.5.0.2). If I use the code below (with a relative address to the file) the stylesheet would not be applied. I have to indicate the absolute path: var uriStylesheet = "http://localhost:8080/panel/styles.css"; to make it work in Firefox. NB: if I try to attach the external stylesheet to the topmost body (the
2
2896
by: Jim Carr | last post by:
Upon entering the site www.FutureByDesign-Music.com with IE6, my clipboard is erased and then disabled in all other Windows XP applications. Navigating to another site returns clipboard functionality, but whatever was on the clipboard before is lost. If I disable running JavaScript on the page, the clipboard is unaffected. Viewing the page in Firefox does not have this issue. I think it might be the script below, which makes no sense...
4
7725
by: th1421 | last post by:
Hi, I'm new to FireFox. I am currently trying to convert my website to be compatible with it. Doing so I’m trying to process some XML/XSLT pages (preferably without using JavaScript). When I view my XML pages using IE 6 or 7 it displays beautifully both accessed locally as through HTTP on my ISP’s server where I put them using FTP. When I view them in Mozilla FireFox 2.0, it displays ok when accessed locally. The CSS presentation –...
8
2336
by: Mark Shroyer | last post by:
I just completed a new design for a personal web site. After finishing the basic CSS stuff and double-checking it in Safari, FF, Opera, et al., I put on my war paint and fired up IE7 to figure out what kind of hacks I'd have to apply. Delightfully, IE7 only needed four or five tweaks this time around... But next I opened the test page in my IE6 VM, and it took me a few seconds to even realize what the heck I was looking at. I could...
6
2561
by: _Who | last post by:
I use the code below to change to a style sheet that has: body { ....
0
9719
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
10624
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
10371
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
10374
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
9193
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
7650
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
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.