AndreN Posted November 1, 2009 Posted November 1, 2009 Hi everybody Apologies if I have posted in the incorrect forum, mods please move if incorrect . I am trying to change the appearance of the error message boxes from the default pink background and red error triangle. I have changed the Style Sheet properties already but I want to add "cell padding" and a "border" to the message but cannot find the appropriate piece of PHP code to change. For example : in the "contact_us.php" file there is "<?php echo $messageStack->output('contact'); ?>" that displays the error message with the pink background and red triangle. How do I add "cell padding" and a "border" to this message ? Totally stumped after searching for hours through the code. I think it could be in boxes.php or messagestack.php Anybody got any ideas ?
germ Posted November 1, 2009 Posted November 1, 2009 Hi everybody Apologies if I have posted in the incorrect forum, mods please move if incorrect . I am trying to change the appearance of the error message boxes from the default pink background and red error triangle. I have changed the Style Sheet properties already but I want to add "cell padding" and a "border" to the message but cannot find the appropriate piece of PHP code to change. For example : in the "contact_us.php" file there is "<?php echo $messageStack->output('contact'); ?>" that displays the error message with the pink background and red triangle. How do I add "cell padding" and a "border" to this message ? Totally stumped after searching for hours through the code. I think it could be in boxes.php or messagestack.php Anybody got any ideas ? Maybe in the stylesheet: .messageStackError, .messageStackWarning { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #ffb3b5; } .messageStackSuccess { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #99ff00; } You really can't add "cellpadding" in the stylesheet, but you can add code like: border: 2px; padding: 10px; to the styles used to display the messages. Just a thought... :) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
AndreN Posted November 1, 2009 Author Posted November 1, 2009 I tried that earlier and it did not work. Then I realized that I needed to add border-style & border-color to get it to display. Thank you for pointing me in the right direction, got it working now. (I spent about 2 hours today trying to figure it out!) Your speedy response is awesome, thank you a million times over !!
AndreN Posted November 1, 2009 Author Posted November 1, 2009 For those that are interested, this is what works quite well for me: .messageStackError, .messageStackWarning { border-style: solid; border-width: 1px; border-color: #FFFFFF; padding: 5px; background-color: red; font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.