pdxsherpa — 2013-08-15T18:13:15-04:00 — #1
I want to float the images to the right of the text.
Any advice please?
ralphm — 2013-08-15T19:06:17-04:00 — #2
You can either put the image inside the paragraph it will float in:
<p><img> Text here</p>
or you can keep it inside the <p> it's currently in but float that <p>.
Remember that the floated item needs to go before the item it will float beside, or at least early within it (as in my code sample—put the image near the start of the text).
pdxsherpa — 2013-08-15T19:13:29-04:00 — #3
thank you ralph this is what i got:
padding:0px 50px 0px;
border:1px solid #ddd;
padding:5px 5px 20px 5px;
will try what you suggest. I have to keep it the <p> tags. We are trying to make it easy on the user that is adding material to wp. So have been told to try & avoid custom fields.
so in this case the images are added into the page directly.
ralphm — 2013-08-15T19:18:45-04:00 — #4
That code doesn't do what I thought you were wanting. Perhaps explain how you want the page content arranged.
pdxsherpa — 2013-08-15T19:32:26-04:00 — #5
i want the images neatly to the left, or right of the text blocks.
as thought they were neatly lined up in a table.
& actually i can get rid of the width for the p that does nothing.
ralphm — 2013-08-15T19:39:56-04:00 — #6
Does the WP interface allow for the client to place classes on the various paragraphs? This is pretty messy, though. Ideally, you want a more sophisticated set of entry fields to make for a better layout. I've lost touch with WP so not sure how easy this is, but with the CMS I use it's a breeze.
pdxsherpa — 2013-08-16T00:53:14-04:00 — #7
you know...I really think not.
I have been asked to try it out this way. To allow the user to edit their own content as much as possible.
The person who asked me to try this out thinks customs fields are too hard. So don't know if the user would be open to add classes. Worth a shot.
So far as i can see. you don't get as much control this way.
Or at least so far i can't align those images as i could if using custom fields in divs.
ralphm — 2013-08-16T01:34:54-04:00 — #8
You might just be better off letting the client add text, images etc. as normal, and just set images to float: right and be done with it. Trying to wrap tags around things in the situation you describe sounds like a bit of a mess to me.
pdxsherpa — 2013-08-16T09:45:21-04:00 — #9
hi, that is what i am doing now.
And the images simply stay in their own block beneath the text.
ralphm — 2013-08-16T18:10:55-04:00 — #10
So is this using a WYSIWYG editor in WP? Which one is it? Often those editors have more advanced settings, where you can specify how the image behaves. Looks like currently WP is wrapping a <p> around the image by default, but you don't want that.