Title: Sidebar&gt;Textbox&gt; iFrame &#8211; content alignment
Last modified: August 20, 2016

---

# Sidebar>Textbox> iFrame – content alignment

 *  [sdveirs](https://wordpress.org/support/users/sdveirs/)
 * (@sdveirs)
 * [13 years ago](https://wordpress.org/support/topic/sidebartextbox-iframe-content-alignment/)
 * Hi, I think this might be my first post here but let me ask a question.
 * [http://www.scottveirs.com](http://www.scottveirs.com) – on the top right, where
   you see the CrossLoop addition, I can not for the life of my get that to align.
 * I added a text box for each of the other 2 items below and they are aligned. 
   Is this alignment issue with the Crossloop “widget” or with the code/css?
 * Thanks!

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

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/sidebartextbox-iframe-content-alignment/#post-3581864)
 * Sorry, can you clarify which alignment?
 *  Thread Starter [sdveirs](https://wordpress.org/support/users/sdveirs/)
 * (@sdveirs)
 * [13 years ago](https://wordpress.org/support/topic/sidebartextbox-iframe-content-alignment/#post-3581882)
 * I want it to align center (horizontally).
    Looking on the page, you can see the
   crossloop (iframe pointing to my account with them) loads but does not align 
   in the white box. I want the whole element to align to the middle.
 * Hope that helps.
    Scott
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/sidebartextbox-iframe-content-alignment/#post-3581887)
 * The CSS code for that element is inline CSS in the iframe and there is no easy
   way to target it outside of that – if you can access the iframe code, change 
   the margin to `margin: 0 auto;` which will center it.
 *  Thread Starter [sdveirs](https://wordpress.org/support/users/sdveirs/)
 * (@sdveirs)
 * [13 years ago](https://wordpress.org/support/topic/sidebartextbox-iframe-content-alignment/#post-3581895)
 * I can not modify the code for the element itself.
    What about the sidebar/text
   box the <iframe> item is in? Can that text box take code to say “force the iframe
   to center”?
 * Thanks
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/sidebartextbox-iframe-content-alignment/#post-3581896)
 * You could try putting padding on the left side of it – try using this:
 *     ```
       #text-10 .textwidget {
          padding-left: 20px;
       }
       ```
   
 * **Not tested** and you’ll need to adjust the size…
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/sidebartextbox-iframe-content-alignment/#post-3581897)
 * Just tested it in Firebug – seems to work – 25 would be better for spacing.

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

The topic ‘Sidebar>Textbox> iFrame – content alignment’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/sidebartextbox-iframe-content-alignment/#post-3581897)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
