Title: Border around ads mobile
Last modified: June 4, 2021

---

# Border around ads mobile

 *  Resolved [samjansen97](https://wordpress.org/support/users/samjansen97/)
 * (@samjansen97)
 * [5 years ago](https://wordpress.org/support/topic/border-around-ads-mobile/)
 * I use now codes like this to shwo ads on mobile:
 *     ```
       <!-- CSS Code -->
       <style type="text/css" scoped>
       img.GeneratedImage {
       width:330px;height:180px;margin:0px;border-width:3px;border-color:#000000;border-style:solid;
       }
       </style>
   
       <!-- HTML Code -->
       <a href="https://www.tes23t23.nl/" target="_self"><img src="https://www.revive.nl/wp-content/uploads/2021/06/adieugod.gif" alt="Adieu kerk! Adieu God?" class="GeneratedImage"></a>
       ```
   
 * I want to switch to Advanced Ads to show the ads through that plugin. Is it possible
   to if you create an image ad with advances ads to give it a class. That has: 
   border-width:3px;border-color:#000000;border-style:solid; ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fborder-around-ads-mobile%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [5 years ago](https://wordpress.org/support/topic/border-around-ads-mobile/#post-14526844)
 * Hi samjansen97,
 * Thanks for reaching out.
 * You can define a specific class for each ad unit. Please, see [here](https://wpadvancedads.com/manual/optimizing-the-ad-layout/#Container_Classes)
   for more information.
 * Best regards,
    Joachim
 *  Thread Starter [samjansen97](https://wordpress.org/support/users/samjansen97/)
 * (@samjansen97)
 * [5 years ago](https://wordpress.org/support/topic/border-around-ads-mobile/#post-14537346)
 * Is it possible to give a class to the ad image? Because when I give the class
   to the ad unit/container the border is not around the ad image
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [5 years ago](https://wordpress.org/support/topic/border-around-ads-mobile/#post-14558942)
 * Hi samjansen97,
 * Sorry, I did not notice your reply.
 * To change this behavior, you could [use one of the following filters](https://wpadvancedads.com/codex/filter-hooks):
    - `advanced-ads-ad-image-tag-attributes`
    - `advanced-ads-ad-image-tag-style`
    - You can find more information about their use in the source code.
    - Best regards,
       Joachim

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Border around ads mobile’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/border-around-ads-mobile/#post-14558942)
 * Status: resolved