Forum Support

Shape 5
September 25, 2021, 01:11:13 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: background image  (Read 617 times)
kiwinterri
Jr. Member
**
Offline Offline

Posts: 51



« on: November 10, 2010, 09:59:10 PM »

Hi Guys I am trying to make a background image from this -

<body <?php if($s5_body_color != "xxxxxx") { ?>style="background-color:#<?php echo $s5_body_color ?>"<?php } ?>>

to this

<body background="images/cow_background.gif">

its not working so I must have something wrong, any ideas appreciated.
Logged
jleckenby
Jr. Member
**
Offline Offline

Posts: 284



WWW
« Reply #1 on: November 11, 2010, 08:03:43 AM »

the code would be:

Code:
<body style="background: url('images/cow_background.gif');">
Logged

James
------------
Shape 5 Team

Need some custom coding done on your site? Use our Shape 5 Hire a Coder program for free.  http://www.shape5.com/hire_a_coder/listauctions
kiwinterri
Jr. Member
**
Offline Offline

Posts: 51



« Reply #2 on: November 11, 2010, 04:05:29 PM »

Hi Thanks for that, its worked but it took out the image for logo at the top

body  {
   background:url(../images/logo.png) no-repeat top center;
    font-family: Helvetica; }

If its to much drama dont worry, I just wanted to replace the white background in the middle of the template but leave the top and footer images in place.

Cheers
Logged
jleckenby
Jr. Member
**
Offline Offline

Posts: 284



WWW
« Reply #3 on: November 12, 2010, 05:53:53 AM »

Hi it would, as you can't have two background images on the same element, the one i changed would override the other. The best idea is to create a background with all the things you want in Smiley

James
Logged

James
------------
Shape 5 Team

Need some custom coding done on your site? Use our Shape 5 Hire a Coder program for free.  http://www.shape5.com/hire_a_coder/listauctions
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.