I am not a CSS professional. So I only know some basics of it. My task is to have 100% body width and at the same time it should not wrap the contents when browser window resizes.
To achieve this I added display: inline-block to my body tag’s CSS style. But when I does that the width gets decreased. Then I try to add width:100% to body style. The width changed as I wanted but then display: inline-block stopped working. How to enable both these properties at the same time?
<body style="display: inline-block; width:100%"><!--content---></body>
Why you want to fix the
bodywidth? simply use a container inside the body if you want likeCSS
HTML
OR if you want your content area to be
100%than just change your CSS to thisCSS