Hey there,

I'm new to CSS and I'm building my personal website. I have an issue with the right side bar when browser is re-sized. I posted two images (a working example and the issue I'm facing).


Any help would be greatly appreciated.

You need to add a wrapper div around the entire existing content with a defined width which will hold the other divs in place. Otherwise the content in the two divs will do exactly what you are showing when the viewport is less than their combined widths.

you can set a min-width and max-width restraint on the outer wrapper div for better control.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.