English 中文(简体)
为什么这不把我想要的东西放在空间?
原标题:Why does this css not space the elements the way I want?
  • 时间:2011-11-16 18:00:56
  •  标签:
  • html
  • css

我正在制作一个桌子,我想有一个顶端、中间部分和一个顶点。 中程也分为左边、更精干和右边。 我希望,这样一点就能够使越来越小或越来越小的人群成为中间的 cent。 然而,我在此强调几个问题:

  1. The table isn t filling the entire height;
  2. The Center-Left and Center-Right aren t holding their widths

I have created a JsFiddle so that you can see what I mean.

http://jsfiddle.net/CGv2Z/"rel=“nofollow> http://jsfiddle.net/CGv2Z/

Thanks!

最佳回答

不要忘记,这是一张桌子,你似乎想把它用于布局(hint:你或许应该不要),以及其他一些问题。

有两个主要问题。

  1. You had every element under .Window set to display: block; and width: 100%. Remove that.
  2. You have the width of .Window-Content-Content set to 100%, which is 100% of it s parent, which isn t what you want. You have left and right set to specific widths, table cells will then naturally fill in the extra width. if the parent table has a width set on it.

rel=“nofollow”>http://jsfiddle.net/CGv2Z/10/

问题回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签