Forums

[resolved] Page formatting in my WP template. Help! (3 posts)

  1. 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

  2. stvwlf
    Member
    Posted 2 years ago #

    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; }
  3. davemcc
    Member
    Posted 2 years ago #

    Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.