in a site i am designing, i have come accross some problems.
basically, im trying to keep all the style elements in a stylesheet.
i have a table, which holds my menu like this:
now this displays perfectly in Mozilla firebird, but not in ie?!?
here is the site where it is used: http://uksutton.extreme-servers.net
what other ways could i use that are cross browser compatable to get a similar effect?
yeah, IE is the biggest headache for a webdeveloper just because its CSS support is bad.
As far as I see the words inside those <td> are going to be links, so you could use a:hover (which is supported by IE) and in addition what you already have.
or JavaScript.
I also would like to note that we all should adopt the W3C standards and validate using validator.w3.org regularly.
using XHTML:
@toms100
no such attrib. align, use text-align instead! (and better put it to your style sheet for better HTML-code reading)
@Nay
no such attrib. language (just leave it, type is enough)
yes that is similar to what I've said
but note that though the whole td will change its color only clicking the link itself will forward you to another page. Some users may not expect this as there are sites where it does not matter if you click the link itself or the td.
that's because mozilla is the original open-source it's often the first browser to implement new standards from the w3c as a result. it's been that way for a while
gavinbsocom wrote:what would it allow you to do? what would be the purpose gen-ik on doing it ?
Well that's done to how creative you want to get with your website.
Let's put it this way..... almost every object in your webpage can be turned into a link using ONMOUSEOVER and ONMOUSEOUT to flip the CSS style (if you want to) and ONCLICK to change pages.
The ONCLICK at it's most basic would link to another page using ONCLICK="window.location='some_page'".
the problem is that some ppl will browse with javascript turn off for fear of viruses.
that's why i try to have all links accesable in a way you can get there without javascript...but someplaces it's not possible, so i claim it's necessary on my site