Wordpress and CSS float

11 replies
  • WEB DESIGN
  • |
OK I've run into this before and usually some digging will sort it out but this one seems to have me stumped. I'm setting a float on an image in a post in WP. It is preceded by a h2 tag and followed by a "p" tag.

It's not applying the float. I cut and pasted the code from my editor into WP and it doesn't work in WP. The code is built in an HTML doc and when I open it locally in I.E. it works just fine. So what it the trick to get WP to play nice?


Here is the code in question...

Code:

<h2>I am looking for a job</h2>

 
<img src="./images/money.gif" style="float:right;margin-left:15px;" alt="I am looking for a job" />
 
<p>Some paragraph text is in here</p>
And here is what I'm getting when I preview the page...

#css #float #wordpress

Trending Topics