I have a codeignter based site.In that i loaded the css file like this:
<link href="<?php echo base_url();?>style/style.css" rel="stylesheet" type="text/css" />
This is the content in that file:
.forgot_password {
color:#FF0000;
font-weight:bold;
margin-left:95px;
margin-top:10px;
display:none;
}
.forgot_message {
display:none;
font-size:13px;
font-weight:bold;
color:#C4ED10;
}
.enter_password_fr {
color: #FFFFFF;
font-size: 20px;
font-weight: bold;
margin-left: 100px;
}
Then i want to check forgot_password this class exist in the css file.If it exists then i want to chnage the color attribute of the this (forgot_password) class.Can i do this using php?
How can i change the attribute?Is this possible by any way?
You can change it with the help of the Javascript and there is the possible duplicate of your question please click here
Hope this helps