Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: not2easy
I've searched high and low, and I can't find any indication of whether this can be done or not.
To put it in context, consider that I have an XML page, which defines a) a block of text and b) any number of images and a location where they should go. (ie and x/y coordinate).
That aspect works fine. However, I want to display the block of text, and then the images placed within the text, at the locations that are indicated.
Just setting the position puts the images down in the right places, but overlapping the text. I want to see the text wrap around -- so the page looks natural.
I've tried some other ideas in the forum, but they all seem to rely on putting the image tag in the correct place. I want to be able to put all my image tags in the same place, only with different positions marked on each
Anyone tried this? Or is it beyond the ability of CSS?
Plus I don't even think its possible to have an image where text wraps around both sides of it (even with the img tag in the right place). You have to either float:left or right, there doesn't seem to be a way to float:middle.
I think you're right. I was pretty sure exactly what I wanted to do wouldn't be possible when I posted, but I wanted to make sure.
I'm thinking I may be able to allow a certain number of images to be defined, with locations like 'top right', 'bottom' and 'bottom right' or something along those lines. It allows for some flexibility, but still creates a firmer template.
Surely if the image is related to the text in some way then the structure of your document should reflect this?
I can see why you might want all the images together for xml, but can't you alter the ordering via xslt? (I don't know I've never really played with it)