Menu
um….. How can I have an image be placed by pixles from the left and top.. and then have text dodge the image?
[i]Originally posted by rsd [/i]
[B]To make text dodge an image you need to set the image CSS to float:left; or something like that.
To have an image (or a div for that matter) placed at a specific spot so many px down and so many px across you need to specify it as position:absolute; in your CSS.
The drawback here is that it takes that image out of the main flow of the document so any text in the main flow will be hidden by the image.
One thing you could try is to include the image inside a div that also contains the text you want and absolutely position the div itself.
Hope this helps. [/B][/QUOTE]
[i]Originally posted by Kyleva2204 [/i]
[B]either I did it wrong... or it doesnt work... lemme tell you what im trying to do.... u know like on the news articles they have images smack dab in the text.. like off the left or right.. but they arent at the top and bottom.. they are liike in the middle.. I dont want to have to add a table in the middle.. i want it to be automated in CSS..... :-) [/B][/QUOTE]
[i]Originally posted by Paul Jr [/i]
[B]Do you want the text going down on both sides of the centered image? If so, that'll be hard — but talk to lavalamp (I think it was him), he posted a big long thread about this, and finally figured out a solution (I think). [/B][/QUOTE]
[i]Originally posted by ray326 [/i]
[B]You should be able to just float them left or right inside the div with the text and it will flow around. [/B][/QUOTE]
[i]Originally posted by Paul Jr [/i]Indeedy, though I didn't start the thread.
[B]Do you want the text going down on both sides of the centered image? If so, that'll be hard — but talk to lavalamp (I think it was him), he posted a big long thread about this, and finally figured out a solution (I think). [/B][/QUOTE]
[i]Originally posted by lavalamp [/i]
[B]Indeedy, though I didn't start the thread.
http://www.webdeveloper.com/forum/showthread.php?s=&threadid=31247#post168839
Just put the images at the top (and some "gap" div tags in the second column), then you can probably push them as far down as you want with some top margins. [/B][/QUOTE]
[i]Originally posted by lavalamp [/i]
[B]Hmm, me neither, I've tried a few things and always ended up with a big gap at the top.
On the plus side though I've lightened the code a little, dumped a couple of <div> tags and such like.
If I come up with something I'll let you know. [/B][/QUOTE]
[i]Originally posted by Kyleva2204 [/i]
[B]:-) this is tough.. didn't the creators of CSS ever come across this prob?? [/B][/QUOTE]Why would they? You were joking though, right?
[i]Originally posted by lavalamp [/i]
[B]Why would they? You were joking though, right? [/B][/QUOTE]
0.1.9 — BETA 5.20