CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 12th, 2003, 01:00 PM
balance balance is offline
.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 296 balance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
[css] text up to the right of pic somehow?

hiyer,

i've got a basic page layout - 1 fixed width column centered on the page containing text and pictures.

there's text that goes with each picture and i'd like to somehow get the text next to, to the right, of the pictures, rather than underneath using css.

i've put together a small simple example of the exact setup on this page:

http://www.pinkgoblin.com/~cumminjo...st/coltest.html

all the css used so far is in the html head.

any ideas how that should be done? thanks.

Reply With Quote
  #2  
Old May 12th, 2003, 01:47 PM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 18

Reply With Quote
  #3  
Old May 12th, 2003, 03:22 PM
balance balance is offline
.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 296 balance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
yup, getting there. thanks.

the images themselves are floating away to the right aswell as the text:

http://www.pinkgoblin.com/~cumminjo...t/coltest2.html

:/ any ideas?

thanks.

Reply With Quote
  #4  
Old May 12th, 2003, 03:51 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 3,009 Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level)Akh User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Days 17 h 35 m 11 sec
Reputation Power: 1223
try to add this to css

css:
p {clear:left;}


and write the text in the same paragraph as the image

html:
<p><img rc="coltest2_files/a-picture.png" class="floatimg" width="260px" height="130px">
<span class="hello">some text i'd really like to get to the right of the picture, rather than underneath.</span></p>



remember to set px to width and height,

Reply With Quote
  #5  
Old May 12th, 2003, 04:36 PM
balance balance is offline
.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 296 balance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
yup, that works a treat. thanks. the bottom looks a bit odd but it doesn't matter because i only put the dashed line on for the purposes of the example page, so i don't intend to actually use the dashed line.

http://www.pinkgoblin.com/~cumminjo...t/coltest3.html

thanks very much that is exactly what i was after.

at the risk of being annoying, a further question: what if i wanted to get each of the text blocks ranged to the bottom of the pictures rather than the tops as they are at the moment in the above linked to example? is that possible? would it need to be done using a completely different method?

Reply With Quote
  #6  
Old May 12th, 2003, 04:41 PM
balance balance is offline
.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 296 balance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
oh, except it's not working in explorer (5.2 os x) :/

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > [css] text up to the right of pic somehow?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap