Page 1 of 1
Alignment
Posted: Mon Mar 24, 2014 8:23 pm
by nelio
all of my page on my websites are all equally aligned, except one page 'films' how do i align it equally with all the rest?
www.neliosam.com
thank you
Re: Alignment
Posted: Tue Mar 25, 2014 2:58 pm
by DIGI3
That page triggers scrollbars, which will make everything appear to shift. In your main css, try adding:
Code: Select all
html {
height: 100%;
overflow-y: scroll;
}
This will keep the vertical scrollbar there, just dimming it when it's not needed rather than removing it.
Re: Alignment
Posted: Tue Mar 25, 2014 3:02 pm
by JohnnyB
Code: Select all
html {
height: 101%;
overflow-y: scroll;
}
This will always force the vertical scroll by making the page more than 100% of the browser's (viewport's) height.
Also, using {margin:0 auto} will make block level elements centered (vs using text-align:center)
Re: Alignment
Posted: Tue Mar 25, 2014 7:46 pm
by nelio
where do i begin to change it, do i copy and paste it on html code but where do i paste it?
which section within CSS (is it in the 'Template' or on the 'pages' section?) and where do i paste it next to in the html, i have no cue, im new to this program ...
Re: Alignment
Posted: Tue Mar 25, 2014 11:25 pm
by DIGI3
It's nothing to do with "this program", it's basic CSS. Add it to the top of your main stylesheet.