I am having some issues with Firefox not rendering an element with the
correct font. I am using the font-family style within a stylesheet class
definition. I then set the element I am creating to use that class and the
font is not showing correctly. If I set the font-family to "arial" or
"Comic Sans MS" the font shows correctly, however I am trying to use the
"Webdings" font, which is installed on my computer. All fonts show
correctly using IE6. Any ideas?
..cartSlct
{
font-family:webdings ;
font-size:12pt;
cursor:default;
width:5%;
}
cellSlct=newRow .insertCell(-1)
cellSlct.append Child(winDVDCar t.document.crea teTextNode("4") )
The text should display as an arrow pointing to the right 12 18357
David wrote: I am having some issues with Firefox not rendering an element with the correct font. I am using the font-family style within a stylesheet class definition. I then set the element I am creating to use that class and the font is not showing correctly. If I set the font-family to "arial" or "Comic Sans MS" the font shows correctly, however I am trying to use the "Webdings" font, which is installed on my computer. All fonts show correctly using IE6. Any ideas?
.cartSlct { font-family:webdings ; font-size:12pt; cursor:default; width:5%; }
cellSlct=newRow .insertCell(-1) cellSlct.append Child(winDVDCar t.document.crea teTextNode("4") )
The text should display as an arrow pointing to the right
If you want a right arrow, use the proper HTML character entity, i.e.
'→' or '→'.
C A Upsdell wrote: If you want a right arrow, use the proper HTML character entity, i.e. '→' or '→'.
Well, the right arrow that I would LIKE to use is actually the HTML
character entity '⇒' or '⇒' but now IE has decided it doesn't
like that one and only displays a box. In addition, how would I put an HTML
character entity reference into my createTextNode statement, it doesn't seem
to interpret anything as anything more than text.
cellSlct.append Child(winDVDCar t.document.crea teTextNode("&rA rr;"))
How should this look? (sorry if this question should actually be posted
somewhere else, but since I started the topic here....)
David wrote: C A Upsdell wrote:
If you want a right arrow, use the proper HTML character entity, i.e. '→' or '→'.
Well, the right arrow that I would LIKE to use is actually the HTML character entity '⇒' or '⇒' but now IE has decided it doesn't like that one and only displays a box. In addition, how would I put an HTML character entity reference into my createTextNode statement, it doesn't seem to interpret anything as anything more than text.
cellSlct.append Child(winDVDCar t.document.crea teTextNode("&rA rr;"))
How should this look? (sorry if this question should actually be posted somewhere else, but since I started the topic here....)
The character entity IS text.
C A Upsdell wrote: David wrote: C A Upsdell wrote:
If you want a right arrow, use the proper HTML character entity, i.e. '→' or '→'.
Well, the right arrow that I would LIKE to use is actually the HTML character entity '⇒' or '⇒' but now IE has decided it doesn't like that one and only displays a box. In addition, how would I put an HTML character entity reference into my createTextNode statement, it doesn't seem to interpret anything as anything more than text.
cellSlct.append Child(winDVDCar t.document.crea teTextNode("&rA rr;"))
How should this look? (sorry if this question should actually be posted somewhere else, but since I started the topic here....)
The character entity IS text.
Ok, so since the character entity IS text, then that should mean that I
wouldn't need the quotes around it? When I leave it without the quotes I
start getting script errors in other places in my document, obviously a
result of taking it out of quotes. How should I go about creating a text
node with that value in it? Also, any ideas why IE6 won't display the
⇒ character but has no problems displaying the other one, → ??
Sorry for my ignorance on this topic, it is all kind of new to me.
On Tue, 19 Jul 2005, David wrote: Ok, so since the character entity IS text, then that should mean that I wouldn't need the quotes around it?
You're one step further away from what we usually discuss here, namely
some static HTML (or xhtml) with a stylesheet to propose presentation.
You're evidently generating something programmaticall y. How you do
that is your concern, I'm starting from the result of that program...
The important part, for the current discussion, is the HTML (it
defines the /content/), which makes it really off-topic for this
group, but I'm tackling the question where I found it, for now.
There are (potentially) three ways to represent a character: the coded
character itself, its numeric character reference &#number; (decimal
or hex), or, where available, a character entity &whatever;
If you decide which you prefer, and inject that with whatever software
it is that you're using, then the problem is solved, theoretically.
Also, any ideas why IE6 won't display the ⇒ character but has no problems displaying the other one, → ??
Possibly a font limitation. The single arrows are in MS WGL4, so
they'd likely be in any current MS font that offers a wide repertoire
of basically Western characters. The double arrow is not, however.
But it seems to work for me if I choose Lucida Sans Unicode as IE's
default font.
hope this helps a bit
Remark: In general in a web context you have no idea which fonts your
readers may have available. Even if you guess, there are different
versions of the same-named font that have different (sometimes very
different) repertoires. So you do better, in a situation where
unusual characters are needed, /not/ to try to influence their font
choice from a stylesheet.
"David" <dk****@hotmail .com> wrote: cellSlct.append Child(winDVDCar t.document.crea teTextNode("&rA rr;"))
Script elements contain character data, not parsed character data
(which may contain entites which will be parsed by the browser).
So you have to use Unicode to denote the character, "\u21D2" in this
case.
Make a post to comp.lang.javas cript, if you want to follow-up on this
subject.
Bye,
Martin
On Tue, 19 Jul 2005, Alan J. Flavell wrote: There are (potentially) three ways to represent a character: the coded character itself, its numeric character reference &#number; (decimal or hex), or, where available, a character entity &whatever;
I gather from other followups since, that the second and third options
aren't available to you in your particular context. Apologies if I caused
any confusion.
Alan J. Flavell wrote: On Tue, 19 Jul 2005, Alan J. Flavell wrote:
There are (potentially) three ways to represent a character: the coded character itself, its numeric character reference &#number; (decimal or hex), or, where available, a character entity &whatever;
I gather from other followups since, that the second and third options aren't available to you in your particular context. Apologies if I caused any confusion.
No problem, I was able to use the Unicode character code "\u21D2" to get the
character I was looking for, though I am disappointed that the character for
⇒ will not show up on IE6 under any font I try. Anyways, thanks to
all. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: yoni cohen |
last post by:
--I'm not a developer and am not very familiar with web design. But I
had a quick question about Firefox I had hoped you might be able to
answer. Thanks for your time and consideration!--
I just updated my blog template and am having a display
problem with Firefox. Some text -- but not all text -- appears really,
really small. See screenshots below.
Any time or suggestions you might have would be greatly appreciated!!!
My site is at...
|
by: news |
last post by:
I've a site: http://gto.ie-studios.net/products.php that looks
perfectly fine in Windows whether with IE or Firefox 1.0.
But when viewed in the Linux version of Firefox 1.0, images get
misaligned and breaks between then appear.
Why the two different behaviors on the same browser but different OS's?
Anyway, that page as an example DOES W3C HTML validate AND W3C CSS
validate as well.
So, there's no ERRORS per se, but I suppose there's...
|
by: mike |
last post by:
I have a page that uses a some javascript and it works fine in IE but
fails to work in Firefox. Basically what I'm trying to do is have 3
iframes on a page but only displaying one of them at a time. A button
is displayed for the two iframes that are not displayed and when the
button is clicked, the corresponding iframe is shown and the other two
are closed and buttons for the closed iframes are then displayed.
Firefox says basically...
|
by: news |
last post by:
I'm having a heck of a time, and I'm hoping someone can take a quick
look and see if they can recognize what might be the problem and point
me the right direction.
My blog page: http://www.celticbear.com/weblog/ looks fine in Firefox
and Opera, but in IE6, the main body block positions itself below the
left menu bar.
I've W3C validated the XML Schema, HTML, and CSS and fixed a couple of
errors and all three now give me a "valid"...
|
by: Aaron Gray |
last post by:
Hi,
I have some code I just cannot seem to get to work properly on FireFox. It
is probably something simple.
On FireFox the following code does not seem to terminate in the browser, but
it works fine on IE :-
http://angray.members.beeb.net/Test/Test5.html
| |
by: cbjewelz |
last post by:
Hey all.
So I'm having problems with cross browser alignments. I'm looking at Safari and Mozilla Firefox. I develop in Safari and so it looks perfect there however in Firefox my vertical alignments and div widths are off. It's as if firefox has a different definition of a pixel than safari. Here is the url: http://theprize.chemouni.com/testing.php. When you select the Option from the pull down, the first part of the form appears. Then when...
|
by: Xah Lee |
last post by:
Look at this page
http://xahlee.org/emacs/wrap-url.html
Look at it in Firebox, look at it in Safari, in Opera, and look at it
in Microsoft Internet Explorer.
The only fucked up case, is Firefox.
Namely, that it does not respect the font used when dealing with
«width:80ex».
The way to test this visually, is by this code:
<pre style="border:thin black solid;
|
by: Tyrone Slothrop |
last post by:
I recently converted a large site to Mambo. It has come to my
attention that Mac users (IE and Firefox browsers) cannot view the
content of the site, though they can view the navigation. Having only
Linux and Windows systems available, I cannot test and troubleshoot
the site to fix.
http://www.med-library.net/
The CSS validates (with lots of warnings) and there are only a couple
small HTML validation problems. There are no JS...
|
by: atarumorooka |
last post by:
Hello, yes..it must be hard to try and help someone else coding but
today is a full week of sadness and stress for IE CSS rendering and I
need your help.
Here you have a link that looks nice with Opera and Firefox but it
shows problems with IE6 (I've no idea with IE7):
http://www.fitcisl.it/fit/index.asp
Here I copy the css code with the hope that someone knows a hack so to
make it compatible with all the browsers.
Thank you!
Ataru
|
by: johnric |
last post by:
I can't seem to get firefox to read the image size in my javascript. It will work in IE and firefox but firefox will not read the image size. Can anyone see the problem in my code? I am new to programming and not very good at it yet.:
<HTML>
<HEAD>
<script language="JavaScript">
//-- Generate a random number between 0 and max.
function randomNum(max) {
var rNum=NaN
while (isNaN(rNum)) {
rNum=Math.floor(Math.random()*(max))
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |