Image in Page Will Not Float Right
-
For some reason images within a page will not float to the right using WP’s default placement method. This is not a problem on posts.
URL: https://www.johnrothra.com/cv
The top “Download CV” button should be floating to the right using this method. It worked fine until I switched to Customizr theme. Here’s the code WordPress puts into the page automatically that has worked with other themes:
<a href="https://www.johnrothra.com/blog/wp-content/uploads/2014/06/Rothra-John-CV-with-Academic-Philo.pdf"><img src="https://www.johnrothra.com/blog/wp-content/uploads/2014/06/DownloadCVButton-190x32.png" alt="Download CV" width="190" height="32" class="alignright size-full wp-image-3415" /></a>
The only way to get it to float properly is to manually replace the “class” part of the HTML with a “style” designating it to float:
<a href="https://www.johnrothra.com/blog/wp-content/uploads/2014/06/Rothra-John-CV-with-Academic-Philo.pdf"><img src="https://www.johnrothra.com/blog/wp-content/uploads/2014/06/DownloadCVButton-190x32.png" style="border:none;" alt="Download CV" width="190" height="32" style="float:right;" /></a>
It seems that to insert the image and have it work the way it should is to manually code the float because WP’s default system isn’t working.
What do I do?
- The topic ‘Image in Page Will Not Float Right’ is closed to new replies.