Viewing 7 replies - 1 through 7 (of 7 total)
  • Ack.
    Remove the last two of the > on lines 3 and 4

    Thread Starter rupe

    (@rupe)

    Not sure either Byte – my only reservation there would be that if we place it in the CSS file, it will limit the flexibility of placing the image where you want it.

    Rupe,
    You could make a few classes to set up where you want the image. You aren’t limited to one. Also, wrapping your image tag in < font > tags does not give you the white border around it.
    Like Byte shows above, you could adapt that class to left, center, right and then use < span > to style the image.
    < span class=”storycontent-right”>< img src=”http://example.gif@example.com&#8221; >< /span >
    HTH.

    Thread Starter rupe

    (@rupe)

    hmm – couple of things Nuke:
    First:
    Go ahead and try my example using the <font> tag and let me know your results.
    <font color=”whatevercolor”><img with border=”whateversize”></font> and tell me your results. I will admit it is not terribly sexy or elegant in the regular coding vernacular, but I wouldn’t have posted it before testing it.
    Second:
    Yours and Byte’s suggestion is more in line with the current coding scheme, so I am quite interested in it. How then would you implement it as a subset of the current WP upload functionality?

    the <font> thing might not work across all browsers. and if you don’t want to create a whole bunch of new css classes to get the same effect, you could always use inline styles:
    e.g. [img src=”yourimagename.jpg” style=”border:5px #fff solid;float:left”]
    (using [ instead of < so the board won’t eat it :p)

    Thread Starter rupe

    (@rupe)

    Now – that’s elegance….! Great way to refine the idea Nuke (I think!)
    Okay, so now, the next step is to add the style attribute as an option to the link generated by the image upload function and I think we have a crude, but effective pic&text posting blog.
    Calling all hackers!….anyone up to the challenge….?

    Thread Starter rupe

    (@rupe)

    Simple enuff – added the style attribute to the piece_of_code variable in the upload file. The next step would be to provide an option to replace the style attrib.
    Then it should be 3 clicks, plus browse to get your image into your post properly aligned and looking good….

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Word Wrap’ is closed to new replies.