Support » Fixing WordPress » stop text from wrapping around images

  • Resolved bricklayer


    I am a very new user of wordpress, and know very little about css/html. The problem I’m having is that when I post an image followed by text, the text is showing up to the right of the image, but I want it to always begin below the image. I’m using the WordPress Default theme. Is there a simple way to fix this so that every post I make will be affected? I’ve been looking through the forums, and have tried the solutions offered to others, but have not had any luck.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you tried looking at the stylesheet? You could add this:
    img {display: block}
    in the stylesheet. Maybe this will work.

    I’ve looked at the stylesheet, but I’m pretty new at this. Where exactly would that bit of code go to be effective?

    What I would do, and I don’t know if it’s valid code or not, but someone here is sure to let us know, is put </p> after the code for the image.

    And then I’d learn a little it about CSS and HTML before I tried to do much more with my blog.

    bricklayer: put it anywhere in the stylesheet as long as it’s not within two {}. Put it after the closing bracket of one section. For instance, if you were to put it after the style for body, put it like this:

    body {
    	font-size: 62.5%; /* Resets 1em to 10px */
    	font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
    	background: #d5d6d7 url('images/kubrickbgcolor.jpg');
    	color: #333;
    	text-align: center;
    img {display: block}

    Pbal: If you want to use p tags, you’d better use this format, since </p> is a closing tag. <p><img src="url"></p> But that method should work.

    Thank you itissue! That did the trick. I will now be spending some serious time learning up some CSS and HTML.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘stop text from wrapping around images’ is closed to new replies.