I made a page with 2 tables which have their own different backgroundcolour. So now I need 2 different stylesheets for both tables. Is this possible? Really need to know this!
Sure you can!!! You can create two different stylesheets and link them to your page. Or you can create two styles in one stylesheet and link it to your page as well. Or you may create two styles inside your page. There are huge number of possibilities you may use, but the main idea - IT IS POSSIBLE!
Whether you have your styles in-line (at the start of the HTML document) or in an external file (linked at the start of the HTML document) or in multiple external files, the classes need to be unique.
Sorry about that, YES I KNOW we can use more than one css, what i meant is YOU CAN'T use two css for the same TAG unless you make a .class thanks Jon ;-)
and Eugene please read my post again, by the way maybe YOU understood but what about Aenema??? He's (or she's) the one who asked....
You can't use two css for the same TAG (table)
what you can do is use one with the TAG and the .your_name class in the second one.
Have Fun...
I didn't mean in any case that you were not right - I just had my own answer to aenema's question. Or you think that only you may reply? I'm sure you don't
And about your post - I've read it many times - you wrote how to use and I wrote only that it's possible. What's the problem?
And I think that you can't use two classes in one TAG, like
<table clas="first" class="second">
but you can use two styles within one TAG, like
<table class="someClass" style="color: red; ...; ...;">
Thanks guys, but i already stole the sourcecode from altavista.com. The point wasn't to apply the css to the table, but to the links in the tabes. And now i understand the ieda of different .whatever classes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.