Title: SyntaxHighlighter BUG &#8211; Wrong Width on float:right
Last modified: August 18, 2016

---

# SyntaxHighlighter BUG – Wrong Width on float:right

 *  [slaughters](https://wordpress.org/support/users/slaughters/)
 * (@slaughters)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/syntaxhighlighter-bug-wrong-width-on-floatright/)
 * I have a side menu which I position using the CSS float:right property to make
   it stay on the right side of a containing DIV
 * In that same DIV I am using SyntaxHighlighter to display some source code.
 * Unfortunately it looks like SyntaxHighlighter calculates the wrong width. It 
   ignores the width of the menu floating on the right, it acts as if it is not 
   there and tries to occupy 100% of the DIV width.
 * In Firefox this results in the SyntaxHighlighter code overlaying the right side
   menu.
 * In IE7 this results in the SyntaxHighlighter code to be pushed down the page 
   to start below the bottom of the menu leaving a big chunk of white space on the
   page.
 * Here’s a link so you can see the problem. I’ll leave the page like this for a
   bit so you can see the problem. Otherwise I’ll just switch to using the <PRE&
   rt; tag with a formatted background image.
 * LINK: [http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/](http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/)

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

 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/syntaxhighlighter-bug-wrong-width-on-floatright/#post-642931)
 * Looks like you fixed your theme ’cause it’s working fine for me now. 🙂
 *  Thread Starter [slaughters](https://wordpress.org/support/users/slaughters/)
 * (@slaughters)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/syntaxhighlighter-bug-wrong-width-on-floatright/#post-642934)
 * Yes – I had to remove a width 99% from an item in a the SyntaxHighlighter css
   class file that came with the pluggin.
 *  Thread Starter [slaughters](https://wordpress.org/support/users/slaughters/)
 * (@slaughters)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/syntaxhighlighter-bug-wrong-width-on-floatright/#post-642935)
 * Forgot to add this.
 * Here’s a cross link to a post where I talked about the specific changes I made:
   
   [http://wordpress.org/support/topic/140269?replies=5](http://wordpress.org/support/topic/140269?replies=5)

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

The topic ‘SyntaxHighlighter BUG – Wrong Width on float:right’ is closed to new 
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [slaughters](https://wordpress.org/support/users/slaughters/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/syntaxhighlighter-bug-wrong-width-on-floatright/#post-642935)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
