Float Behavior With Ads

When embedding contextual or non-contextual ads in a page, if you want to get the float behavior (where the ads are displayed with rest of the text on the page surrounding them both in the side and in the bottom), then it’s going to be tricky. Most of the ads are displayed in an iframe and further, the ads are displayed using a javascript and not by putting the iframe directly.

For example, this Notebooks page displays AuctionAds embedded within the surrounding context. The way to achieve this is to have

iframe {
display: inline;
float: right

in the main page. The css float concept is very useful to make the page estate well utilized.

Leave a comment

Filed under css

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s