Forum Moderators: open
I use "¦" as decoration between global navigation links.
Is there a symbol like "¦" that all browsers are happy with, please, Experts?
(Here, the vertical is shown as one vertical above another. I'm referring to the symbol that resembles a lower case san serif "L".)
I was thinking that perhaps developers use a decoration like this that they know will work across the range of browsers, and perhaps they would reveal what it is.
This is where I am using it ...
$result = @mysql_query("SELECT
IF(Named NOT LIKE 'Search',
(CONCAT('<li> <a href=\"', Link, '\">',
Named, '</a> <font color=\"#CCCCCC\"> ¦ </font> </li>')),
(CONCAT('<li> <a href=\"', Link, '\">', Named, '</a> </li>')))
AS gn
FROM globalfront
ORDER BY id"
);
Verdana is the font. I'll try your suggestion for the box drawing, and many thanks for it. Be most grateful for a look at how you do your horizontal menu separators.
Many thanks,4hero, for your help. Doesn't work for me, unfortunately. But it must be a problem every developer faces ... everyone uses global menus, after all.
I have regularly used the solid line straight from the keyboard for menus, and have never had any problems with it appearing differently in browsers.
The symbol is above the slash next to the Z key. Oddly, keyboards seem to get this wrong, and show the broken line instead. While the solid line shown on the key next to the 1 gives a broken line!
But in Firefox and Mozilla, the solid pipe/vertical/upright appears in as an upright with a degree sign beside.
A nuisance, because there's no disguising that it is a fault.
What I had presumed, Hester, was that others had suffered this problem and had found a way round it.
However, I've also used the "¦" thing just fine (in fact, I'm using it on a couple of sites right now) and it works fine in Mozilla.
I'm wondering something - could it be your editor? I know when a client sends me content to copy and paste into their site, sometimes they send it to me in RTF or Word format (I require text-only format for this exact reason) - when the stuff is sent in a rich-text format, then the symbols are usually replaced, and it causes weird characters to show up when I copy and paste. Then I have to go through and pick and find to fix the errors.
Is it possible that your HTML editor (or wherever the source of your code is) was sent/uploaded in RTF format, and not a text-only format (using Notepad)? If so, that may be your culprit - many times when that happens, in IE it seems to be fine, but standards-compliant browsers will show the weird characters instead.
Just a thought :)
I use dreamweaver, and I've been using the recommended &-prefixed symbols too. There's a slight variation when I use the &-code for the symbols, but still a fault. And the fault is distinct. I get the vertical, in the colour of choice, but I also get a black degree symbol - either beside the vertical or on top, but never in such a position that I could pretend it's intentional and very aesthetic.
Thanks very much for your observations. Cheers, doodlebee
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> You can also set the encoding using PHP before the page is output.
When you validate a page of XHTML it will tell you if no encoding was found.