Title: CSS Error Fix
Last modified: August 22, 2016

---

# CSS Error Fix

 *  [payetteforward](https://wordpress.org/support/users/payetteforward/)
 * (@payetteforward)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/css-error-fix/)
 * There is a css error in the file wp-pagenavi-style.php on lines 112 and 122 with
   this code: margin-right:auto; !important’; (extra semi-colon before !important)
 * Change 112 from
 *  `.wp-pagenavi{<?php if($options['align']=='right'){echo 'float:right !important;';}
   elseif($options['align']=='left'){echo 'float:left !important; ';} else {echo'
   margin-left:auto !important; margin-right:auto; !important';} ?>}`
 * to
 * `.wp-pagenavi{<?php if($options['align']=='right'){echo 'float:right !important;';}
   elseif($options['align']=='left'){echo 'float:left !important; ';} else {echo'
   margin-left:auto !important; margin-right:auto !important';} ?>}`
 * and line 122 from
 *     ```
       .wp-pagenavi{<?php if($options['align']=='right'){echo 'float:right !important; ';} elseif($options['align']=='left'){echo 'float:left !important; ';} else { echo 'margin-left:auto !important; margin-right:auto; !important';} ?>}
       ```
   
 * to
 *     ```
       .wp-pagenavi{<?php if($options['align']=='right'){echo 'float:right !important; ';} elseif($options['align']=='left'){echo 'float:left !important; ';} else { echo 'margin-left:auto !important; margin-right:auto !important';} ?>}
       ```
   
 * [https://wordpress.org/plugins/wp-pagenavi-style/](https://wordpress.org/plugins/wp-pagenavi-style/)

The topic ‘CSS Error Fix’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-pagenavi-style_e2e1e1.svg)
 * [WP PageNavi Style](https://wordpress.org/plugins/wp-pagenavi-style/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pagenavi-style/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pagenavi-style/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pagenavi-style/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pagenavi-style/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pagenavi-style/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [payetteforward](https://wordpress.org/support/users/payetteforward/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/css-error-fix/)
 * Status: not resolved