I have a table with the class “forum”. I would like all p and a tags within the table to have a margin as follows:
.forum p,a { margin:2px; }
The above code however seems to be targetting ancor tags elsewhere on the page aswell.. I cant see where i am going wrong..
Thanks in advance..
Try:
You need to specify
.forumon both, otherwise it thinks you want to apply the style on ALLatags.