Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - navbar position when changing font size

 
Thread Tools Search this Thread
Old 01-18-2005, 08:01 PM   #1
Default navbar position when changing font size


Hello

Here's the problem page:
http://www.arto.ch/tests/thinklab/index.php
http://www.arto.ch/tests/thinklab/style.css

When I reduce my font size in Firefox, then the nav bar
moves up behind the (dirty and soon replaced test) image.

So what I want is this:
When the user increases his font size then the navbar
should move down because of the higher <h1>. When he
reduces his font size then the navbar should stay under
the image. Any suggestions?

Thanks

--
chlori


chlori
  Reply With Quote
Old 01-18-2005, 09:06 PM   #2
Steve Pugh
 
Posts: n/a
Default Re: navbar position when changing font size

chlori <> wrote:

>Here's the problem page:
>http://www.arto.ch/tests/thinklab/index.php
>http://www.arto.ch/tests/thinklab/style.css
>
>When I reduce my font size in Firefox, then the nav bar
>moves up behind the (dirty and soon replaced test) image.
>
>So what I want is this:
>When the user increases his font size then the navbar
>should move down because of the higher <h1>. When he
>reduces his font size then the navbar should stay under
>the image. Any suggestions?


Set clear: right on #navcontainer so that it must clear the bottom of
the floated image.

Or, set a min-height on the <h1> (not supported by IE but IE doesn't
seem to show the same problem anyway).

Steve

  Reply With Quote
Old 01-18-2005, 09:14 PM   #3
Bernhard Sturm
 
Posts: n/a
Default Re: navbar position when changing font size

chlori wrote:
> Hello
>
> Here's the problem page:
> http://www.arto.ch/tests/thinklab/index.php
> http://www.arto.ch/tests/thinklab/style.css
>
> When I reduce my font size in Firefox, then the nav bar moves up behind
> the (dirty and soon replaced test) image.
>
> So what I want is this:
> When the user increases his font size then the navbar should move down
> because of the higher <h1>. When he reduces his font size then the
> navbar should stay under the image. Any suggestions?


this
<img src="images/TLC_Logo.gif" width="147" height="60" id="logo" />
should read
<img src="images/TLC_Logo.gif" width="xxem" height="yyem" id="logo" />

note:you could drop the width and heights of your image in XHTML and
include it in you CSS, and use units in your CSS...

use ems for all positioning instead of px this will ensure that all
elements within the page layout will magnify proportionally...

HTH
bernhard
--
www.daszeichen.ch
remove nixspam to reply
  Reply With Quote
Old 01-19-2005, 05:02 AM   #4
Richard
 
Posts: n/a
Default Re: navbar position when changing font size

On Tue, 18 Jan 2005 21:01:02 +0100 chlori wrote:

> Hello


> Here's the problem page:
> http://www.arto.ch/tests/thinklab/index.php
> http://www.arto.ch/tests/thinklab/style.css


> When I reduce my font size in Firefox, then the nav bar
> moves up behind the (dirty and soon replaced test) image.


> So what I want is this:
> When the user increases his font size then the navbar
> should move down because of the higher <h1>. When he
> reduces his font size then the navbar should stay under
> the image. Any suggestions?


> Thanks


A 2 col division for the two images would solve that problem.
You have a div for the <li> container, why not above it?


  Reply With Quote
Old 01-19-2005, 08:59 AM   #5
Steve Pugh
 
Posts: n/a
Default Re: navbar position when changing font size

"Richard" <Anonymous@127.001> wrote:
>On Tue, 18 Jan 2005 21:01:02 +0100 chlori wrote:
>
>> Here's the problem page:
>> http://www.arto.ch/tests/thinklab/index.php

>
>> When I reduce my font size in Firefox, then the nav bar
>> moves up behind the (dirty and soon replaced test) image.

>
>A 2 col division for the two images would solve that problem.


There's only one image on that page. What universe are you in today?

Steve

  Reply With Quote
Old 01-19-2005, 09:03 AM   #6
chlori
 
Posts: n/a
Default Re: navbar position when changing font size

Steve Pugh schrieb am 18.01.2005 22:06:
> Set clear: right on #navcontainer so that it must clear the bottom of
> the floated image.


Works perfectly here on IE/Firefox. Thanks, great help!

--
chlori
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump