View Full Version : positioning help please


ivcho
02-03-2003, 05:53 AM
Hey guys,

I have a page that I'm laying out with CSS positioning but I'm stuck at something.

i have a bottom part of the site with privacy/legal links copyright info etc.

how with CSS can I tell it to always be after the longest element on my page which will be my text.

this is how im defining my text tag to give you a better visual of what's happening

#text { position:absolute; visibility:show; left:190; top:117; z-index:1; width:580;}

so pretty much my question is what do i put here

#bottom { position:absolute; visibility:show; ???????????????? }

I realize that I could of course set its top a little down from where the text actually ends but I want the code to do it for me if you know what I mean so that I can use it for other pages too where the text part won't be as long

I really hope my question makes sense and would really appreciate your help

Thank you kindly in advance

altpara
02-03-2003, 07:07 AM
I am not aware of any shortcut for what you're suggesting.

It seems to me you could use JavaScript or some kind of server side scripting to do the job for you, but I don't know how that would work.

Out of curiosity, is there a particular reason you're using absolute
positioning?

You may, or may not be interested in this:
http://www.alistapart.com/stories/flexiblelayouts/

I hope you can find a solution you're happy with. Good luck.

Alcy
02-03-2003, 08:22 PM
You can align it to the bottom, but you'll have to decide where you want to align it horizontally.

#bottom { position:absolute; visibility:show; bottom:0px; left:50% }