davemcc
Member
Posted 2 years ago #
Hi
Can anyone help me with the following:
I edit a page in WPs admin and align my images to the right with text around them. However when I go to the page I have created the images are justified left and the text is above/below.
I am making my own template and here is a link to the page I refer to:
http://paintapot.org/beecraft/beekeeping-information/general
I have obviously missed something out when adding the code to my theme!
Nay help greatly appreciated!!
Dave
Hi
Things will rarely look the same in the editor as on the site as the editor does not reference the theme's stylesheet.
The problem you are having is typically when a theme does not contain styling for the alignleft and alignright classes that the WP media library adds to the IMG tag.
I suggest adding these to your stylesheet as a starting point. You can adjust the padding as needed:
.alignright { float: right; padding: 15px; }
.alignleft { float: left; padding: 15px; }
davemcc
Member
Posted 2 years ago #