navbar position when changing font size

S

Steve Pugh

chlori said:
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
 
B

Bernhard Sturm

chlori said:
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
 
R

Richard

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?

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

chlori

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top