Hello,
This question might be stupid, but I need some help.
I have a css file with an entry for td as such:
td {
text-align: left;
vertical-align: top;
font-family:Verdana;
font-size:11px;
color:#6B6B6B;
line-height:12px;
}
This works great, the only problem is that I have a menu component in a tr that because the td applies this css messes up the menu in the way it appears.
So, here's the stupid question. How can I cancel the td style just for that specific tr, so that the style won't apply and the menu will work?
I want to keep the td style in my css file because all of my page is formatted using that, so I don't want to do away with it.
Any help will be greatly appreciated.
Stupid CSS Question
By the use of a class or ID or even careful descendent selector targeting.
Hugo.
Stupid CSS Question
That sounds good, but can you say that in english?
My level of knowledge in css is in the single digits, could you please help with an example.
Thanks
By the way, <span id=mymenu>menu here</span> doens't work, if that's what you mean.
Stupid CSS Question
Could do with seeing the code your working with really.
Can you not set a class or ID on the tr with the rules that it requires
Hugo.
Stupid CSS Question
That was English...
Stupid CSS Question
That was English...
Location: London <----
Show your work!
Stupid CSS Question
sorry - slacked off a bit there
Stupid CSS Question
Stop picking on me :mad:
here you go then,
Δεν μπορεί εσείς θέτει μια κατηγορία ή μια ταυτότητα στο TR με τους κανόνες που απαιτεί
As it clearly was Greek to you!
Stupid CSS Question
Appart from all your cute little chatting sessions, could you please offer any real help to my question?
Thanks
Stupid CSS Question
Appart from all your cute little chatting sessions, could you please offer any real help to my question?
Now that is funny, this little chatting session started due to a lack of you providing the necessary code to solve your problem, :roll: and still no link for us?
Stupid CSS Question
I did provide the code in my first post. I guess all the cute talk by some members distracted others...
There's not much more to show. A style is applied to all TD cells through a css file.
In one specific cell I have the need for "cancelling" the effects of the css style.
Can this be done, and how?
Thanks
Stupid CSS Question
Appart from all your cute little chatting sessions, could you please offer any real help to my question?
Stupid CSS Question
Hi
css:
/* apply general page style for TD's */ td {background:blue} /* apply code for ONE TD */ #my-own-td{background:red} /* apply code to MANY TD's */ .my-own-tds{background:white}
html:
<table> <tr> <td>blah</td> <td id="my-own-td">foo bar</td> <td class="my-own-tds">foo bar1</td> <td class="my-own-tds">foo bar2</td> </tr> </table>
OK
Shame on all you naughty chatty children
Trevor
Stupid CSS Question
Attitude does not get help and Trevor should not have really have provided that help until such time as you followed our request for sight of the code and the context it resided in, we did not ask it for fun!
Your snippet of code in the first post was out of context and had no relationship to anything.
Hugo.
Stupid CSS Question
Ah ha! Who's the naughty one now?
Stupid CSS Question
ClevaTreva,
Thanks a bunch. Your answer makes perfect sense.
For the rest, there was no attitude in my writing, I just needed some help, that's all. Chat away if you must, but there are better places to do that.
Stupid CSS Question
Chat away if you must, but there are better places to do that.

Stupid CSS Question
Hi
But I'm the sort of guy who takes pity on a stray, wet smelly dog even if it does pee on your carpet.
Call me soft. Cuddly, even. :roll:
Trevor
Stupid CSS Question
Ok then you're soft, cuddly and even
oops chatting away again *slapped wrist* apparently there are better places for that; there's nothing like being put in you place by a newbie
So tell me arushi what part of 'classes' or 'ID's' didn't you understand that a written demonstration made apparently obvious sense to you?
If when I mentioned using classes why did that not suggest anything?
If you did not understand how a class is used how on earth did Trevors example make any sense.
If you had come back at me with a question along the lines of what's a class then I could have provided more answers, it is sometimes incumbent on the poster to interact, this forum is not about dishing up answers on a plate on demand.
Oh and if four senior members decide to have a little chat along the way that is our privilege and quite honestly is downright rude of you to suggest otherwise.
Hugo.
Stupid CSS Question
Oh and if four senior members decide to have a little chat along the way that is our privilege and quite honestly is downright rude of you to suggest otherwise.
And to think I was gonna go off for a pint.
Trevor
Stupid CSS Question
And to think I was gonna go off for a pint.
Think I'll join you

Stupid CSS Question
I think the OP has gone
Stupid CSS Question
Never liked OP.
Prefered Guiness mixed with Pernod. Seven of them and I was happy.
ct
Stupid CSS Question
Seven of those would make me happy as well; but under the table, comatose.
Stupid CSS Question
I remember severing an Achiles Tendon on the Pennine Way, found myself next to a pub in Aysgarth Falls after getting off the bus, had to walk a mile to the doctor. Floated all the way.