How color only half website title - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: How color only half website title (/showthread.php?tid=1465) |
How color only half website title - shakabra - 2011-04-06 I am trying to color half of the website title different from the other half. I am very new at php, but I can figure it out if pointed in the right direction. So far I thought to split the title into two strings giving each a different class and then just style each class. I do not know how to do this. Any help would be appreciated. Is this the easiest/only way to go about this in get simple. How color only half website title - ccagle8 - 2011-04-06 http://php.net/manual/en/function.substr.php this is the PHP function you need to do this How color only half website title - Connie - 2011-04-06 you could use CSS pseudo elements: "first" for the first word of the title do a little CSS tests |