I have a .css file as below:
body { background-color:#ffffff; font-size:12px; line-height:18px; padding:0px; margin:0px; padding-top:10px; } ul,h1,h2,h3,li,p { padding:0px; margin:0px; } img { border:0px; } .wrapper { margin:0px auto; width:98%; border:solid 0px red; } This css applies for all the pages in my web site. If you observe, the border for all image tags is set to NONE.
Now, only in a particular page, I had a image tag as below:
<img border="1" src='../something'/> The image comes properly, but the border doesn't. I need to have border for this image tag, I do not have to use style attribute cause this image tag is generated by an HTML web editor where it adds an attribute "border=1" instead of style attribute.
How can I achieve this??
Is there a way to remove a particular css class for a page?
The other way I'm trying is for the client events of the web editor to change border=1 to style="border:1" (this works)
style = "border: 1px"is indeed the best solution to the problem.