Forum Moderators: not2easy
But no. Browsers to not hold to standards. Things that should work do not. Things that make no sense seem to affect design in significant ways.
I have just discovered that, because the colours of the links were not working universally (even though they should've) I had to alter my CSS code in such a way that -aaaaaaargh - now prevents Mozilla users from using particular PHP code!
Which means I now have to assign an individual class to every single individual link through the entire site!
This is what is more commonly known as SUCK!
*sigh*
I shall calm down now and present to you my problem more clearly.
My site has many different sections that are the same in design, but have different coloured backgrounds and fonts etc to represent the section you're in.
For some reason, my Anchor codes were not changing to their section colours, they were instead staying the same colours as the main section. Until I removed the 'A' at the beginning, and just had:
:link { color:#666600; }
:visited { color:#333300; }
:hover { color:#663300; }
:active { color:#FFFFFF; }
on each of the stylesheets.
This, for some reason that God only knows, causes some critical PHP code to not work in Mozilla. Our programmer has asked me to therefore specify a class for every single link on the whole site so it no longer would be written as above, and therefore not interfere with Mozilla users.
Does anybody have a better or easier answer than that?
Like ask the Mozilla users to upgrade or something?
Problem: The "VIEW GALLERY BY" select box does not work.I've managed to track down what is causing these problems and believe it or not its our CSS includes! If you load up for example the include mainstyle.css and scroll through to the following four lines:
:link { color:#666600; }
:visited { color:#333300; }
:hover { color:#663300; }
:active { color:#FFFFFF; }Remove these and it works fine.
He means that he's never really been happy with my insistence that I use CSS for the formatting.
I'm reasonably new to CSS, really, and since we were re-programming the site for a database, I figured I'd use the opportunity to replace a lot of the standard HTML formatting with CSS, and I'm learning a lot about what they can do as I go.
Ever since then, he's complained that they get in the way of a lot of cross-browser compatability with the stuff he's trying to implement. So he gets a little animated about them sometimes.
Generally his beef with them is the same reason I've been reluctant to use them before now - they aren't as universally standard as they would like to claim, and it's not getting a whole lot better when new browser versions keep emerging. So every time the CSS gets in the way of something he does, he (and I) just get frustrated by it all.
they aren't as universally standard as they would like to claim
Where does it claim that? - Browser inconsistency is a given with a lot of the more complex CSS properties. It's getting better, but this has always been the case.
The cure? - A deep understanding of the technology and it's imposed limitations.
Nick
The more you try to make CSS an easier better option, the more complicated you have to make it. It goes against the original intention, in some ways, of it being better. More powerful is not necessarily better if the amount of work involved fior it to be useful is triple that of not using it at all.
Having a grumpy programmer who hates css is not making it easier for you though :(
Good luck.
I agree. Wholeheartedly.
CSS is far more intuitive than dinasoar code ;) and although it takes some fairly deep knowledge to do more than just style your text, it's well worth the effort.
Nick