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 8310411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:27:00+00:00 2026-06-08T19:27:00+00:00

I would like to add a background image to the textarea that scrolls along

  • 0

I would like to add a background image to the textarea that scrolls along with the content. I’m programming in HTML/JavaScript/CSS specifically for mobile Safari.

I’ve attempted a variety of things but nothing seems to work.
I tried placing the textarea on top of the image and then scrolling the background image whenever the textarea is scrolled. It works more or less fine when I’m typing text, but the native scrollbars (which I don’t want to get rid of) make it look a wreck on mobile Safari.

I tried using a contentEditable div container but that seemed to throw problems too (again with the scrolling).

Is it possible to have a textarea with native scrolling with a background image that scrolls?

  • 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-06-08T19:27:03+00:00Added an answer on June 8, 2026 at 7:27 pm

    A background image can be applied to an input or text element as shown:

    check the fiddle jsfiddle

    html

    <div class="outer">
         <textarea></textarea>
      </div>
    

    css

    .outer { width: 310px; height: 250px; padding: 5px; border: 1px solid #666; -webikit-border-radius: 3px; -moz-border-radius: 3px; overflow:auto;overflow-x:hidden  }
    
    textarea{
        background: #fff url('http://www.toddle.com/images/300_words_background.gif') 0 -220px no-repeat;
        width: 302px;padding:5px; height:99em;
    }
    

    Note: The difference between the two is that the content within the div (assuming it’s coded correctly) will be included as search engine usable text whereas the textarea content will not.

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

Sidebar

Related Questions

i would like to add an image that acts like a border after every
I have a button that, when hovered over, I would like the background image
I would like to add some background audio while an image is being displayed.
I managed to plot my data and would like to add a background image
I would like to add an image as the background image to the image
I would like to add some background music to the splash screen in the
I would like to add a small dice-rolling effect to my Javascript code. I
I would like to add some CSS fixed size blocks inline into a text
I would like to use an image for background in the canvas element provided
I'm creating a simple game using HTML and CSS. I have a background image

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.