Click here to Skip to main content
15,885,953 members
Please Sign up or sign in to vote.
1.29/5 (4 votes)
See more:
Hello, I need help! How do I remove the empty space on the right of my home page?
http://www.kolonka-shop.com/
What is causing this?
Thx
Posted
Comments
Suvendu Shekhar Giri 5-Dec-15 13:31pm    
Share the CSS for body tag .
This can be caused by having a fixed width body or some parent container. Also make sure that you havent set margin-right or padding-right wiith some fixed value.
vkosmos 5-Dec-15 15:12pm    
body {
width: 1100px;
margin-left: auto;
margin-right: auto;
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
margin-bottom: 15px;
}
Suvendu Shekhar Giri 5-Dec-15 15:23pm    
Try changing to-
width: 100%;
vkosmos 5-Dec-15 15:26pm    
Looks like it didn't fix the problem.. The page is still horizontally scrollable
Suvendu Shekhar Giri 5-Dec-15 15:31pm    
Wrap all you markup inside a div with css like following-
<body>
<div style='margin: 0 auto;'>
<!-- all your content goes here -->
</div>
</body>

Keep, "width: 1100px;" for body as it was previously.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900