HighDots Forums  

Float a <div> in bottom right corner of paragraph

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Float a <div> in bottom right corner of paragraph in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
J Rice
 
Posts: n/a

Default Float a <div> in bottom right corner of paragraph - 07-24-2006 , 06:28 PM







Hi,
I'm trying to work out how to float a <div> box in the lower right
corner of a paragraph. I have no trouble getting it to work in the
upper right or upper left corners and having the text wrap around the
box as expected: ie

AA XXXXXXXXXXXXXXX
AA XXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX

or

XXXXXXXXXXXXX AA
XXXXXXXXXXXXX AA
XXXXXXXXXXXXXXXX

What I want, however, is:

XXXXXXXXXXXXXXXX
XXXXXXXXXXXXX AA
XXXXXXXXXXXXX AA

I have tried using position:relative and top:, but while this moves the
box (AA) to where I want, the text (XX) doesn't wrap around it -- it
runs through/behind it. Using a margin:top or padding-top: value
results in a different problem, where the text XX no longer runs over
the box, like this:

XXXXXXXXXXXX
XXXXXXXXXXXX AA
XXXXXXXXXXXX AA

How do I do this? It seems like the normal behavior is for the top of
the floated box to be aligned with the top of the first line of the
parent container. So how do I get it so the bottom line is aligned
with the bottom line of the parent instead?

Jeff


Reply With Quote
  #2  
Old   
Els
 
Posts: n/a

Default Re: Float a <div> in bottom right corner of paragraph - 07-24-2006 , 06:36 PM






J Rice wrote:

Quote:
Hi,
I'm trying to work out how to float a <div> box in the lower right
corner of a paragraph.
[snip]

Quote:
How do I do this? It seems like the normal behavior is for the top of
the floated box to be aligned with the top of the first line of the
parent container. So how do I get it so the bottom line is aligned
with the bottom line of the parent instead?
You don't. It just doesn't work.

--
Els http://locusmeus.com/


Reply With Quote
  #3  
Old   
J Rice
 
Posts: n/a

Default Re: Float a <div> in bottom right corner of paragraph - 07-24-2006 , 07:26 PM




Els wrote:
Quote:
J Rice wrote:

Hi,
I'm trying to work out how to float a <div> box in the lower right
corner of a paragraph.

[snip]

How do I do this? It seems like the normal behavior is for the top of
the floated box to be aligned with the top of the first line of the
parent container. So how do I get it so the bottom line is aligned
with the bottom line of the parent instead?

You don't. It just doesn't work.
Aha. I wonder if that explains why I haven't been able to figure it
out.



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.