Hide CSS Style Section in Chrome DevTools
In this article
Yes, you can hide the Styles pane in Chrome DevTools by toggling its visibility, which declutters the workspace and lets you focus on the elements you need.
What You'll Need
- A computer running Google Chrome (desktop version).
- Basic familiarity with opening DevTools (right‑click → Inspect or Ctrl+Shift+I).
Step‑by‑Step
- Open Chrome and navigate to the page you want to inspect.
- Launch DevTools: press Ctrl+Shift+I (Windows/Linux) or ⌥⌘I (macOS), or right‑click any element and choose Inspect.
- Locate the panel group at the top of the DevTools window. By default you will see tabs such as Elements, Console, Sources, etc., and on the right side a vertical pane labeled Styles that shows CSS rules.
- Hover over the vertical divider that separates the Elements view from the Styles pane. The cursor changes to a left‑right resize arrow.
- Right‑click (or two‑finger click on a Mac trackpad) on that divider. A context menu appears with options like Undock into separate window, Dock side, and Hide pane.
- Select Hide pane. The Styles section collapses and the remaining panels expand to fill the space.If you later need the Styles pane again, move your mouse to the thin gray line that remains where the pane used to be. Click it, and the hidden pane slides back into view.
- Optional: Pin the hidden state for future sessions. Chrome remembers the layout of DevTools per origin, so once you hide the Styles pane, it stays hidden the next time you open DevTools on the same site. To reset the layout, repeat step 5 and choose Show pane.
Common Mistakes
- Clicking the wrong divider. DevTools has multiple splitters (e.g., between the Console and Network tabs). Ensure you are interacting with the vertical splitter next to the Styles pane.
- Using the keyboard shortcut to toggle panels. There is no built‑in shortcut for hiding the Styles pane; attempting Ctrl+Shift+P and typing “hide styles” will not work. Use the mouse‑based method described above.
- Confusing “Undock” with “Hide”. Undocking moves the entire DevTools window to a separate window; it does not hide any specific pane.
- Expecting the hidden pane to disappear permanently. Chrome stores layout per domain, so opening DevTools on a different site may show the Styles pane again.
Tips
- Keyboard navigation. After hiding the pane, you can press Esc to open the console drawer quickly without needing the Styles pane.
- Resize before hiding. If you plan to hide the pane temporarily, shrink its width first by dragging the divider. This gives you a visual cue of where to click to restore it.
- Use Workspaces. When you are editing CSS directly in the Sources panel, you may not need the Styles pane at all. Hiding it reduces visual clutter and speeds up navigation.
- Persist layout across sessions. Chrome remembers your last layout for each origin. If you want a consistent view for all sites, hide the pane on a blank new tab, then open other pages.
- Combine with other pane toggles. You can also hide the Computed or Layout sub‑panes inside the right‑hand side by clicking the small “x” icon on their headers.
Troubleshooting
If the Styles pane does not hide or reappear as expected, follow these checks in order:
- Refresh DevTools. Close the DevTools window (click the X or press Ctrl+Shift+I again) and reopen it. This clears any temporary UI glitch.
- Check Chrome version. The pane‑hiding feature exists in all recent stable releases, but an outdated version may behave inconsistently. Update Chrome via Menu > Help > About Google Chrome and restart.
- Reset DevTools settings. Open the Command Menu with Ctrl+Shift+P, type “Preferences”, and select Preferences. Scroll to the bottom and click Restore defaults and reload. This returns DevTools to its default layout, after which you can try hiding the pane again.
- Disable extensions that modify DevTools. Some extensions inject custom panels or alter the UI, which can block the hide‑pane context menu. Temporarily disable extensions via chrome://extensions, then retry.
- Clear Chrome profile cache. Corrupted local storage can affect UI state. Navigate to chrome://settings/clearBrowserData, select “Cookies and other site data” and “Cached images and files”, then click Clear data. Reopen DevTools.
- Test in an incognito window. Incognito disables most extensions and uses a fresh profile. If the pane hides correctly there, the issue is likely tied to your regular profile or an installed extension.
- Reinstall Chrome. As a last resort, uninstall Chrome, download the latest installer from the official site, and reinstall. This guarantees a clean binary and default settings.
Frequently Asked Questions
Can I hide the Styles pane using a keyboard shortcut?
No native shortcut exists. The quickest method is the mouse‑based context‑menu on the divider, as described in the step‑by‑step guide.
Will hiding the Styles pane affect how CSS is applied to the page?
No. The pane is only a visual representation. All CSS continues to load and apply exactly the same way.
Is the hidden state saved per website or globally?
Chrome stores the layout per origin (domain). Hiding the pane on example.com will keep it hidden the next time you inspect a page on that domain, but other sites will retain their own layout.
Can I hide other side panels like Computed or Event Listeners?
Yes. Each sub‑pane inside the right‑hand side has its own close (“x”) button in the header. Clicking it collapses that specific pane while keeping the main Styles pane visible.
Does the hide feature work in Chrome’s mobile DevTools remote debugging?
When using remote debugging on Android, the DevTools UI is identical to the desktop version, so the same hide‑pane method works.
What if the right‑hand divider is too thin to click?
Zoom the DevTools window (Ctrl+ or Cmd+) to increase UI size, then try again. Alternatively, use the Command Menu (Ctrl+Shift+P) and type “Show Styles pane” to force it visible.