Dixie Dean wrote:
> Hi everyone
>
> I have a mobile device version of a web based product that has a div
> which appears across the top of the page with a menu in it.  Currently,
> if the user clicks on a hyperlink in a page which goes to a bookmark in
> that or another page, the bookmark by default appears at the top of the
> page, which will, of course, be hidden under the menu.  In fact the menu
> hides the first two lines of any page but only when it is scrolled
> upwards.  The page is normally displayed as starting immediately below
> the menu.
>
> Does anyone have any thoughts as to how the top of the page might be
> shifted down by the depth of the div area?
>
> Dixie Dean
>   

Can you provide a URL?

If I understand what you describe, try placing something like this at 
the top of the page.

<p>&nbsp;</p>

You may, based on circumstances, want to place that in its own div:

<div>
    <p>&nbsp;</p>
</div>

This is obviously an HTML solution, not a CSS one. It may be enough to 
accomplish what you want.

 From a CSS point of view, you can consider the "position" property value.

.topspacer {
    position: absolute;
    top: Npx;
}

<div class="topspacer">
    <stuff></stuff>
</div>

where N equals the number that will achieve the spacing you want.

Bill B

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to