With the CSS3 pseudo class :target you can change CSS based on a targeted link < a href = “#mylink” > . I used the property to with some transitions to create a double login/scubscribe CSS3 HTML5 form. Both forms are in the HTML, the second is hidden until the users clicks a link that will target the second one. This used to be done in JavaScript but with CSS3 you can easily create the same effect in pure CSS3. … Continue reading
HTML5 search form for wordpress
A week ago the excellent smashingmagazine posted about using hmt5 to improve twenty-ten theme. The article explained how to add html5 placeholder features to the comments form. This gave me the idea to also improve the worpdress search form, using html5 placeholders and the “search” attribut (only supported in opera for the moment). Here is the code to copy paste in functions.php [php classname="myclass" collapse="false" firstline="1" gutter="true" light="false" padlinenumbers="false" smarttabs="true" tabsize="4" language="false"] /** Adding html5 functionnalities to searchform ***/ function … Continue reading