Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33272

How to fix a div at top scroll position?

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Tuxedo <tuxedo@mailinator.com>
Newsgroups comp.lang.javascript
Subject How to fix a div at top scroll position?
Date Thu, 11 May 2017 08:24:47 +0200
Organization solani.org
Lines 15
Message-ID <of1096$uco$1@solani.org> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace solani.org 1494484070 31128 eJwNzAkBwDAIBDBLLc8BciiPfwlbBEQZF2UChejqPjQ3utecntnQbRossU+2mqglD8eJ8mJ9IEnvPG5xsawI9YybipH+v5lXXA0YE9MZ+gCfDR4T (11 May 2017 06:27:50 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 11 May 2017 06:27:50 +0000 (UTC)
User-Agent KNode/4.10.5
X-User-ID eJwFwYEBwCAIA7CXRGhh54gd/59gAqfxZhAMDGZV/dvc7kC3+DWWkiF6u7KPSeCCdlTQ5zwTXBDS
X-NNTP-Posting-Host eJwNyEcBwDAMBDBK3gNO4vj4Q2j1lGtwTFp4mMNxq83pqolKqnDa3P9G1iOBWmGiNj2Ar09nF0R65VTtu2WHGaZx4g0og6TE62mML7r0A1XLHVk=
Cancel-Lock sha1:UTebZuWKhMRgkPe+8/xrRK+Ljrc=
Xref csiph.com comp.lang.javascript:33272

Show key headers only | View raw


Hello,

What methods are usually used for a typical top menu bar (div) to stay in 
fixed position and in constact view once its top edge hits the browser 
ceiling viewport, so that the div thereafter overlaps the remaining page 
contents when scrolled further down? 

Initially, the div is not in the topmost part of a page, but follows a 
visual image header.

Maybe this isn't specifically a JS question, maybe CSS is all that's needed. 
If it's a JS question, how is it done?

Many thanks,
Tuxedo

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to fix a div at top scroll position? Tuxedo <tuxedo@mailinator.com> - 2017-05-11 08:24 +0200
  Re: How to fix a div at top scroll position? Tuxedo <tuxedo@mailinator.com> - 2017-05-11 23:22 +0200
    Re: How to fix a div at top scroll position? Ram Tobolski <ramtob@gmail.com> - 2017-05-12 08:53 -0700
      Re: How to fix a div at top scroll position? Tuxedo <tuxedo@mailinator.com> - 2017-05-13 14:31 +0200
        Re: How to fix a div at top scroll position? Tuxedo <tuxedo@mailinator.com> - 2017-05-13 19:14 +0200
          Re: How to fix a div at top scroll position? Tim Streater <timstreater@greenbee.net> - 2017-05-13 18:25 +0100
            Re: How to fix a div at top scroll position? Tuxedo <tuxedo@mailinator.com> - 2017-05-14 00:09 +0200
              Re: How to fix a div at top scroll position? Ram Tobolski <ramtob@gmail.com> - 2017-05-14 04:28 -0700
          Re: How to fix a div at top scroll position? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2017-05-16 06:17 -0700
            Re: How to fix a div at top scroll position? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-16 15:24 +0200
            Re: How to fix a div at top scroll position? Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-05-16 16:26 +0200
              Re: How to fix a div at top scroll position? Julio Di Egidio <julio@diegidio.name> - 2017-05-16 12:53 -0700
                Re: How to fix a div at top scroll position? Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-05-17 00:06 +0000
                Re: How to fix a div at top scroll position? Julio Di Egidio <julio@diegidio.name> - 2017-05-16 17:49 -0700
                Re: How to fix a div at top scroll position? Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-05-17 09:22 +0000
                Re: How to fix a div at top scroll position? Julio Di Egidio <julio@diegidio.name> - 2017-05-17 12:10 -0700
                Re: How to fix a div at top scroll position? Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-05-18 12:53 +0000
                Re: How to fix a div at top scroll position? Julio Di Egidio <julio@diegidio.name> - 2017-05-18 13:30 -0700
            Re: How to fix a div at top scroll position? Julio Di Egidio <julio@diegidio.name> - 2017-05-16 12:52 -0700
  Re: How to fix a div at top scroll position? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2017-05-15 13:57 -0700

csiph-web