CSS - 对齐DIV的底部 [英] CSS - Aligning to the bottom of a DIV

查看:88
本文介绍了CSS - 对齐DIV的底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个非常基本的问题。 。 。


我有一个DIV,其中包含我需要底部证明的内容。


这样做的CSS代码是什么?


谢谢,


--------------- S

解决方案

S< ju ******* @ gmail.com>写道:

我有一个DIV,其中包含我需要底部证明的内容。

CSS代码是做什么的?



请提供上下文,您实际上尝试的是什么?
呢?


- -

Spartanicus


http://www.dorseygraphics.com/review/ginsberg/


将鼠标悬停在单词series上时在页面底部,菜单弹出

up。我需要菜单的元素住在靠近底部,如果需要,可以在空格上方使用
以获得更多项目。


我正在创建一个模板如果其他网站开发人员被要求在这个网站上工作。我需要轻松地将菜单添加到菜单中,并且证明在DIV底部的内容可以很容易地放入

新菜单项它们会堆叠起来,菜单底部永远不会移动。


--------------- S $ />

上午11/23/05 1:10 AM,文章
2R ******************* ************* @ n ... utvinternet.ie

" Spartanicus" <在***** @ invalid.invalid>写道:

S< ju ******* @ gmail.com>写道:

我有一个DIV,其中包含我需要底部证明的内容。

CSS代码是做什么的?


请提供上下文,您实际上想要做什么?




< blockquote> On Tue,2005年11月22日21:04:56 -0800,S< ju ******* @ gmail.com>写道:

我有一个DIV,其中包含我需要底部对齐的内容。
CSS代码是做什么的?




CSS ...


div {padding-bottom:0; }

p {margin-bottom:0; border-bottom:none; padding-bottom:0; }


标记...


< DIV>< P>底部对齐内容< / P>< / DIV>


CSS1推荐......

http://www.w3.org/TR/CSS1


....阅读它。


-

Rex


Here''s a very basic question. . .

I have a DIV that contains content that I need to be bottom-justified.

What is the CSS code to do that?

Thanks,

---------------S

解决方案

S <ju*******@gmail.com> wrote:

I have a DIV that contains content that I need to be bottom-justified.

What is the CSS code to do that?



Provide the context please, what is it that you are actually trying to
do?

--
Spartanicus


http://www.dorseygraphics.com/review/ginsberg/

When you mouse over the word "series" at the bottom of the page, a menu pops
up. I need the elements of the menu to live near the bottom, with space
above them for more items if needed.

I''m creating a template in case other web developers are asked to work on
this site. I need to make it easy to add items to the menu, and justifying
the content along the bottom of the DIV makes it very easy to just drop in
new menu items and they will stack up, with the bottom of the menu never
moving.

---------------S

On 11/23/05 1:10 AM, in article
2r********************************@n...utvinternet.ie,
"Spartanicus" <in*****@invalid.invalid> wrote:

S <ju*******@gmail.com> wrote:

I have a DIV that contains content that I need to be bottom-justified.

What is the CSS code to do that?



Provide the context please, what is it that you are actually trying to
do?




On Tue, 22 Nov 2005 21:04:56 -0800, S <ju*******@gmail.com> wrote:

I have a DIV that contains content that I need to be bottom-justified.
What is the CSS code to do that?



CSS...

div { padding-bottom: 0; }
p { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

Markup...

<DIV><P>Bottom aligned content</P></DIV>

CSS1 Recommendation...

http://www.w3.org/TR/CSS1

....read it.

--
Rex


这篇关于CSS - 对齐DIV的底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆