Okay i have a working login register etc but when an error is displayed i want to to have some css styling to it but it wont for some reason.
I have been working on it for ages but i have no idea. could someone help.
The PHP
The CSS
It will work correctly by adding the <div> and <li> into the code but for some reason it just won't show up. Any ideas?
The css is linked correct as the rest of the website shows up perfect.
I have been working on it for ages but i have no idea. could someone help.
The PHP
PHP:
function output_errors($errors) {
$output = array();
foreach($errors as $error) {
$output[] = '<li>'. $error .'</li>';
}
return '<div class="validation">' . implode('', $output) . '</div>';
}
?>
The CSS
Code:
}
.info {
color: #00529B;
background-color: #BDE5F8;
background-image: url('info.png');
}
.success {
color: #4F8A10;
background-color: #DFF2BF;
background-image:url('success.png');
}
.warning {
color: #9F6000;
background-color: #FEEFB3;
background-image: url('warning.png');
}
.error {
color: #D8000C;
background-color: #FFBABA;
background-image: url('error.png');
}
.validation {
color: #D63301;
background-color: #FFCCBA;
background-image: url('validation.png');
}
It will work correctly by adding the <div> and <li> into the code but for some reason it just won't show up. Any ideas?
The css is linked correct as the rest of the website shows up perfect.