I want to position class submit_button relative to class guestbook, but not relative to class message_header or class message. The container div is centered so absolute positioning wouldn't work I guess.
The message divs are php-generated and their height and amount changes per entries so I can't position the submit button relative to messages, if I want it to stay at an exact place.
Previous example is a pseudo-page, the actual page is sliced into dozens of cells of different widths and heights. Tables because I want some things to line up pixelwise exactly without doing loads of hacks and redirections to different pages for users using different versions of different browsers.
Edit: What I've understood from several layout positioning tutorials and explanations, absolute positioning should position relative to parent(container div). However in this case it positions relative to browser window.
It will position relative to
It will position relative to the parent if the parent (or ancestor) has a positioning context. Add position: relative; to the parent to accomplish this. But I must ask, where do you want the submit button? Could you not just use margins and padding to place it? And I'd bet you could do this without the table...
Aah, thank you, works
Aah, thank you, works perfectly.
Positioning the submit button would be easy with css only I assume. When I asked here earlier if it would be easy to position css graphics page exactly pixelwise I got answer 'It's not doable or you would go insane trying.'
p.s. If you really want to see it at it's current uploaded state: http://clanfrp.byethost13.com/cms there it is. You probably hate it for all the non-informative gfx(much of it is insider stuff) and unscalability, but this heavy look is the way I like my pages. It's still 350kilobytes or so and I'm aiming for <200.
p.p.s. Thanks again