josephbastin Posted November 10, 2006 Share Posted November 10, 2006 Hi,I tried putting border for my thumbnail images using css, calling a class. But the effect is properly coming in FireFox and Netscape 8, but not working in IE. Could you please help me out. I've pasted the code below.CSSdiv#woodpecker_content { padding: 5px; width: auto; display: block;}img.thumbnail { border: 1px solid #DC7B48;}img.thumbnail:link, img.thumbnail:visited { border: 1px solid #DC7B48;}img.thumbnail:hover { border: 1px solid #000000;}div.float_left { float: left; padding-right: 5px;}HTML CODE<div id="woodpecker_content"><div class="float_left"><a href="#"><img src="assets/images/common/tn_camera.gif" alt="" title="No Thumbnail" class="thumbnail" /></a></div>Information about woodpecker should come here. Information about woodpecker should come here. Information about woodpecker should come here. Information about woodpecker should come here. Information about woodpecker should come here.</div> Link to comment Share on other sites More sharing options...
jlhaslip Posted November 11, 2006 Share Posted November 11, 2006 Have you tried being more 'specific' in the attribute definitions? div#woodpecker_content {padding: 5px;width: auto;display: block;}div#woodpecker_content img.thumbnail {border: 1px solid #DC7B48;}div#woodpecker_content img.thumbnail:link, div#woodpecker_content img.thumbnail:visited {border: 1px solid #DC7B48;}div#woodpecker_content img.thumbnail:hover {border: 1px solid #000000;}div.float_left {float: left;padding-right: 5px;} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now