You are here: Re: css problem (float) « HTML « IT news, forums, messages
Re: css problem (float)

Posted by Ben C on 09/05/07 09:23

On 2007-09-05, Deephay <tudoxxx@gmail.com> wrote:
> Greetings all,
>
> I am currently writting a 3-column full-width webpage, I have a layout
> problem, here is demo of the page:
[...]
> I have three columns (<div>), the width of the middle column (the last
><div>) will equal to 100% of the body width (according to CSS spec.),
> but the content in that <div> will be put into the spaces between the
> left and right floats according to the CSS spec, my problem is: some
> times my CMS system will put a <table width="100%"><tr><td
> align="center">content</td></tr>, this will break the layout of the
> page because the middle column is not (100% - 2 x %25) but 100% and
> the table width will be 100% either.
>
> Specify the width of the middle column direcly in the stylesheet (45%,
> say) will help, but I am not sure whether it is a good idea.

That sounds like not a bad idea. The problem is you've got padding and
borders so things won't add up properly.

But the general idea of giving the middle column something like width:
45%; margin-left: 25%; margin-right: 25% should do the trick from the
point of view of that stupid table.

Why not fix the CMS system?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация