Help!

IMG inside a DIV floated left - covers text in IE


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Web Developers RSS
Next:  another inconvenient truth  
Author Message
zhackwyatt



Joined: Dec 05, 2002
Posts: 166



PostPosted: Fri Mar 16, 2007 2:53 pm    Post subject: IMG inside a DIV floated left - covers text in IE

This is the usual, works in everything except IE problem. Actually IE6 didn't have a problem with this just IE7.

Here is the page: http://nmsu.edu/~cwyatt/untitled/figuretest.html

See the NMSU logo that covers the text? The float right works just fine here, but the left doesn't. I coppied the code below for convenience.

Any suggestions? Thanks

Code:

.figure {
   text-align: center;
   font-size: small;
   color: #555;
   margin: 0px;
   padding: 10px;
   }

.figure img {
   display: block;
   margin: auto;
   }

.figure.on-the-left {
   float: left;
   margin-right: 20px;
   }

Code:

<div class="figure on-the-left bordered">
   <img src="http://www.nmsu.edu/images/red_logo.gif" alt="NM State University logo" width="79" height="88" />
</div>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Web Developers All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum