WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] stop text from wrapping around images (6 posts)

  1. bricklayer
    Member
    Posted 6 years ago #

    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.

  2. itissue
    Member
    Posted 6 years ago #

    Have you tried looking at the stylesheet? You could add this:
    img {display: block}
    in the stylesheet. Maybe this will work.

  3. bricklayer
    Member
    Posted 6 years ago #

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

  4. pbal
    Member
    Posted 6 years ago #

    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.

  5. itissue
    Member
    Posted 6 years ago #

    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.

  6. bricklayer
    Member
    Posted 6 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags