Jump to content

how do i get the images on this code to float left


deansaddigh

Recommended Posts

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>
<?			}
?>

 

 

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.