deansaddigh Posted January 11, 2010 Share Posted January 11, 2010 As above really i have this code and i need the images to float to the left of each other. <div class='icons'><img src='images/noSmoking.jpg' alt='No smoking'></div> <? if ($cottageResults[0]{'pets'} == 'checked') { ?> <div class='icons'><img src='images/Pets.jpg' alt='Pets allowed'></div> <? } else { ?> <div class='icons'><img src='images/noPets.jpg' alt='No pets'></div> <? } if ($cottageResults[0]{'linen'} == 'linen' || $cottageResults[0]{'linen'} == 'both') { ?> <div class='icons'><img src='images/linen.jpg' alt='Linen provided'></div> <? } ?> <? if ($cottageResults[0]{'linen'} == 'towels' || $cottageResults[0]{'linen'} == 'both') { ?> <div class='icons'><img src='images/towels.jpg' alt='Towels provided'></div> <? } ?> <? if ($cottageResults[0]{'changeOver'} == 'Friday') { ?> <div class='icons'><img src='images/friday.jpg' alt='Friday changeover'></div> <? } if ($cottageResults[0]{'changeOver'} == 'Saturday') { ?> <div class='icons'><img src='images/saturday.jpg' alt='Saturday chnageover'></div> <? } if ($cottageResults[0]{'parking'} != 0) { ?> <div class='icons'><img src='images/parking.jpg' alt='Parking available'></div> <? } ?> Quote Link to comment https://forums.phpfreaks.com/topic/188112-how-do-i-get-the-images-on-this-code-to-float-left/ Share on other sites More sharing options...
haku Posted January 12, 2010 Share Posted January 12, 2010 Please don't post php in the CSS/HTML forums. PHP is irrelevant to CSS/HTML. Post the HTML that is generated by the PHP script. (make sure you format it so its easy to read before you post it - a copy and paste is likely to get ignored). Quote Link to comment https://forums.phpfreaks.com/topic/188112-how-do-i-get-the-images-on-this-code-to-float-left/#findComment-993250 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.