craigrg Posted February 11, 2009 Share Posted February 11, 2009 Hi People I am having problems editing my header. I have looked through the forum and found the following post. http://forum.whmcs.com/showthread.php?t=16943&highlight=header I have followed this and it all seems to work ok but there are no images show on the header. Does any one have any idea why this would be?? Thanks in advance Craig 0 Quote Link to comment Share on other sites More sharing options...
craigrg Posted February 11, 2009 Author Share Posted February 11, 2009 sorry i forgot to but a link http://cg-computers.co.uk/client/ 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 11, 2009 Share Posted February 11, 2009 Appears to be working now using absolute URLs? 0 Quote Link to comment Share on other sites More sharing options...
craigrg Posted February 11, 2009 Author Share Posted February 11, 2009 thanks for the reply. i now have another problem. I need to add a background image and repeat it plus set the top margin to 0px. background-image: url(images/backgd.jpg); background-repeat: repeat-x; margin-top: 0px; but i get the following error: Fatal error: Smarty error: [in cgctemp/header.tpl line 5]: syntax error: unrecognized tag: background-image: url(images/backgd.jpg); background-repeat: repeat-x; margin-top: 0px; (Smarty_Compiler.class.php, line 439) in /home/sites/cg-computers.co.uk/public_html/client/libs/Smarty.class.php on line 1095 any idea how i fix this? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 11, 2009 Share Posted February 11, 2009 Put the background image bits into the CSS style sheet, and add the corresponding value in the header: <td class="class_with_image_bg"> 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 11, 2009 Share Posted February 11, 2009 (edited) You need to remove or edit <width="800" height="118" alt="" /> You should also use relative path so when you start to use SSL Certificates you don't get any warnings! You should read: http://www.w3schools.com/css/css_examples.asp or something similar Edited February 11, 2009 by BAJI26 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 11, 2009 Share Posted February 11, 2009 You need to remove or edit How will that fix the Smarty error that it didn't recognize the CSS background image code he'd had in there? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 11, 2009 Share Posted February 11, 2009 Some of the probs in his code at quick glance. 0 Quote Link to comment Share on other sites More sharing options...
craigrg Posted February 12, 2009 Author Share Posted February 12, 2009 Hi people and thanks for your help with this. I am still having some problems. As you can see http://www.cg-computers.co.uk/client i am unable to remoce the margin at the top of the page and for some reason the page seems to have moved over 5 or so pix. Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 12, 2009 Share Posted February 12, 2009 Sure. In your CSS, add a margin. body {background-image:url(http://www.cg-computers.co.uk/client/templates/cgctemp/images/backgd.jpg); background-repeat:repeat-x; margin-top:0; 0 Quote Link to comment Share on other sites More sharing options...
craigrg Posted February 12, 2009 Author Share Posted February 12, 2009 Thanks for that. I did try that but it did not seem to work. Must have done it wrong 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 12, 2009 Share Posted February 12, 2009 Looks right from here? Have you heard of using Firefox and the "firebug" plugin for finding issues like this? Absolutely indispensable for finding what is controlled by what, and you can test changes right in your browser before committing them to the site for everyone. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.