I am having problem in making a screen center for small screens
I’ve created 1500px wide long page designed in photoshop and sliced into tables.
i used the following code to center my page
width:1500px;
margin: 0 auto ;
position:relative;
to make it center , its good on big screens but in small screens a horizontal scrolls appears and its all to left i want to in middle as a default and i can remove it using overflow x hidden.
2
Answers
Your applying a static width to page, so if your viewing in small screen, page gets overflow, so in this case you have to adjust the page width with respect to screen resolution. It can be done by using media query, refer the below link about media query – http://www.w3schools.com/cssref/css3_pr_mediaquery.asp
use your CSS code with different static width in different resolution like
After reviewing your code, you have go with max-width instead of width in container class as said by Neel.
Also set image width as 100% as like in below code.
Problem with your code is, you used tag and gave width of 1500(not dynamic) also i got containers(#index-07_,#container12) with style of
instead of using
change them also add style(obviously not good choice; you may choose specific image tag but for quick fix it will work for you)
i hope it may worked for you