Web Design Help
It's free to register, to post a question or to start / join a discussion
Displaying "fractions" in browser pages
Likes # 0
Posted January 6, 2010 at 3:30PM
I've always used ¼ (alt0188) and ½ (alt0189)in titles in my gallery pages, but have only just noticed they no longer display properly.
It's the same in Firefox & IE.
I've noticed odd characters on pages in other web sites before, but did not know what they were.
Is there any way round this or do I have to revert to 1/2 for half an 1/4 for quarter?
Tried a few searches last night, but couldn't make much sense of what I was reading - perhaps somebody could explain in simple terms for me?
g-g
Likes # 0
Posted January 6, 2010 at 9:23PM
Thanks Eric10, I did try it with the ; but result was the same.
Maybe I'm causing confusion in this, I'm using a Coppermine photo gallery and the fraction is part of the descriptive text, so is not actual .html code.
I also have a phpbb forum which uses fractions & they seem to display correctly. This was also recently transferred to the same host as the gallery.
I looked at the 1/4 fraction on a different computer with Firefox and there were letters within the square, looking like:-
FF
FD
Likes # 0
Posted January 6, 2010 at 7:52PM
The final semicolon is an important part of the html codes and they don't work without it.
e.g. & frac14; NOT & frac14
Likes # 0
Posted January 6, 2010 at 5:38PM
?
More about the above character, in IE it is the outline of square, in Firefox it is a white question-mark on a black diamond.
Spooky!
Likes # 0
Posted January 6, 2010 at 5:35PM
?
The above is the character that has replaced my ¼.
I tried & frac14 (without the space) also & # 188 (without spaces) but neither worked.
Then, stupidly I thought at the time, I replaced that character above with my usual "alt 0188" and it worked, the quarter is displayed correctly again.
Just wondering if something funny happened when I changed hosts.
Any ideas how I can search my photo gallery for all occurrences of that character? Entering it in the search field gives no matches.
g-g
Likes # 0
Posted January 6, 2010 at 4:54PM
Thanks beynac.
I'll have a go at that later on. Not sure if I've dozens or hundreds of them to alter. Unfortunately it's not a "search & replace" type of operation to sort this problem.
g-g
Likes # 0
Posted January 6, 2010 at 4:06PM
The code converted when I posted. I'll repeat iy with spaces.
1/3 use '& frac14;'
1/2 use '& frac12;'
3/4 use '& frac34;'
Remove the spaces after the ampersand.
Hope this works!
Likes # 0
Posted January 6, 2010 at 4:04PM
You could use the following 'special characters':
1/4 use '¼'
1/2 use '½'
3/4 use '¾'
Reply to this topic
This thread has been locked.
Check out PC Advisor's other tech forums
Top 5 Most Popular
-
New Xbox One release date, specs, features and price in UK
-
Samsung Galaxy S4 vs Apple iPhone 5 comparison review
-
Galaxy S4 vs BlackBerry Z10 comparison review - which is best, the Samsung or the BlackBerry?
-
Best cases and covers for the new iPad: protect your tablet in style
-
What’s the best mobile OS: iOS, Android, Windows Phone 8 or BlackBerry 10?



