WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Widget
[resolved] Text wrapping around images (3 posts)

  1. Franz92
    Member
    Posted 1 year ago #

    Hi Johan!
    Thank you very much for a great addition to wordpress. I love it and wish you the best of lucks!

    But I'd like to request aid, dear readers. I want the images in the custom post widget in the footer to be wrapped by text. I selected "alignleft" in their options and added the following code to style.css:

    .widget_custom_post_widget {
    	img.alignright {float:right; margin:0 0 1em 1em}
    	img.alignleft {float:left; margin:0 1em 1em 0}
    	img.aligncenter {display: block; margin-left: auto; margin-right: auto}
    	.alignright {float:right; }
    	.alignleft {float:left; }
    	.aligncenter {display: block; margin-left: auto; margin-right: auto}
    }

    But this is what comes out: Can you aid me?

    Thank you in advance!

    http://wordpress.org/extend/plugins/custom-post-widget/

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    wrong css syntax - http://www.w3schools.com/css/default.asp

    try either (to have is specific to the widget):

    .widget_custom_post_widget img.alignright {float:right; margin:0 0 1em 1em; }
    etc.....

    or (general for the site):

    img.alignright {float:right; margin:0 0 1em 1em; }
    etc.....
  3. Franz92
    Member
    Posted 1 year ago #

    Thank you very much alchymyth!
    Your response helped to solve the problem like a charm. Just to make it clear - i forgot the semicolons at the end, didn't I?

    Thank you very much, I appreciate your help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic