Monday, 15 August 2011

css - Styling 'text' php code -



css - Styling 'text' php code -

how style 'text' in example?

<h2>current conditions</h2> <img src="http://l.yimg.com/a/i/us/we/52/{$current['code']}.gif" style="vertical-align: middle;"/> {$current ['text']} <span class="currentcondition"><font face="arial">{$current['temp']}&deg;c</font></span> <br/> <h2>forecast</h2>

just set within html tag, give id or class , style using css:

<span id="my_text">{$current ['text']}</span>

css

#my_text { color: red; }

it's pretty much standard thing, , doesn't matter if you're using php templating or not. how should style everything.

php css css3

No comments:

Post a Comment