Focusing website to the middle on smaller res if possible?
Page 1 of 1
Focusing website to the middle on smaller res if possible?
Hi, Im building a website and have got the center bit where all the writing and links and everything on the page is, then i have the background. i would like to get the website just focused on the center part, not the background. currently it does go to the center, but you have a scroll bar to see the sides of the background on smaller screen res. if you go onto a YouTube channel and have it opened in a full-screen page then the background will be there all fine, make the windows smaller and YouTube will automatically re-size the page to the window size and basically 'crop' the background without having the need to put a scroll bar at the bottom.try it on my YouTube channel here: http://www.youtube.com/user/techbitereviews
I hope you understand and thank you in advance for anyone who can help :)
Gaming96.
Re: Focusing website to the middle on smaller res if possibl
well to center on any screen you use css like this#divname {
width:value of width you want to apply
position:relative;
height:auto;
margin:0 auto;
}
Re: Focusing website to the middle on smaller res if possibl
XainPro wrote:well to center on any screen you use css like this
#divname {
width:value of width you want to apply
position:relative;
height:auto;
margin:0 auto;
}
i will try that, thank you :)
Re: Focusing website to the middle on smaller res if possibl
Hi, this did not work but i have worked it out now :) iv changed a few things and experimented and it works just how i wanted! thanksRe: Focusing website to the middle on smaller res if possibl
TechBiteReviews,you are very fast learning and never hesitate to experiment new thing you will be master very soon :)
good luck
Re: Focusing website to the middle on smaller res if possibl
XainPro wrote:TechBiteReviews,
you are very fast learning and never hesitate to experiment new thing you will be master very soon :)
good luck
Thank you! started 3 days ago lol :P
Page 1 of 1