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

  • SEARCH
  • Home
  • 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 6725369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:47:57+00:00 2026-05-26T09:47:57+00:00

For the following code the vertical scrollbar does not seem to scroll down at

  • 0

For the following code the vertical scrollbar does not seem to scroll down at all to view the text? Any help greatly appreciated. Have tried changing both overflow and positioning but did not work. Maybe an issue with the javascipt possibly? Or maybe a conflict between the css and js? Thanks:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"       type="text/javascript"></script>
 <title>AUTO RESIZE BACKGROUND IMAGE</title>
 <script type="text/javascript">
 $(document).ready(function() {
      $("#triquibackimg").load(function(){
           resize_bg();
      })
      $(window).resize(function(){
           resize_bg();
      })
      function resize_bg(){
           $("#triquibackimg").css("left","0");
           var doc_width = $(window).width();
           var doc_height = $(window).height();
           var image_width = $("#triquibackimg").width();
           var image_height = $("#triquibackimg").height();
           var image_ratio = image_width/image_height;      
           var new_width = doc_width;
           var new_height = Math.round(new_width/image_ratio);
           if(new_height<doc_height){
                new_height = doc_height;
                new_width = Math.round(new_height*image_ratio);
                var width_offset = Math.round((new_width-doc_width)/2);
                $("#triquibackimg").css("left","-"+width_offset+"px");
           }
           $("#triquibackimg").width(new_width);
           $("#triquibackimg").height(new_height);
      }
 });      
 </script>
 <style type="text/css">
      #triquiback{
           left: 0;
           top: 0;
           position:fixed;
           overflow: auto;
           zIndex: -9999
      }
      #triquibackimg{
           position:relative    
      }      
 </style>
</head>
<body>
 <div id = "triquiback">
      <img id = "triquibackimg" src =     "http://www.lightmedia.hu/hirlevel/sonybmg/foofighters/061124/sajto_2.jpg" />
 </div>

<div>

hi
</div>
</body>
</html>
  • 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-26T09:47:58+00:00Added an answer on May 26, 2026 at 9:47 am

    You need to wrap your text in a container which has some kind of positioning (relative should be fine for all purposes), otherwise it’ll stay behind the other positioned element. Here’s an example: http://jsfiddle.net/VkQ67/1/

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

Sidebar

Related Questions

I have the following code to scroll images in vertical direction (uses jCarouselLite )
The following code does not work, and throws a RuntimeException caused by NullPointerException public
I have the following code on my page: <p align=justify style=font-size:10pt;display:block;height:200px;vertical-align:middle;> Content </p> I
The following code works great in IE, but not in FF or Safari. I
The following code doesn't compile with gcc, but does with Visual Studio: template <typename
I have a the following html code: <div class=panel>Some Text Here</div> With the following
I would like to reduce the vertical size of a JButton. The following code
I have the following code which tries to combine a vertical mirrored image with
Hi all I have created layout using following code <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
Consider following code : <p style=margin: 30px 0; padding: 0;>Some text some text some

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.