WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Why does text wrap all the time? (11 posts)

  1. momunplugged
    Member
    Posted 6 years ago #

    Here's a link to an example of what's going on:

    http://74.52.60.18/~marybun/blog/?p=392

    And the code:

    [code moderated]

  2. momunplugged
    Member
    Posted 6 years ago #

    That's odd, my first post explaining the problem has disappeared.

    My text wraps all the time and looks bad since there are just one or two words per line next to the image. The only"fix" I have found is to use a smaller picture so that the wrapped text doesn't look quite so strange.

    How do I stop this from happening? I'd rather have no text wrap at all. Thanks!

  3. homeycomb
    Member
    Posted 6 years ago #

    your first post "explaining" the problem was moderated by one of the mods, because it didnt explain anything -- it was just a whole lot of code or CSS, which ppl are asked to not post on here.

    They prefer you paste that stuff over here:

    http://wordpress.pastebin.ca

    and then link to it.

    Its also advisable to not expect ppl to diagnose CSS issues with a picture, even a picture with CSS. Most of us use Firefox, and most of us are able to change CSS on the fly, so what's prefered is a URL where we can see the actual "issue", and not a picture.

  4. momunplugged
    Member
    Posted 6 years ago #

    Sorry. I am new to all this. Didn't mean to do anything wrong. I've seen code in other posts so I thought it was OK.

    I did post the code for the picture but apparently it was deleted by a moderator.

    I had also put in the CSS for the template stylesheet because I wondering if there is anything in there that is causing the code to continuously wrap.

    Can anyone help me?

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    In your CSS file for your theme, you have this:
    #content img,#contentwide img {border:1px solid #d0d0d0; float:left; margin:3px 10px 3px 0;}

    Remove the float:left; from that and your text won't wrap around the images any more.

  6. Adam Brown
    Member
    Posted 6 years ago #

    @homeycomb:

    Its also advisable to not expect ppl to diagnose CSS issues with a picture, even a picture with CSS.

    Umm... She didn't expect that. She gave the correct link.

    @momunplugged:

    In your theme's stylesheet, find this:

    #content img,#contentwide img {border:1px solid #d0d0d0; float:left; margin:3px 10px 3px 0;}

    Change it to this:

    #content img,#contentwide img {border:1px solid #d0d0d0; margin:3px 10px 3px 0;}

    The only difference is that I removed the "float:left;" that your theme's author stuck in there for some odd reason.

  7. momunplugged
    Member
    Posted 6 years ago #

    Thanks Otto42. I made the change, but the text still wraps. Am I doing something wrong?

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    momunplugged: No, it doesn't. The change worked. Refresh your page and/or clear your browser cache.

  9. momunplugged
    Member
    Posted 6 years ago #

    Thanks Adam, I think that's what Otto suggested and I did it, but the text still wraps. Could there be another area of the stylesheet that is still causing a problem? There is something in there about "float fix" (and overflow?).

  10. Adam Brown
    Member
    Posted 6 years ago #

    Like Otto said, clear your browser cache. It looks fixed to me.

    Details:

    http://codex.wordpress.org/I_Make_Changes_and_Nothing_Happens#The_Browser_Cache

  11. momunplugged
    Member
    Posted 6 years ago #

    Duh! Refreshing the page does help doesn't it!!

    Thanks so much for the help everyone. It worked!

    Have a great day!

Topic Closed

This topic has been closed to new replies.

About this Topic