How can I position my div at the bottom of its container?

前端 未结 24 2770
广开言路
广开言路 2020-11-22 00:46

Given the following HTML:



        
24条回答
  •  春和景丽
    2020-11-22 01:45

    If you want it to "stick" to the bottom, regardless of the height of container, then absolute positioning is the way to go. Of course, if the copyright element is the last in the container it'll always be at the bottom anyway.

    Can you expand on your question? Explain exactly what you're trying to do (and why you don't want to use absolute positioning)?

提交回复
热议问题