please i tried to span a line in echo statement but its not working
please help have a look.HTML Code:echo'<span style="font-color: red;">Your passwords do not match!</span>';
| SitePoint Sponsor |


please i tried to span a line in echo statement but its not working
please help have a look.HTML Code:echo'<span style="font-color: red;">Your passwords do not match!</span>';


tried this and it worked
style="font-color: red;"


Hi,
I'm not sure I understand this thread because you say its working now but that's what you had in the first post anyway
You would be better off adding a class instead of an inline style anyway and then you don't have to change the php if you want the color changed at a later date,
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge


thanks paul will do that, but was just surprised why it took
style="color: red;"
over
style="font-color: red;"


There is no property called font-color its called "color"
However that's not what you said in your second post lol![]()
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge
Bookmarks