Use an image as the background for a page

Found a bug? Just having trouble getting Trunk to do what you want? Want to help other users?

Use an image as the background for a page

Postby katarihug » Wed Mar 10, 2010 3:41 am

Hi there - does anyone know if it is possible to define an image as the background for a page? I have worked how to change the colour but I want some pages to look a bit different to the plain white :)

Cheers,
Andrew
katarihug
 
Posts: 12
Joined: Tue Feb 09, 2010 9:21 am

Re: Use an image as the background for a page

Postby mgkennard » Wed Mar 10, 2010 10:00 pm

Hello,

Yes you can do this. It is easier to use an external image, as the images that you store within Trunk Notes have a fixed size and ratio.

Turn on Custom Stylesheet (from the Settings app)

Replace the body section with the following:

body {
font: medium Arial;
font-size:medium;
background: url('http://www.cadyou.com/thumbs/1225997520.jpg.jpg');
background-repeat: repeat-y;
background-attachment: fixed;
margin:0;
}

This uses the image http://www.cadyou.com/thumbs/1225997520.jpg.jpg to provide a paper type texture for the background. If the image couldn't be loaded, if you have no network connection, then it will just use the standard white background colour.

Regards,

Matthew
Apps On The Move
mgkennard
Site Admin
 
Posts: 355
Joined: Mon Jul 21, 2008 2:40 pm

Re: Use an image as the background for a page

Postby katarihug » Thu Mar 11, 2010 8:43 pm

Thanks Matthew. I will see how I go. :)
katarihug
 
Posts: 12
Joined: Tue Feb 09, 2010 9:21 am


Return to Problems

Who is online

Users browsing this forum: No registered users and 1 guest