Originally posted by Shannon
...I thought you said XHTML 1.1 was easy to get to validate!
Hey, these are pretty small problems compared to some of the stuff I'm trying to get my head around right now.
![Tongue :P :P](/wp-content/themes/gtp16/images/smilies/tongue.svg?v=3)
(I've developed a navigation system that has CSS-image-rollovers, with full 508 accessibility conformance [Fahrner image replacement technique] and no flickering due to the background-positioning trick, but I'm having trouble applying a class to the links, or specifically, the list item, without using a method that would bloat my code... complicated stuff
![Boggled :boggled: :boggled:](/wp-content/themes/gtp16/images/smilies/boggled.svg?v=3)
)
Originally posted by Shannon
Hmmm....it seems changing the character set from utf-8 to iso-8859-1 does the trick.
Now that really is strange... my page has always validated with utf-8, and it even has a few asinine symbols and what not in it. *shrugs*
Originally posted by Shannon
How am I supposed to get the link to open in a new window if XHTML doesn't like the target="_blank" declaration?
The
targe property was removed from XHTML strict guidelines to promote accessibility... you can go two routes with this. Either change your DOCTYPE back to transitional (which I'm assuming you don't want to do), or, as Acid X said, use Javascript. The W3C is going to be coming out with "XLink" as a replacement for "target", but that won't be for a while.
Originally posted by Acid X
Oh, and sage, do you know how i can get around XHTML with the bordercolor attribute for tables?
I have a table with the bordercolor attribute, but XHTML doesnt like it.
What could i use? I tried border-color: blah in a css file, but it comes out all funky....
Um, what do you mean by funky? Does it not apply, or does it apply but not the way you thought it would?
For a start, instead of using
border-color, I'd recommend you just tell the browser everything with the
border property (I'll show that in a sec). Also, do you have the proper selector(s)? Do you want to apply it to every table on your website, just one table, or several tables (but not all)? If you want it for every table, you would do something like this:
Code:
table {
border: 1px solid #000;
}
For just one table, you would put
id="blah1" in the table tag, then put this in the CSS:
Code:
table#blah1 {
border: 1px solid #000;
}
And for multiple tables, but not just one (and not all), you'd put
class="blah2" within every table you want affected, then the following in your CSS:
Code:
table.blah2 {
border: 1px solid #000;
}