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 December 26th, 2001, 09:01 PM
rezag rezag is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: Toronto
Posts: 16 rezag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 12 sec
Reputation Power: 0
image placement using CSS

I have the following situation:
<body>
some text with no css associated with it just aligned LEFT

<img> some image with a css selector that is as follows:
h3{position: relative;
left: 60%;
top: 0%;}

<table> a table of 1 row with two cells (50% widths)
....
</body>
I do not want to add any css stuff to the text or the table nor change their HTML tags/properties.
With the relative style the img is placed 'under' the text (60% to the left which is what I need)but I want it to be on the top of the page immediately to the right of the left aligned text. If I use absolute positioning for the img it covers the contents of the table. Is there a way to 'push' the table to just below the image remembering that my only option at this point is playing around with that h3 style only.

can anybody help me out?

Reply With Quote
  #2  
Old December 27th, 2001, 12:38 AM
wabirdman wabirdman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Australia
Posts: 111 wabirdman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 19 sec
Reputation Power: 13
What about putting the image inside the table?

wabirdman
__________________
Real programmers code in binary

Reply With Quote
  #3  
Old December 27th, 2001, 03:53 AM
binky's Avatar
binky binky is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: New Zealand
Posts: 1,774 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 58 m 15 sec
Reputation Power: 23
Try this in the img tag:

style="float:right"

it could be what you're after. It will align the image to the right of the screen and wrap the text along side it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > image placement using CSS

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