Title: Float Ad right in header using CSS
Last modified: August 20, 2016

---

# Float Ad right in header using CSS

 *  [ChiefRealityOfficer](https://wordpress.org/support/users/chiefrealityofficer/)
 * (@chiefrealityofficer)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/float-ad-right-in-header-using-css/)
 * I am new to CSS and I am simply trying to float my header ad “right” so that 
   it’s not in the center of the screen, pushing the title down.

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 4 months ago](https://wordpress.org/support/topic/float-ad-right-in-header-using-css/#post-3344725)
 * Try some CSS-specific forums like [http://CSSCreator.com/forum](http://CSSCreator.com/forum)
 *  [Phil](https://wordpress.org/support/users/owendevelopment/)
 * (@owendevelopment)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/float-ad-right-in-header-using-css/#post-3344726)
 * Have you tried adding:
 *     ```
       .advertclass {
       float: right;
       }
       ```
   
 * It’s difficult for people to help you without posting a URL of your site.
 *  [tscok](https://wordpress.org/support/users/tscok/)
 * (@tscok)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/float-ad-right-in-header-using-css/#post-3344729)
 * To clarify what Phil means. This would be the header HTML:
 *     ```
       <header>
         <h1>Your title</h1>
         <div class="advertclass"><!-- // Ad content --></div>
       </header>
       ```
   
 * Then use a modification of Phil’s CSS example:
 *     ```
       h1 {
         display: inline;
         float: left;
       }
       .advertclass {
        float: right;
       }
       ```
   

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

The topic ‘Float Ad right in header using CSS’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [tscok](https://wordpress.org/support/users/tscok/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/float-ad-right-in-header-using-css/#post-3344729)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
