# Syntaxhighlighter Font-size Fix on iOS Devices (aka your iPhone or iPad)

**URL:** https://forum.kirupa.com/t/syntaxhighlighter-font-size-fix-on-ios-devices-aka-your-iphone-or-ipad/633856
**Category:** web dev
**Created:** [October 9, 2015, 7:08am UTC](https://forum.kirupa.com/t/syntaxhighlighter-font-size-fix-on-ios-devices-aka-your-iphone-or-ipad/633856 "2015-10-09T07:08:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [October 9, 2015, 7:08am UTC](https://forum.kirupa.com/t/syntaxhighlighter-font-size-fix-on-ios-devices-aka-your-iphone-or-ipad/633856/1 "2015-10-09T07:08:07Z")

</div>

While fiddling with the mobile version of this site, one thing that always bugged me was the gigantic size of the SyntaxHighlighter-based code snippets on iOS devices. After some trial and error, it turns out the fix is pretty simple. In your **shThemeDefault.css** , find your **.syntaxhighlighter** selector and add the following declaration:

```
-webkit-text-size-adjust: 100%;

```

That’s it. Once you’ve done this, your code snippets on your iOS devices will look like they are supposed to. Why that isn’t there by default, I am not sure.

Cheers,  
Kirupa 😛
