Change text place on gallery

Discussion in 'WordPress' started by obeegoone, Jan 22, 2011.

  1. #1
    Hey, i use NextGEN Gallery and want to set text to the right off my image, i use this

    [singlepic id=1 w=320 h=240 float=left] And some text here (right to the image)

    Only problem is that all the other text in the post getting to the right side off the image aswell :( I only want some small text to be on the right side not all :/

    Any idea how to fix this ?
     
    obeegoone, Jan 22, 2011 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use a "clear:both;" in your CSS stylesheet for the post text. The reason is that the text has room to begin to the right of your image text. Clearing the "float" will instruct it to begin on the line below.
     
    Dodger, Jan 22, 2011 IP
  3. obeegoone

    obeegoone Peon

    Messages:
    187
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Wont that make so all the text is under the image ? As said before i want a few lines to be to the right off the image, like a small description or whatever just some smal text
     
    obeegoone, Jan 22, 2011 IP
  4. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Clear the float for just the "post text" which you said was creeping up into the right side of your image description text. Also, a Url to the page in question would be helpful if you need further assistance.
     
    Dodger, Jan 22, 2011 IP
  5. obeegoone

    obeegoone Peon

    Messages:
    187
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Dont think i have any float for the text atleast not in the post, only thing i have in the post is the nextgen code for the galley link,this is exactly how my test post looks like

    [singlepic id=10 w=320 h=240 float=left] Text to the right off the image here


    Text that should appear under the image, but also gets to the right off the image :/
     
    obeegoone, Jan 22, 2011 IP
  6. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Well, the text that you want under the image is not clearing your float that you set up on the image itself. I guess you will have to cheat a little by doing this:

    <p style="clear:left;">Text that should appear under the image, but also gets to the right off the image</p>
    
    OR
    
    <p class="clear-left">Text that should appear under the image, but also gets to the right off the image
    
    AND in CSS
    .clear-left {clear:left;}
    Code (markup):
     
    Dodger, Jan 22, 2011 IP
  7. obeegoone

    obeegoone Peon

    Messages:
    187
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks a lot, will try it out and tell how it went :)

    Btw the code goes into post and not in a php file right?
     
    Last edited: Jan 22, 2011
    obeegoone, Jan 22, 2011 IP
  8. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yep. In the post, using the Html editor ... not the Visual editor.

    And I am not familiar with this plugin, but isn't there a way to insert a caption? If there is, then your problem would go away because it would be inside another DIV element where you can correct for this.
     
    Dodger, Jan 22, 2011 IP
  9. obeegoone

    obeegoone Peon

    Messages:
    187
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks alot it works :) DIdent even had to touch the css file
     
    obeegoone, Jan 22, 2011 IP