You are here: Re: Trouble structuring my site « HTML « IT news, forums, messages
Re: Trouble structuring my site

Posted by zacariaz on 09/23/07 08:09

On 23 Sep., 09:47, "Chris F.A. Johnson" <cfajohn...@gmail.com> wrote:
> On 2007-09-23, zacar...@gmail.com wrote:
> > Imagine this:
> > The site layout is split in three parts: 'top', 'middle' and 'bottom'.
> > all three parts are 100% width, 'top' and 'bottom' are x pixels high
> > and middle hight is to fill the rest of the page. Standard scrolling
> > is disabled and 'middle' is set to (css) 'overflow:auto'.
> > Problems:
>
> The problems are stated clearly in your first paragraph.
>
> You have no idea what anyone's browser window look like. Setting a
> height in pixels (for anything other than a fixed-size object like
> an image) is doomed to failure.
>
I know for a fact that it is possible with the use of tables, an
example:
http://www.zacariazdisciples.net/g33kz%2Dinn/ (doesnt work as i have
specified doctype, but it should be clear from the code)

> > 1. i can't get the structure right without using table, but tables are
> > not my favorit solution and it seems to me that it should be possible
> > doing it just with 'div' tags and css.
>
> It is possible. You are trying to do the wrong thing.
>
Yes, but it seems to me that if it is possible in tables it should
allso be possible by the use of divs, but maybe im mistaken.

> > 2. I have been unable to specify a doctype which allows (css)
> > 'overflow', all though it works without a doctype.
>
> It works in HTML 4.01 strict.
>
this is the doctype i am currently using:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
If this is correct, im really confused, assuming you are correct of
course.

> > 3. (css) 'overflow' doesn't work, with or without doctype, in 'Mozilla
> > Firefox'.
>
> It works in my Firefox browser.
>
well it doesnt in mine, but it may allso have to do with the fact that
i this havent solved the doctype problem.

> > I have tried over nad over again, i've asked at various forums etc.
> > but seemingly there is not solution to the problem... I refuse to
> > accept that.
>
> Post a URL demonstrating the problem.
>
http://www.zacariazdisciples.net/g33kz%2Dinn/index.htm
http://www.zacariazdisciples.net/g33kz%2Dinn/layout.jpg (what it is
suposed to look like and does in IE without specityed doctype)
> --
> Chris F.A. Johnson <http://cfaj.freeshell.org>
> ===================================================================
> Author:
> Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

 

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

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