Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2012
    Posts
    82
    Plugin Contributions
    0

    Default Install a background to site

    I am sure I am missing someting simple. I want to put a background image behind the basic store look.
    How do I do this

    THanks

    Dave

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Install a background to site

    You would add a background-image statement to the body rule in the stylesheet. See the #logoWrapper rule for the proper syntax. Such an image would need to be 'tileable' (able to be repeated) in order to look right at all screen resolutions.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Install a background to site

    This is all done by:

    1. creating your background image
    2. Putting it in the appropriate folder on the server (usually the images folder in your custom template system).
    3. Modifying your stylesheet.css file to call and position that image.

    You need FIRSTLY to understand how the css declarations work for background images, so go to W3SCHOOLS.COM and go through their CSS TUTORIALS.

    You can use very SMALL images and TILE THEM both across AND/OR down the screen. You can use larger images and position them to start at the center and the top of the screen, and tile horizontally (x-axis) only.

    You can FIX the position of the image if you want to.

    http://sbxlive.com has a background image that fills the whole screen, is FIXED at the center and top and tiles on the X Axis only:

    Code:
    body { 	background-image: url(../images/bodyback.jpg); 	background-position: center top; 	background-attachment: fixed; 	background-color: #000; 	margin: 0; 	font-family: verdana, arial, helvetica, sans-serif; 	font-size: 70%; 	color: #9e9e9e; 	}
    There are "cleaner" ways of declaring the background css...
    Code:
    body {margin: 0;font-family: verdana, arial, helvetica, sans-serif;font-size: 75%;line-height: 150%; color: #4d4d4d;background: #fff url(../images/bodyback.jpg) center top repeat-x;}
    20 years a Zencart User

 

 

Similar Threads

  1. Site Background Image
    By edeades in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 May 2009, 02:06 AM
  2. How install a background image?
    By rjouglard in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 8 Jul 2008, 04:39 PM
  3. New install - Admin Dropdown menu no background!?!
    By hauruapai in forum Installing on a Windows Server
    Replies: 4
    Last Post: 6 Sep 2007, 07:40 AM
  4. New Install - no images or background colour
    By jcgkiwi in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 19 Feb 2007, 08:38 AM
  5. Cant seem to install background image
    By Pablosan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Jan 2007, 02:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR