fixed div even when page is scrolling

Posted on 2009-07-10
Last Modified: 2013-11-19
I have a asp page where I need to create a fixed div to show some static content on the right side of the page. I want this to be seen even when users are scrolling over the page so that this div stays in same position.  
Question by:ChekKus
  • 3
  • 2

Expert Comment

ID: 24825645


Open in new window


Author Comment

ID: 24825674
seems like this will keep the div in fixed position. But, it does not scroll the div when I scroll the page.

Expert Comment

ID: 24825817
What? I am doing this right now in my browser and the div stays on the page exactly where i have it. it never disappears from the page. Isn't this what you want?

Author Comment

ID: 24826071
    <table width="1024" style="height: 1024;" border="1">
            <td style="width: 60%;">
                    This is a fixed text</h2>
            <td style="width: 40%;">
                <div style="bottom: 10px; left: 0; position: fixed; text-align:center;">
                    this is the text that should be there even if the page scrolls at the fixed position. kind of like a floating div</div>

Accepted Solution

ChekKus earned 0 total points
ID: 24880836
I am looking for something like this.

if you check the right side, the "web development" box remains in same position even when the page is scrolled. any idea how can we do this?

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS Logo Problem. 2 20
two div layout one vertical other horizontal. 5 25
CSS issue 8 31
Why a span is lower 2 20
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question