Smooth scroll in one div with two divs @ 100% height side by side

Looking to have 100% height on two divs side by side. I want to keep each div independent in scrolling content in each but in the blue div/column, I would like to have a smooth scroll feature. It works now but you will see the red column does not retain its 100% column height.

Thanks for any insight...

https://jsfiddle.net/o1grxdw5/12/
brihol44Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Slick812Commented:
greetings  brihol44, ,  You can use javascript to get the display height of the blue div with -
        var hgt = $( "#bdiv" ).height();
and then set the height of the red div with -
        $( "#adiv" ).height(hgt);

$(document).ready(function (){
var hgt = $( "#bdiv" ).height();
$( "#adiv" ).height(hgt);

            $('a').click(function (){
                $('html, body').animate({
                    scrollTop: $("#sectionb").offset().top
                }, 2000);
            });
        });

Open in new window


And the red div is displayed as 100%, but because it is a FLOAT , , it uses the window height as the measure for 100%, not the container
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brihol44Author Commented:
Alright! I'll check it out later tonight and see how it works. Thx
0
Slick812Commented:
this question has been inactive for more than 14 days and must be closed for cleanup. points awarded to solution code
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.