Forum Support

Shape 5
March 28, 2024, 07:44:41 AM *
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 position  (Read 576 times)
adrymetal
Jr. Member
**
Offline Offline

Posts: 3



« on: August 17, 2009, 07:07:10 AM »

Hi,
just one question....in which file can i set the background position?
i've fixed one .png image,not repeated and i need to center it,so it fit different resolution.
i look in the template.css file but i didn't find where to add the background position property.
many Thanks!
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: August 17, 2009, 02:51:23 PM »

Hello,

This is located in the index.php file:

body {
   background:<?php echo ($s5_colorback);?> url(<?php echo ($s5_repeatback);?>) repeat-x;}
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
adrymetal
Jr. Member
**
Offline Offline

Posts: 3



« Reply #2 on: August 31, 2009, 01:59:20 AM »

Hi,
i don't know much of php,so can you tell the index.php code to set the background-position in "center-top"?
many thanks!
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #3 on: August 31, 2009, 08:33:59 PM »

You would have to look for the above and then change it to:


body {
   background:<?php echo ($s5_colorback);?> url(<?php echo ($s5_repeatback);?>) repeat-x center top ;}

If you don't want it to repeat then do:


body {
   background:<?php echo ($s5_colorback);?> url(<?php echo ($s5_repeatback);?>) no-repeat center top ;}
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
adrymetal
Jr. Member
**
Offline Offline

Posts: 3



« Reply #4 on: September 01, 2009, 01:46:37 AM »

..sorry for the dummy question..it was easier than i expect Tongue..
Many thanks Jonah!
Logged
phoenixgb
Jr. Member
**
Offline Offline

Posts: 54



« Reply #5 on: November 18, 2009, 10:18:01 PM »

Hi

I'm using the no-repeat bit it's still repeating vertically...

Any suggestions?
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #6 on: November 19, 2009, 07:05:35 PM »

Hello,

I would double check your code and make sure it was entered properly.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
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.