I can’t figure out where to float to achive the following:
Picture1 Name Address1
Picture1 Date Address1
Picture1 Category
Around everything is a div - like 800px wide, 200px high.
On the left should be one picture (which resides in a div with the attribute float: left).
Then I’d like to have Name, Date and Category beyond each other. They are the difficult things - can’t get them together.
Do I have to float them all left?
Do the need to have something like clear: …?
And Address1 is wrapped in a div as well, which I floated right, so that works fine as well. Just the middle part gives me headache. :-S
Does anybody know what to do there?
Thanks,
Transmitter
The problem is, my HTML looks like this and therefor I need the CSS to deal with the positioning.
Now I’m playing around with display: inline-block but it doesn’t look good yet.
I can’t change the HTML as well since it comes from the CRM.
If you can’t change the html then its not really possible to accomplish what you need unless your image is a known fixed height. If that is true then you can absolutely place the image and account for its height by setting a min-height on the wrap. That will allow the other two blocks to be aligned if the name,date and category are floated left and the address is display:inline-block.
If the image has an unknown height or the height of the image changes in each block then what you are asking is (probably) impossible in the structure you have.
That’s getting difficult - I was hoping that it would work out with a few CSS classes.
In that case I’m looking into overwriting the template output - maybe I can really get your first suggestion working.
Thank you.