± in html

C

Christophe

Dear,

How can you add a ± in html-code? Not by copying it from Symbols or
something.

Thanks in advance,
Bauters Christophe
 
M

Murray

YOu would do that by adding "±" or "&plusmin;" to the markup in the
place where you wanted it to appear.

(in case that doesn't come through properly, the first one is an ampersand
followed by "#177;" and the second one is ampersand followed by "plusmin;".
 
J

Jon Spivey

Kind of the same subject I wasted a lot of time last week trying to figure
out why this doesn't give the results you'd expect-
document.getElementById('yourPrice').innerHTML= '£' + someVar;
but this works
document.getElementById('yourPrice').innerHTML= '$' + someVar;
in case anyone else ever needs to do this the answer is
document.getElementById('yourPrice').innerHTML= '\u00A3' + someVar

Hope this saves someone else some time :)
 
P

p c

Not all browsers (e.g. earlier versions) will display the extended HTML
characters correctly. Sometimes the display of these characters is alos
affected by the operating system and the language settings of the web
server.

You just need to be aware of it and compensate for it if displaying
incorreclty can be a problem. I had pages display math symbols correctly
on my local machine but incorrectly when viewed on the server. The
alternative was to use combo symbols (e.g.<= for less than or eaul),
words or PDF.

...PC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top