Title: max-width breaks many elements
Last modified: February 23, 2023

---

# max-width breaks many elements

 *  Resolved [hongpong](https://wordpress.org/support/users/hongpong/)
 * (@hongpong)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/max-width-breaks-many-elements/)
 * Hello, the following css in pdfemb-embed.pdf.css breaks totally unrelated elements–
   by setting
 * max-width: none;
   This was marked resolved but it is not.
 *     ```wp-block-code
       .entry-content > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce), .entry-content > .wp-block-pdfemb-pdf-embedder-viewer
       ```
   

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

 *  Thread Starter [hongpong](https://wordpress.org/support/users/hongpong/)
 * (@hongpong)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/max-width-breaks-many-elements/#post-16498232)
 * set the following
 *     ```wp-block-code
           wp_dequeue_style('pdfemb_embed_pdf_css');
           wp_deregister_style('pdfemb_embed_pdf_css');
       ```
   
 * using the unusual hook wp_print_footer_scripts
 *     ```wp-block-code
       add_action( 'wp_print_footer_scripts', 'your_function_name', 0  ); // this has to be ZERO
       ```
   
 * this worked for me. may need wp_enqueue_scripts, wp_footer or wp_head actions
   as well.
 *  [mihaiceban](https://wordpress.org/support/users/mihaiceban/)
 * (@mihaiceban)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/max-width-breaks-many-elements/#post-16853890)
 * Hi [@hongpong](https://wordpress.org/support/users/hongpong/),
 * We are sorry for missing to reply in a timely manner.
 * Checking the latest version of PDF Embedder 4.6.4, this appears to be solved 
   as we only use a single class that shouldn’t affect anything else:
 *     ```wp-block-code
       .wp-block-pdfemb-pdf-embedder-viewer{max-width:none}
       ```
   

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

The topic ‘max-width breaks many elements’ is closed to new replies.

 * ![](https://ps.w.org/pdf-embedder/assets/icon.svg?rev=3227003)
 * [PDF Embedder](https://wordpress.org/plugins/pdf-embedder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pdf-embedder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pdf-embedder/)
 * [Active Topics](https://wordpress.org/support/plugin/pdf-embedder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdf-embedder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdf-embedder/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [mihaiceban](https://wordpress.org/support/users/mihaiceban/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/max-width-breaks-many-elements/#post-16853890)
 * Status: resolved