Overriding CSS styles in HTML

Did you know can override the CSS styles in HTML?

Perhaps you have a particular border that you’ve set in your CSS so that all images have this border. But you’d like to insert an image that you don’t want to have boxed in by the boarder. How do you do it?

style=”border:0″

Inserting that into the HTML of your page after the img tag will override the CSS style that usual style for image borders is not applied.

So the full line would be:

img src=”IMAGE LOCATION” style=”border:0″

This method can be applied to any style to override the style setting in the CSS.

Published in: on August 10, 2008 at 11:30 am Leave a Comment
Tags:

The URI to TrackBack this entry is: http://howtocreateawebpage.wordpress.com/2008/08/10/overriding-css-styles-in-html/trackback/

RSS feed for comments on this post.

Leave a Comment

You must be logged in to post a comment.