Fixed site under the popup, but scroll inside it

Hi,
I have links between different div's inside my popup and that works great when I use "position:fixed;" in the css. The problem is that my popup is quite big so I would like to use "position:absolute;" so that you can scroll to see all of the popup window even though you have a smaller screen.
When I use "position:absolute;" and links to a div inside my popup the whole site is moving, not just the content in my popup. I hope you understand my description. Is there someone who knows a solution on this? Thank you!

  • PC
    • WPMU DEV Initiate

    Hiya,

    Greetings and thanks for posting on the forums.

    I did understand the description however the pop up can be used with html code of any content (eg. contact form etc)

    If you are looking for something like : http://wpdemo.in/

    Then here is the code to achieve it.

    Use the HTML tab of the pop up editor

    <style type="text/css">
    textarea {scrollbar-base-color:orange;}
    </style>
    <!-- Place the above styles between the document's <head></head> tags or in an external stylesheet -->
    <textarea cols="200" rows="40">
    
    Text or content here. Make sure its large enough to make the pop up scrollable.
    
    </textarea>

    You will have to style the content using CSS

    Here is more info on this : http://www.quackit.com/html/codes/html_scrollbars.cfm

    I hope that helps. Please feel free to ask if you have more questions on the same.

    Cheers
    PC

  • Enestedt
    • WPMU DEV Initiate

    Thank you for your fast response! It's something like that I'm looking for. But I need my popup to follow when you scroll in the browser window and when you jump between div's inside the popup the browser window scroll should be still.

    Here a link to my site where you can se my problem.

    http://www.solvatten.se/contact/thank-you/

    If you click on the text links in the top of the popup content, the whole browser is scrolling, I just want the content in the popup to change.

    Is there a way to do that? Thank you!

  • PC
    • WPMU DEV Initiate

    Hiya,

    Sorry for the delay as I was away for the weekend.

    If you click on the text links in the top of the popup content, the whole browser is scrolling, I just want the content in the popup to change.

    Is there a way to do that? Thank you!

    Can you give me the code you have used for the pop up so that I can test it on my lab site to check if we can get it working as a floating pop up (I hope that is what you want)

    Please advise.

    Cheers, PC

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.