...

View Full Version : BBQ image not in div box



CoolKay
06-09-2012, 06:25 PM
http://www.countyfairgrounds.net/missouri/missouri.php

This ought to be simple, but I have tried a bunch and now I am stuck -I cannot get the BBQ to be in the division box and wrap the ad code around the image.

Its the ad in the middle center Your BBQ Sucks.

Please can help?

badwolf
06-09-2012, 11:05 PM
Yea you gotta float that image. Do this

Add this to your stylesheet




/* == FLOATS == */
.fltrt {
float: right;
margin-left: 8px;
}
.fltlft {
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}


Then use the float in your image tag like so



<img src="images/grilltwo.jpg" class="fltlft" width="100" height="105" alt="" />


The following will float the image to the left. I have commented the clear float for you. It should be used after any div containing a floated element. Sometimes other divs will not play nice with floated images. Use it if you need it. Its a handy rule to have in your styles in case it ever is needed



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum