Jump to content

Strange looking header in Firefox


Recommended Posts

When i Inspect Element in Firefox i can see that div id="header" has the attribute

 

position: fixed; 

 

this seems to be causing the problem, as I "unselect it", the header moves into position.

 

but then the page content moves down which seems to be caused by a top margin: 150px which is in the grid 9 div statement... try making it -60px or whatever you like, to tighten up the page.

 

good luck!

Link to comment
Share on other sites

We'll i'm not such a star in changing codes. So how should i change it?

 

Here is the code :

 

<!-- Header -->
<div id="header" class="grid_9 alpha omega" style="position:fixed; background:#FFF;">
<a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">
 <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/>
 
Thanks
Link to comment
Share on other sites

the question is: you want fixed header? if not, just remove it, if you want - it's necessary to modify the template file a bit. everything depends on it

 

I would like to keep the fixed header. Even with a little less white space underneath the menu. If it works in Firefox than i'm statisfied!

Link to comment
Share on other sites

remove position:fixed from <div id="header">

 

before this add another div <div id="myfixedheader">

and after <div id="header"></div> add another </div> closing tag

 

then with css styles add to myfixedheader width:100% position:fixed; display:block; 

Link to comment
Share on other sites

it still doens't work with firefox! :(

 

I did change the code, but everything alligned to the right and it only got worse.

 

Please write the code that i should put in the Header.tpl and in the Global.css

 

Please advise what tot replace exactly, once again i'm nog good with codes but i'm learning,

Edited by detlev (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...