以css标签为中心 [英] centering css tabs
问题描述
我正在尝试垂直对齐CSS标签,使其居中,
就像它在apple.com上显示的那样。你可以在这里找到我的网页
( http://cse.unl.edu/~sraju/index-tabs.htm)。它现在与其剩下的
保持一致。任何输入都表示赞赏!
和平,
Saravanan
Saravanan Raju< sa ****** @ earthlink.net>写道:
我试图垂直对齐CSS标签,使其居中,就像它在apple.com上显示的那样。你可以在这里找到我的网页
( http ://cse.unl.edu/~sraju/index-tabs.htm)。它现在与它的左边对齐。
这就是你要求的:浮动:左边
松开所有浮动和显示:阻止li锚点,设置
ul和要显示的li元素:inline,set text-align:center on
包含div。
-
Spartanicus
Saravanan Raju写道:
我正在尝试垂直对齐CSS标签,使其居中,就像它在apple.com上显示的那样。你可以在这里找到我的网页
( http ://cse.unl.edu/~sraju/index-tabs.htm)。它现在与它的左边对齐了。任何输入都表示赞赏!
和平,
Saravanan
作为一名新的css程序员,有人可以解释为什么家<显示页面上的
选项卡有白色背景,其他选项卡
有橙色背景吗?对于tab1 vs tab2 - tab4,我在css
中找不到任何不同的东西吗? (Mozilla 1.4和Konqueror
3.1.4)
(如果您想直接回复,请从我的电子邮件中删除nospam)
Stuart
Saravanan Raju于2004年4月29日在
comp.infosystems写道。 www.authoring.stylesheets:
我正在尝试垂直对齐CSS选项卡,使其居中,就像它在apple.com上显示的那样。你可以在这里找到我的网页
( http ://cse.unl.edu/~sraju/index-tabs.htm)。它现在与它的左边对齐了。任何输入都表示赞赏!
body#tab1 li.tab1,
body#tab2 li.tab2,
body#tab3 li.tab3,
body#tab4 li.tab4 {
border-bottom:1px solid #ffffff;
background-颜色:#ffffff;
}
只有
< body id =" tab1">
所以另一个身体#tabX没有指向任何东西。
可怕的编码,顺便说一句,为什么id =身体?????? ????????
也许还有其他(星界?)身体超过?????????
-
Evertjan。
荷兰。
(请在我的电子邮件地址中将x'变为点数)
I am trying to vertically align the CSS tabs so that it is centered,
like what it appears on apple.com. You can find my web-page here
(http://cse.unl.edu/~sraju/index-tabs.htm). It is now aligned to its
left. Any input is appreciated!
Peace,
Saravanan
Saravanan Raju <sa******@earthlink.net> wrote:
I am trying to vertically align the CSS tabs so that it is centered,
like what it appears on apple.com. You can find my web-page here
(http://cse.unl.edu/~sraju/index-tabs.htm). It is now aligned to its
left.
That''s what you are asking for: float:left
Loose all floats and the display:block on the li anchors, set both the
ul and the li elements to display:inline, set text-align:center on the
containing div.
--
Spartanicus
Saravanan Raju wrote:
I am trying to vertically align the CSS tabs so that it is centered,
like what it appears on apple.com. You can find my web-page here
(http://cse.unl.edu/~sraju/index-tabs.htm). It is now aligned to its
left. Any input is appreciated!
Peace,
Saravanan
As a new css programmer, could someone please explain why the home
tab on the displayed page has a white background and the other tabs
have an orange background? I can''t find anything different in the css
to do that for tab1 vs tab2 - tab4? (Mozilla 1.4 and Konqueror
3.1.4)
(remove the "nospam" from my email if you wish to reply directly)
Stuart
Saravanan Raju wrote on 29 apr 2004 in
comp.infosystems.www.authoring.stylesheets:
I am trying to vertically align the CSS tabs so that it is centered,
like what it appears on apple.com. You can find my web-page here
(http://cse.unl.edu/~sraju/index-tabs.htm). It is now aligned to its
left. Any input is appreciated!
body#tab1 li.tab1,
body#tab2 li.tab2,
body#tab3 li.tab3,
body#tab4 li.tab4 {
border-bottom: 1px solid #ffffff;
background-color: #ffffff;
}
There is only
<body id="tab1">
so the other body#tabX do not point to anything.
Terrible coding, btw, why id= the body ??????????????
Perhaps there are other (astral ?) bodies overthere ?????????
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)
这篇关于以css标签为中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!