Template Print version

About the template and stylesheet - and changing the menu
Post Reply
jop
Posts: 66
Joined: Sun Sep 20, 2009 1:05 pm

Template Print version

Post by jop » Sun Feb 21, 2016 8:35 am

Using CMSimple_XH 1.6.7 with an old template. Print Version displayed without a margin on the left - how can I get a small indentation / margin on the left side?
/jop

Tata
Posts: 3068
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Template Print version

Post by Tata » Sun Feb 21, 2016 9:49 am

Try in stylesheet:

Code: Select all

body{margin-left: <some value, e.g. 2em, 15px or any desired value>;}
or put the whole template into one DIV:

Code: Select all

<body...>
<div class="page-wrapper">
the rest of tehplate
</div>
</body>
</html>
and set the margin-left for .page-wrapper in stylesheet.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 13273
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Template Print version

Post by cmb » Sun Feb 21, 2016 10:19 am

Tata wrote:Try in stylesheet:

Code: Select all

body{margin-left: <some value, e.g. 2em, 15px or any desired value>;}
If you want the margin to be applied to the print version only, just change the selector:

Code: Select all

body.print{margin-left: <some value, e.g. 2em, 15px or any desired value>;} 
Christoph M. Becker – Plugins for CMSimple_XH

jop
Posts: 66
Joined: Sun Sep 20, 2009 1:05 pm

Re: Template Print version

Post by jop » Sun Feb 21, 2016 11:15 am

Thanks - the print version only is exactly what I needed.
PS: Unfortunately just discovered it does not work on ipad - tried both safari and google chrome?

cmb
Posts: 13273
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Template Print version

Post by cmb » Sun Feb 21, 2016 7:09 pm

jop wrote:Unfortunately just discovered it does not work on ipad - tried both safari and google chrome?
Hm, that might be a caching issue. Have you tried to clear the browser cache?
Christoph M. Becker – Plugins for CMSimple_XH

jop
Posts: 66
Joined: Sun Sep 20, 2009 1:05 pm

Re: Template Print version

Post by jop » Mon Feb 22, 2016 3:52 pm

Thanks, that helped :D

svasti
Posts: 1649
Joined: Wed Dec 17, 2008 5:08 pm

Re: Template Print version

Post by svasti » Wed Feb 24, 2016 10:33 pm

jop wrote:PS: Unfortunately just discovered it does not work on ipad - tried both safari and google chrome?
Do you print from your ipad? I never thought anybody would do that... as I just made a template for somebody where the print button disappears on small screens :shock:

Post Reply