development full of
merriment and sense

CSS Mockups for Ads

Geoffrey on August 15, 2008 at 3:43 pm

Occasionally I need to mockup where the ads are going to go in an application (it has to pay for itself somehow, right?). Rather than putting the ads into the application while I am still doing development, I use some simple CSS to put a placeholder where the ads will go. In Rails, it looks like this:

<div class="ads vertical_tower">
  <% if RAILS_ENV == 'production' -%>
    <script>... Live Ad Code Goes Here </script>
  <% else -%>
    Ads Go Here
  <% end -%>
</div>

Then I can use my simple ad template CSS to make it standout. Check out the css source on Github

Filed under: CSS, Projects, Rails, Web Applications, Web Development, microapps, wireframing

No Comments »

No comments yet.

RSS feed for comments on this post.
TrackBack URL

Leave a comment




  • gdagley on Twitter

  • gdagley on del.icio.us

Powered by WordPress