Forums

Picture won't stay on separate line than text (9 posts)

  1. Bograth
    Member
    Posted 2 years ago #

    Just started using WordPress and are now almost finished.
    But when I'm trying to add a picture into the ABOUT page it just won't stay on a separate line than the text.

    Whatever I do it "blends" witht the text and I get the picture and the text on the same line. I've tried going into the "code" page and using [br] aswell as [br /] but the command is removed by the texteditor.
    (replace [] with <>)

    What am I doing wrong?

    to illustrate it's easiest to give you the link.
    http://mtb.razbo.net/?page_id=2

    Thank you for any help you can give!

    Regards
    Bograth

  2. moshu
    Member
    Posted 2 years ago #

    Look at your stylesheet:

    /* IMAGE STYLE */
    
    img {
    float: left;
    padding-right: 5px;
    border: 0;}
  3. Bograth
    Member
    Posted 2 years ago #

    What should i change to get it working?
    This is a theme found on the webpage... i thought they all worked?

    Thanks!

  4. moshu
    Member
    Posted 2 years ago #

    Of course, they work, and I would say it works pretty nice - 99.99% of users prefer to have text wrapped around images: exactly what your theme does.

    What you want is an unusual request - just FYI.

    Remove the code from your stylesheet.

  5. Bograth
    Member
    Posted 2 years ago #

    Ok, then I know what to do.
    Thanks mate!

  6. Bograth
    Member
    Posted 2 years ago #

    Just a question, is it possible to have both?

    can i add something like

    #pic
    img {
    float: left;
    padding-right: 5px;
    border: 0;}

    And then <img id="pic"....
    Or is there another easier way?
    Thanks!

  7. moshu
    Member
    Posted 2 years ago #

    You create a class in your stylesheet, e.g.

    .myleftpic {
    float: left;
    padding-right: 5px;
    border: 0;}

    and in the post you add to the img tag that class:
    img src="http..etc" class="myleftpic" alt="" />

  8. Bograth
    Member
    Posted 2 years ago #

    ok, thanks a bunch!
    Much appriciated, gonna do this now :)

  9. Bograth
    Member
    Posted 2 years ago #

    It worked perfectly, again thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic