At work I was asked to copy over some styles today to a new web app. It would have been an easy job but I tend to want to fix things if I think their wrong. I like things running as efficiently as possible. I noticed the previous designer had qualified all his class names by tag and sometimes even his ids. Example:
Maybe I'm wrong here but isn't this less efficient then the simpler/cleaner way of just using class names?
I wouldn’t be able to understand why he would qualify a class name with a tag. Maybe he knew something I don't? I tried Google but I don't get too much information back expect for Mozilla. But could this work faster in ie? I've seen some crazy css tricks and tips, but this is new.
Thanks for the help.
Code:
TABLE.partsList TD.price
{
text-align: right;
}
Code:
.partsList
{
text-align: right;
}
Thanks for the help.