This is a discussion on "Two columns of text next to images" within the Web Page Design section. This forum, and the thread "Two columns of text next to images are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Two columns of text next to images
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Two columns of text next to images
How can I position my text next to the caravan and motorhomes images without altering the rest of sites positioning?
http://www.chapmanstewart.com/store/test5.html Thanks |
|
|
|
|||
|
Re: Two columns of text next to images
I've just implemented this nifty little trick, opting for the latter. However I've got 3 image/text mixtures to do but for some reason they go in a diagonal fashion.
<img src="d1.jpg" class="imagefloat" /> <p class = "stitle">Full Web Site</p> <p>blahblah</p> <img src="d2.jpg" class="imagefloat" /> <p class = "stitle">Logo</p> <p>blahblah</p> <img src="d3.jpg" class="imagefloat" /> <p class = "stitle">Thingy</p> <p>blahblah</p> Any ideas? ps: it seems the text has to be between the <p></p> to work and does this also work with Flash movies? Timothy Clark crewSFX www.crewsfx.com Last edited by timmytots; Nov 26th, 2005 at 19:44. |
|
|||
|
Re: Two columns of text next to images
Me talking to myself again...
Could it be that I haven't closed the images with /img> ??? I think so....stay tuned! |
|
||||
|
Re: Two columns of text next to images
The possible problem with the code you posted is that the text which you want to float to the right of the image has been placed in a <p> element, naturally forcing it to go below the image; <p> is a block level element and by nature, wants to be placed on a new line below whatever might be above it. Instead, don't wrap the text in anything, but if you must, use a <span></span> element instead. This allows the text to be inline with the image.
|
|
|||
|
Re: Two columns of text next to images
It seemed I had to use the <p> though in order for the text to show up at all.
|
![]() |
| Tags |
| two, columns, text, next, images |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] multiple columns, text floats out of area... Best solution? | alfandango | Web Page Design | 7 | Apr 17th, 2008 12:00 |
| Text over images | Aaron1988 | Web Page Design | 5 | Mar 25th, 2007 23:12 |
| Lining Text With Images | coastercraverjim | Web Page Design | 6 | Jan 5th, 2006 00:16 |
| 2 columns of text either side of Flash | timmytots | Web Page Design | 11 | Nov 29th, 2005 01:18 |
| Images behind text | therussian | Flash & Multimedia Forum | 2 | Aug 21st, 2003 15:28 |