|
Posted by Jake on 12/31/05 03:50
In message <dp06f302b3a@news2.newsguy.com>, Curtis <nospam@nohow.not>
writes
>Len Philpot <len@philpot.org> wrote in message
>news:MPG.1e1d043b6b2d6c1a98974b@news.central.cox.net...
>
>> No code written yet, but I'm trying to figure out how to
>replace the
>> functionality of a two-frame (nav/content) layout with
>CSS. I've heard
>> the objections to frames and although I've never
>personally had any
>> problems with them, I don't dismiss the validity of the
>arguments
>> against them. However, I like the idea of a unchanging,
>non-scrolling
>> nav bar to one side of the page, with the content free to
>do it's thing
>> on the other side (personal preference). I also like the
>idea of the nav
>> frame being one piece of code that's not repeated for each
>content file
>> that gets loaded.
>>
>> So, how do I duplicate that with CSS?
>>
>> Let's say I have two styles :
>>
>> body
>> {
>> margin-left: 220px;
>> }
>>
>> .nav
>> {
>> position: fixed;
>> top: 0px;
>> left: 0px;
>> width: 200px;
>> height: auto;
>> }
>>
>> I've seen enough to know that in Firefox this will work.
>The nav-styled
>> content will stay static to the left while the rest of the
><body> goes
>> on independently about its business to the right of it.
>>
>> Good deal. Except it doesn't work in IE, which apparently
>doesn't
>> recognize 'fixed'. 'absolute', 'static', etc., etc., don't
>give the
>> desired results. Both parts scroll together, either side
>by side, or one
>> renders ahead of the other.
>>
>> Also, even if I get this to work as desired, how do I
>populate 'nav' on
>> multiple pages from a single source, without using SSI (is
>it possible
>> with <object>)? The reason I say without SSI is that this
>is just a
>> hobby page and my ISP doesn't provide any SSI (nor Perl,
>JS, php, etc.)
>> for the defacto ("free") web hosting with standard
>accounts.
>>
>> Can it be done?
>>
>> Thanks.
>
>As I learn about HTML and CSS, including the antiframe
>rhetoric one encounters, I am regularly surprised at how
>many really solid, well-developed applications use frames.
>Two notable recent examples are the admin section of
>VBulletin, and the Horde webmail program.
>
>I probably haven't heard all the arguments, but so far I'm
>not persuaded that frames are Satan incarnate. I don't use
>them, but I wouldn't be afraid to do so.
Interesting. I was beginning to believe I was the only one who didn't
run and hide under the bed when I heard 'Frames' mentioned ;-)
>
>Not an answer to your question, I know, but there it is.
>
>--
>
>Curtis
>
>Visit We the Thinking
>www.wethethinking.com
>An online magazine/forum
>devoted to philosophical
>thought.
>
>
>
>
--
Jake (jake@gododdin.demon.co.uk -- just a 'spam trap' mail address)
Navigation:
[Reply to this message]
|