Two columns of text next to images

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 18th, 2005, 10:37
csa csa is offline
Up'n'Coming Member
Join Date: Nov 2005
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote

  #2 (permalink)  
Old Nov 23rd, 2005, 20:45
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Two columns of text next to images

If it's only happening a couple times, add this to the image tag:
<img src="yourimage.jpg" style="float:left;margin-right:6px;" /> The text goes here.
If it's happening a lot, add a class to the image, then put the above styles out in a style sheet.
<img src="yourimage.jpg" class="imagefloat" />
and
.imagefloat {
float:left;
margin-right:6px;
}


You might find the hard way that the above will cause other slight quirks in the layout, but those can be dealt with easily when/if they arrive.
Reply With Quote
  #3 (permalink)  
Old Nov 25th, 2005, 18:32
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 305
Thanks: 1
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Nov 26th, 2005, 01:26
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 305
Thanks: 1
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #5 (permalink)  
Old Nov 26th, 2005, 19:59
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
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.
Reply With Quote
  #6 (permalink)  
Old Nov 26th, 2005, 20:19
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 305
Thanks: 1
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #7 (permalink)  
Old Nov 27th, 2005, 17:21
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Two columns of text next to images

Thats weird...
Reply With Quote
Reply

Tags
two, columns, text, next, images

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 19:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43