Title: Alignfull
Last modified: March 18, 2022

---

# Alignfull

 *  [mayy3321](https://wordpress.org/support/users/mayy3321/)
 * (@mayy3321)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/alignfull-2/)
 * I got this code from the web
 * .entry-content .alignfull {
    margin-left: calc(50% – 50vw); margin-right: calc(
   50% – 50vw); width: 100vw; padding: 25px; }`
 * It is working OK.
    I don’t understand why it needs the padding: 25px to offset
   the margin.
 * But in any case, when the vw is narrow, the fixed 25px feels bigger as the screen
   gets smaller.
    Any better code than this?

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

 *  [Vijay Hardaha](https://wordpress.org/support/users/vijayhardaha/)
 * (@vijayhardaha)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/alignfull-2/#post-15471810)
 *     ```
       .alignfull {
           width: 100vw;
           position: relative;
           left: 50%;
           right: 50%;
           margin-left: -50vw;
           margin-right: -50vw;
       }
       ```
   
 * test this one.
 *  Thread Starter [mayy3321](https://wordpress.org/support/users/mayy3321/)
 * (@mayy3321)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/alignfull-2/#post-15538748)
 * This one makes graphics touch the sides, but text is wider than vw.

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

The topic ‘Alignfull’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [mayy3321](https://wordpress.org/support/users/mayy3321/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/alignfull-2/#post-15538748)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
