Amazingly, the page that is currently online is near-perfect; all that’s missing is that the required attribute “TYPE” was not specified for a piece of JavaScript (what value should I insert here?)
I think this is what you’re looking for:
[removed][removed]
So I’m thinking it’s because I’m not testing the new one online that I’m having trouble.
Hmmm…but Javascript runs in the browser, so online/offline shouldn’t matter, right? We’re running into the wall of my ignorance here, since I don’t get that elaborate. But ya know who does? Oops! I was gonna say k10k, but they’re down for renovations. Take a look at this script library . They’re scrollers of various types. You might find something similar you can tweak for your use, or at least pick apart and learn from.
1 -
and <img> tags need </br> and </img> to close them now?
Only if you’re using XHTML. And it’s
and <img >. The space before the slash keeps it from freaking out older browsers.
2 - Images MUST have the ALT tag?
Yes. Provides accessibility for visually impaired users, and it’s a courtesy for people on dial-up in case they have images turned off. Imperative for nav images/buttons.
3 - The attribute BORDER is no longer valid for images?
“img {border: none;}” in your style sheet will clear that right up.
4 - And I don’t have to say that a script is of the language JavaScript?
Yeah ya do; see above.
Quite the opposite.
Hey, man, more power to ya! If it works for you, knock yer socks off.
I like the sound of this and shall learn it.
Good to know my evangelism didn’t turn you off too much! But it’s not a bad thing to know. Here in the US, government agencies are starting to require accessibility on their Web sites, and table placement wreaks havoc with screen readers.
And I dunno, I started reading Zeldman a couple of years ago when I was first learning HTML, and I kinda followed him through the whole transition, and they underlying theory, the simplicity, the accessibility—it all appeals to me on some Platonic-ideal kinda level.
But I really like tables too, so as long as they’re considered part of HTML by the W3C I’ll probably stick with them.
Oh, tables will always be with us; they’re necessary for, uh, tables (e.g. Average Monthly Rainfall By City). But the W3C is trying to nudge people away from using them for layout.
Which browsers support this fully?
Well, nobody’s got CSS2 in its entirety, but Netscape, Opera and IE5 are all close, in roughly that order. Western Civilization is an Australian company that makes a couple of CSS tools, and they’ve got tons of info on which browser supports what, plus lots of tutorials and links and stuff.
Another fun site is Eric Meyer’s CSS Edge . He wrote O’Reilly’s CSS book, so he obviously knows his sh*t, and this is his little playground of stupid CSS tricks. Not many things there yet, but I’ve already nicked a couple for my stuff.
And do you know how I can centre an image vertically, without using height=“100%” in a table around said image?
I saw that! I’m pretty sure I can, but I can’t tell you off the top of my head; I’d have to play around with it. I’d planned to look at it tonight or tomorrow. Will let you know.