Title: Image disappears using float
Last modified: August 18, 2016

---

# Image disappears using float

 *  Resolved [jo5329](https://wordpress.org/support/users/jo5329/)
 * (@jo5329)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/image-disappears-using-float/)
 * I have been banging my head against the keyboard all morning. I have my css code
   for images set like Codex says to for float and centered. However on this post:
 * [http://joscafe.com/2005/07/07/29th-regiment-coc/](http://joscafe.com/2005/07/07/29th-regiment-coc/)
 * When I tried to use alignright or alignleft as instructed, the text floats like
   it’s suppose to but the image is blank. I can move the mouse of it and the alt
   tag shows up, but the picture is like transparent! Any ideas? I have since removed
   the align class from the image so it continues to show.
 * Here is my css for imgs:
 * img {
    border-style: none; }
 * a img {border:0}
 * p img {
    padding: 0; max-width:100%; }
 * img.centered {
    display:block; margin-left:auto; margin-right:auto; } img.pic{
   background:#fff; border:1px solid #ccc; } img.alignright { padding: 4px; margin:
   0 0 2px 7px; display: inline; }
 * img.alignleft {
    padding: 4px; margin: 0 7px 2px 0; display: inline; }
 * .alignright {
    float: right; }
 * .alignleft {
    float: left; }

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [jo5329](https://wordpress.org/support/users/jo5329/)
 * (@jo5329)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/image-disappears-using-float/#post-231139)
 * I went ahead and put my stuff in a table and the image shows up. I’ve done everything
   correct per Codex, so maybe it’s just a glitch — it’s working fine with tables.
 * But if anyone has any ideas why this wasn’t working, it would be wonderful!
 * Thanks
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/image-disappears-using-float/#post-231140)
 * I have no problems in IE or FF…
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/image-disappears-using-float/#post-231145)
 * This is one of the browser bugs that plagues folks.
 * Since you’ve now moved your stuff into tables, which is NOT appropriate since
   tables are for data not design, you will have to move them out to apply the fix.
 * See: [http://codex.wordpress.org/CSS_Fixing_Browser_Bugs](http://codex.wordpress.org/CSS_Fixing_Browser_Bugs)
 *  [Valerie](https://wordpress.org/support/users/valerie/)
 * (@valerie)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/image-disappears-using-float/#post-231433)
 * [This topic](http://wordpress.org/support/topic/34592#post-275883) may actually
   address issues similar to the one explained here.
 * Just trying to be helpful.
 *  [hallierichter](https://wordpress.org/support/users/hallierichter/)
 * (@hallierichter)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/image-disappears-using-float/#post-231438)
 * I am having the same problem and am not finding any answers that actually work.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Image disappears using float’ is closed to new replies.

## Tags

 * [align](https://wordpress.org/support/topic-tag/align/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 5 participants
 * Last reply from: [hallierichter](https://wordpress.org/support/users/hallierichter/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/image-disappears-using-float/#post-231438)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
