Setting CSS style in not working- Codeigniter?

By default, the system adds a paragraph tag ( p ) around each error message shown. You can easily change these delimiters with this code, placed in your controller: $this->validation->set_error_delimiters('', '').

By default, the system adds a paragraph tag () around each error message shown. You can easily change these delimiters with this code, placed in your controller: $this->validation->set_error_delimiters('', ''); for Ref: codeigniter.com/user_guide/libraries/val....

It should look something like: . P_error { color: red; font-weight: bold; }.

This is the code that PHP script generated: The Treated By field is required. HTML specification states that: P element cannot be inside another P element tag may be omitted (it is implied) Those rules mean that you can write something like this: First paragraph Second paragraph Browser will automatically close the first paragraph (i.e. Add) before the second .

In your case, it means that the error ends up outside of the p_error paragraph, as the "inspect element" shows: The Treated By field is required.

My gues is that inside $errorValue you have some other html tags which overload the style declaration.

When you browse your page, make sure to hold the Shift button and press refresh. That way your browser will load up the new CSS (assuming you've added p_error since initially loading the page).

One easy way to fix it would be to change your code to this: CSS (no change) . P_error{ color:red; text-align:left; font-size:12px; } PHP (change P to DIV) validation->errorValue;?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions