Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3693000
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:19:37+00:00 2026-05-19T04:19:37+00:00

Dear all, is there a way to scroll, as in relatively shift the contents

  • 0

Dear all, is there a way to scroll, as in relatively shift the contents of, an element without using javascript, and only using CSS?

If that matters, the element in question has overflow:hidden and white-space: nowrap to make it ‘hide’ some parts of its content. The element is normally scrollable with javascript, but needs to be properly shifted upon initial rendering (and without further interactive scrolling, of course) in case javascript is disabled.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:19:37+00:00Added an answer on May 19, 2026 at 4:19 am

    No. Not with CSS directly.

    You could simulate it, by wrapping the contents with a div and giving it a margin-top value for the amount of scrolling you want.

    (remember to remove it/set it to 0 with javascript when it is enabled)

    update
    A cool idea is what Jamie, mentions in his answer, if it fits your requirements.


    update 2

    Here is another solution i created out of Jamie’s idea, that needs no frames.

    Put an anchor <a name="anchor_name">..</a> at the place you want the scrolling to be and use a

    <meta http-equiv="refresh" content="2;url=#anchor_name_here">
    

    to auto-scroll there. (the meta element should go in the head though for (x)html conformance)

    example at http://www.jsfiddle.net/gaby/f3CVY/5/

    works great in all browsers i tested it (IE, Chrome, FF, Opera, Safari)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Dear All, I'm using dojo.declare to create classes in JavaScript. In one of the
Dear all, I have a select query that currently produces the following results: DoctorName
Dear Masters! Is it possible to ensure, that only characters with codes between 0
Dear all devexpress winform gurus:) My way is simple. First, i create a bindinglist:
dear all..i've a textfield, it using barcode scanner for input data..after scan it shows
Is there any way to connect to the local system (localhost) using BASH. To
Dear all, I am writing a python program that is retrieving edifact log messages
dear All. I'm using integer PKs in some tables of mysql database. Before input
dear all i want to know how to submit asp.net form data using jquery
Dear all, I am beginner in Python. I am looking for the best way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.