be*******@calibrand.com wrote:
Hi,
Hi, yourself. Before we get started, you should know that c.i.w.a.s has
a bit of a reputation for being rough on newbies, so there's a chance
some pushy S.O.B. will flame-broil your posts here. But you probably
know that already, since you've been lurking in the NG for some time and
have looked through older posts, like we're all supposed to do.
Fortunately for you, a lot of regulars killfile posts from Google
groups, so maybe you won't get noticed right away.
But I've noticed you. Here what I hope will be helpful words for you.
I see you made two posts, one "answering" the other. It's customary when
replying to include some bit of the previous post, to provide context
for your answer. Not everybody will see both posts. But it's also
customary to provide an URL, and not to post huge chucks of code. I
doubt anyone with any sence will both to look at your problem very long,
(even if you weren't a Googlegrouper). I'm guessing you could have
posted the code to
http://www.calibrand.com/test.htm and provided us the
URL.
I'm using links for navigation on a test page, so each link will go to
a question in the test e.g. Question 1, Question 2 etc.
....meaning, I think, that your "test page" isn't really a test page, but
only a list of links to the questions. I would think that going from Q1
to Q2 to Q3 in order would be the preferred way.
For each link i am using an Outer Border, Middle border and Inner
border,
No, you're not. And besides there isn't any such thing in CSS or HTML.
each with their own color depending on the status of the
question (e.g. Read, Answered, Viewed etc.) so that the user can
distinguish
If any human being on Earth can actually distinguish anything based on
your "coloring", they should be considered to have passed the test. Any
test. I've studied your code and looked at the rendering in two
browsers, and I still can't figure out the "system".
between questions they've answered and one they haven't
answered.
I have styled them using css but the links text color for a question
number which has been answered or is currently being viewed go grey
(should be #0063A5) with a white drop shadow (as if the microsoft
DropShadow filter is being applied to it!)
I see that on numbers 3 and 4 in IE6. For others' reference, #0063A5 is
a kind of teal color.
All of the links should be #0063A5, the other links are coloured
correctly! If i view them in Firefox or Netscape they do style
correctly but in IE I keep getting the grey drop shadow text.
The spans that wrap the question numbers are also styled so they
appear as layers but I have taken the code out from a generated page
and the associated styles, now they dont seem to be styled correctly.
I am only concerned with the color of the link!!!!
Beyond what I have to say below, I am confused about what this last
paragraph means. Do you mean you gave us some code which you grabbed
from elsewhere (where it maybe worked) and now it doesn't work? Or you
gave us something different from the actual problem code?
Speaking of problem code, yours is a good representation. I can't tell
what you even want to do. Each number (link to a question page) is
marked up as a link (with an ID and a Class) using JavaScript, inside a
span (with an ID) inside an "inner" span (w/ class and ID), inside a
"middle" span (w/ class and ID) all inside an "outer" span (w/ a class).
All inside a div.
Then you style the IDs, the classes, and combinations of both. You seem
to be using background-colors of overlapping or partially hidden spans
to provide the "borders" you mentioned. Why not use actual borders?
You re-use the same ID multiple times, which is not allowed on a page.
Your CCS has a rule for .QAnswered, which is either mis-typed or just
not used in the HTML. Correct or remove.
You specify a.QRead:visited twice in a CSS rule, when you probably mean
a.QReadAnswered:visited for one of them.
The one time you use an actual border is for .MiddleQNotRead, where you
have border:#669788 solid 1; You have omitted the required units.
The word "disabled" is just floating in your markup.
You have, at best, a maintainability problem here. If *you* can't
understand your code, nobody else will be able to. (And I think you
*can't* understand it, because you're have these problems. I suspect the
relative positioning, but I can't tell.)
My advice:
- Start over. (Sorry; I think it's the best plan.)
- If you have to use JavaScript, make sure you tell the visitor in
advance that it's required.
- Devise another system (one which is at least partially accessible
might be good) to communicate answered/non-answered.
- Use simple, logical, semantic markup. Try explaining your markup to
somebody else. See how long it takes to finish. If they just give up
instead of understanding, revise your system.
- Eliminate the typos.
- Validate your code.
- Validate the CSS.
- If you still have problems, post a minimal test case to the Web and
then ask here with an URL. Somebody will be glad to help you. Even
somebody with some sense. ;-)
See my re-formatted version of your code at
http://mypage.bluewin.ch/jlh/Calibrand.htm
Good luck.
--
John