上帝我想念桌子 - 需要帮助! [英] God I miss tables-help needed!

查看:52
本文介绍了上帝我想念桌子 - 需要帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨再次,

好​​的,所以这个布局有两个新问题
http://www.paulwatt.info/test/turn/


1)当我增加宽度时主要内容Div从73%到74%线路

它与页面的右侧一起,整个div下降到leftcell div的

级别以下。把它恢复到73%并且它回到它的

正确的位置。


2)它在IE中看起来不错,但在FF中绝对是狗吃晚餐。为什么这个?


再次感谢您的帮助!

好​​的旧< table>这将太容易了。标签!


Paul

http ://www.paulwatt.info

解决方案

而且,Paul Watt在

alt中发言.html,alt。 http://www.webmaster,comp。 infosystem ... g.stylesheets:

嗨再次,
好的,所以这个布局我有两个新问题
http://www.paulwatt.info/test/turn/

1)当我将主要内容Div的宽度从73%增加到74%时,用页面的右侧将其增加,整个div下降到<左侧div的
级别。把它恢复到73%并且它回到它正确的位置。

2)它在IE中看起来很好,但在FF中绝对是狗的晚餐。为什么这样?

再次感谢您的帮助!用好旧的< table>这将很容易做到
标签!




保罗,你正在采用表格布局的思维方式,并试图在CSS上强制使用它并希望它符合要求。这些块仍然是细胞。你好,这可能是为什么你觉得需要在

上过度指定属性。放松一下,记住你拥有的CSS越多,就越难以调试
。保持简单,你要使用的块元素的默认样式已经提供了你想要做的大部分内容。


首先,删除完全来自.maincontent规则的width属性。

< div>'默认情况下展开以适应所有可用的水平空间,所以

margin-left属性是这里只需要宽度限制样式。


要改变.maincontent div与菜单分开的距离,只需更改边距值即可。
- 左翼财产。就是这样。


灰色


-

技术公理,没有什么不可能是阴险的暗示没有什么是荒谬的。

- http://www.greywyvern.com/orca#search - Orca搜索:全功能

蜘蛛和网站搜索引擎


格雷,


我是否正确地从这个帖子推断出表格正在被布局所取代的
取代。你能指点我一些讨论这种演变的网站吗?


非常感谢,

Richard


" Richard" <日********************** @ USComputerGurus.com>写在

新闻:11 ********************** @ e56g2000cwe.googlegr psps.com:

格雷,

我是否正确地从这个帖子推断表格被div替换为布局。你能指点我讨论这个演变吗?



http://w3.org

-

Karl Groves
http://karlcore.com
http://chevelle.karlcore.com

辅助功能讨论列表: http://smallerurl.com/?id=6p764du


Hi again,
Ok so I''ve got two new problems with this layout
http://www.paulwatt.info/test/turn/

1) When I increase the width of the Maincontent Div from 73% to 74% to line
it up with the right hand side of the page, the whole div drops to below the
level of the leftcell div. put it back to 73% and it goes back to its
correct posistion.

2) It looks fine in IE but a absolute dogs dinner in FF. whys this?

Thanks once again for all your help! This would be soooooo easy to do with
the good old <table> tag!

Paul

http://www.paulwatt.info

解决方案

And lo, Paul Watt didst speak in
alt.html,alt.http://www.webmaster,comp.infosystem...g.stylesheets:

Hi again,
Ok so I''ve got two new problems with this layout
http://www.paulwatt.info/test/turn/

1) When I increase the width of the Maincontent Div from 73% to 74% to
line
it up with the right hand side of the page, the whole div drops to below
the
level of the leftcell div. put it back to 73% and it goes back to its
correct posistion.

2) It looks fine in IE but a absolute dogs dinner in FF. whys this?

Thanks once again for all your help! This would be soooooo easy to do
with the good old <table> tag!



Paul, you are taking the table-layout mode of thought and trying to force
it upon CSS and expecting it to comply. These blocks are still "cells" to
you, which is likely why you feel the need to over-specify properties on
them. Relax, and remember that the more CSS you have, the harder it is to
debug. Keep things simple, the default styles on the block elements you
are using already provide for most of what you are trying to do.

First, remove the width property from the .maincontent rule entirely.
<div>''s expand to fit all available horizontal space by default, so the
margin-left property is the only width-limiting style you require here.

To change how far the .maincontent div sits apart from the menu, just
change the value of the margin-left property. That''s it.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- http://www.greywyvern.com/orca#search - Orca Search: Full-featured
spider and site-search engine


Grey,

Am I correct in inferring from this thread that tables are being
superceded by divs for layout. Could you point me to some website(s)
that discuss this evolution?

Many thanks,
Richard


"Richard" <Ri**********************@USComputerGurus.com> wrote in
news:11**********************@e56g2000cwe.googlegr oups.com:

Grey,

Am I correct in inferring from this thread that tables are being
superceded by divs for layout. Could you point me to some website(s)
that discuss this evolution?



http://w3.org

--
Karl Groves
http://karlcore.com
http://chevelle.karlcore.com

Accessibility Discussion List: http://smallerurl.com/?id=6p764du


这篇关于上帝我想念桌子 - 需要帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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