Div positioning question

pmj7's picture

He has: 234 posts

Joined: Nov 2002

Hi

I'm writing a demo service that parses through a given web page, along the lines of AltaVista's Babelfish. After finishing a given page, I want to place some text and graphics at the end. I thought enclosing the content in a div, following it with a br clear="all" statement would cover it. But, I've found a page http://hubblesite.org/newscenter/newsdesk/archive/releases/1995/44/ that starts drawing my text at the top of the page, on top of the rest. Is there some css code I can add to my enclosing div statement for force it to be after everything else? I'm guessing one of the css files for that page sets the divs to float - am I SOL?

Thanks! Smiling

Peter

Touchup image processing applet
Pixel Development Web Design, Photography

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Peter,

I followed the link...and have to admit I don't know what I'm looking for...especially since I didn't see any floating/scrolling divs.

Any rate:

If you are parsing a page onto a new page, why can't you simply append your content just before the closing body tag? Or, if you are intent on using a div, set the div's style.top to the bottom of the screen?

Perhaps a more specific explanation and/or code would be helpful.

Vinny

Where the world once stood
the blades of grass cut me still

He has: 1,380 posts

Joined: Feb 2002

Well, if you are wanting to use a div as another layer, you have to use absolute positioning

Visual Formatting
Box Properties (how to align)

pmj7's picture

He has: 234 posts

Joined: Nov 2002

That's my point. I did just add my code immediately before the tag and it gets drawn starting from the top left part of the page. I'm guessing that one of the css files for that page uses floating divs with absolute positioning. I can't give an absolute position for my stuff that will work with every page on the Internet.

So, the question is, if someone uses floating, absolute-positions divs is there any special css applied to plain old html or span or div that will place it immediately after the existing stuff? I'd prefer to avoid using - gasp! - frames. My code doesn't have to be in a span, div, or anything else. But, it can if it needs to be.

Peter

Touchup image processing applet
Pixel Development Web Design, Photography

pmj7's picture

He has: 234 posts

Joined: Nov 2002

Well, I've tried various things like Tables, divs with a wide variety of styles. Nothing has worked. What I'm using now is a div with a zindex, background and text colours so it covers things if it happens to be on top of them.

I've only found the one site like this, I'm sure there are many more. Is it common to have everything absolutely positioned?

Peter

Touchup image processing applet
Pixel Development Web Design, Photography

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.