I have some PHP which spits out the following HTML Markup:
<ol class='addressbook-list'>
<li class='addressbook-item'>
<span class='name'>Username</span>
<a class='email' href='mailto:xxxx.xxxx.co.uk'>userEmail</a>
<span class='phone'>userPhone</span>
<div class='address'>
<span class='address-line1'></span>
<span class='suburb'></span>
<span class='postcode'></span>
<span class='state'></span>
<span class='country'></span>
</div>
<div class='notes'>UserNotes</div>
</li>
</ol>
My question is this, can I apply different CSS styles to this code (somehow) as it is spat out, or do I need to re-engineer my PHP (and probably shift this to a PHP forum)? All the HTML looks the same (exactly as above), it’s just what is contained within it that chnages…