SyntaxFix
Write A Post
Hire A Developer
Questions
You can't just use a percentage width for the div? Setting the width to 50% will make it 50% as wide as the window (assuming there is no parent element with a width assigned to it).
div