Adding solid background that's in a fxd position

More
14 years 2 months ago #2777 by Agent68
Hi, can you give a summary on how to achieve this? Thanks in advance.

Please Log in to join the conversation.

  • trey-braid
  • Topic Author
  • Visitor
  • Visitor
14 years 2 months ago - 14 years 2 months ago #2778 by trey-braid
open up template.css.php and find line 10 i believe...

just name your background graphic bg_1 or whatever you want to call it--- important to put bg_ before it

all milos had me do was add " fixed " to the end... i also added center as well so it would be centered..

background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_<?php echo $backgroundImage; ?>.png) center fixed
;

..as you can see they are using a php echo to pull in the image...

hope this helps
trey
Last edit: 14 years 2 months ago by trey-braid.

Please Log in to join the conversation.

More
14 years 2 months ago #2779 by Agent68
So template_css.php now has this:

<?php if ($backgroundImage!="none") { ?>
background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_1<?php echo $backgroundImage; ?>.png) center fixed;
<?php }else{ ?>

Created a folder the background image (bg_1)in
and then add this to the template_css.css file?

body {
font-size:12px;
color:#000000;
background:#333333 url(/templates/hot_sportal/images/bg_1.png) fixed;
}

Please Log in to join the conversation.

  • trey-braid
  • Topic Author
  • Visitor
  • Visitor
14 years 2 months ago #2780 by trey-braid
you dont need to add anything to the template.css file... everything else in the template.css.php looks fine... w

your website?

trey

Please Log in to join the conversation.

  • trey-braid
  • Topic Author
  • Visitor
  • Visitor
14 years 2 months ago #2782 by trey-braid
just place the image in the image's folder and not the new folder you created...

Please Log in to join the conversation.

More
14 years 2 months ago #2785 by Agent68
Thanks Trey! Just sent you a message to your email.

Please Log in to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum