css question - anchoring div to bottom of container div
Hi all, Jason White here. I've been lurking on the digest for a while. I'm ready to ask and contribute now ... I think. Well, at least ask ;) I'm customizing a theme and need to anchor one div's bottom to the bottom of its container div for the purpose of tabs. Does anyone have a good css trick for that or any tips? I'd like to avoid absolute positioning if possible. The theme uses phpTemplate (Drupal 4.7). Below is a crude ascii representation of what I am after. ------------------------------------------- | | | parent div | | | | ---------------------------------------- | | 'child' div | ------------------------------------------- TIA, Jason
Hi Jason, There's a good article on footers on ALA: http://alistapart.com/articles/footers. I've used it on several sites, and it works well. But it does make use of absolute positioning. hope this helps, -- bruno Jason White wrote:
Hi all,
Jason White here. I've been lurking on the digest for a while. I'm ready to ask and contribute now ... I think. Well, at least ask ;)
I'm customizing a theme and need to anchor one div's bottom to the bottom of its container div for the purpose of tabs. Does anyone have a good css trick for that or any tips? I'd like to avoid absolute positioning if possible. The theme uses phpTemplate (Drupal 4.7).
Below is a crude ascii representation of what I am after.
------------------------------------------- | | | parent div | | | | ---------------------------------------- | | 'child' div | -------------------------------------------
TIA,
Jason ------------------------------------------------------------------------
_______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
-- "Open information is mind power." www.indymedia.be _ www.getbasic.be _ www.fluxx.be PGP public key: http://keys.indymedia.org _ id: D48B28E2
Jason White wrote:
I'm customizing a theme and need to anchor one div's bottom to the bottom of its container div for the purpose of tabs. You can absolutely position a child element within a relatively positioned parent.
-- Adrian Simmons (aka adrinux) <http://adrinux.perlucida.com> e-mail <mailto:adrinux@perlucida.com>
participants (3)
-
Adrian Simmons -
Bruno De Bondt -
Jason White