Alignment

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
nelio
New Member
New Member
Posts: 3
Joined: Sun Mar 23, 2014 2:31 pm

Alignment

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1792
Joined: Wed Feb 25, 2009 4:25 am

Re: Alignment

Post 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.
Not getting the answer you need? CMSMS support options
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Alignment

Post 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)
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
nelio
New Member
New Member
Posts: 3
Joined: Sun Mar 23, 2014 2:31 pm

Re: Alignment

Post 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 ...
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1792
Joined: Wed Feb 25, 2009 4:25 am

Re: Alignment

Post by DIGI3 »

It's nothing to do with "this program", it's basic CSS. Add it to the top of your main stylesheet.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “Layout and Design (CSS & HTML)”