Sativa Posted February 9, 2015 Share Posted February 9, 2015 Hello i'm new to css, i'm trying to add a warning box to the support ticket tpl (like WHMCS has to tell people to check KB first). I have this in notice.css .alert-box { color:#555; border-radius:10px; font-family:Tahoma,Geneva,Arial,sans-serif;font-size:11px; padding:10px 36px; margin:10px; } .alert-box span { font-weight:bold; text-transform:uppercase; } .notice { background:#ffecec url('../../images/error.png') no-repeat 10px 50%; border:1px solid #f5aca6; And added this to the supportticketsubmit-steptwo.tpl: <head> <link rel="stylesheet" type="text/css" href="css/notice.css"> </head> <div class="alert-box error"><span>error: </span>Write your error message here.</div> But my page shows up empty, also wrapping the css code around <style type="text/css"> tags doesnt work in the .tpl file .. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 10, 2015 Share Posted February 10, 2015 you can't really add <head> to a template as <head> has already been defined in header.tpl - you could try moving your <link> line to header.tpl and seeing if it works then. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted February 10, 2015 Share Posted February 10, 2015 also fix URL to the CSS file it need to look like this: <link rel="stylesheet" type="text/css" href="templates/{$template}/css/notice.css"> instead of this: <link rel="stylesheet" type="text/css" href="css/notice.css"> 0 Quote Link to comment Share on other sites More sharing options...
Sativa Posted February 10, 2015 Author Share Posted February 10, 2015 Thanks for the help! Gonna try it out! 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.