The My Opera Grid System
By Jacob Raskjacobr. Wednesday, November 17, 2010 9:56:51 AM
One web
The new My Opera was just rolled out, and with it a shiny new grid system and new mobile styles.While some other sites build separate mobile sites (where users are often directed through browser sniffing) at My Opera, we don't believe the future lie in that strategy. Just like WAP, separate mobile sites follow the idea of a separate web for mobiles, instead of providing users with the full web.
Every day new devices are launched to the market, with different capabilities and usage scenarios. Opera is already widely used on TV's with Nintendo Wii (more is coming), and tablets with various screen sizes keep gaining usage. It is impossible to build a version of your site for each and every device. Instead we adapt the My Opera layout to the size and capabilities of a device, while serving the same content.
The Grid
Just like the well known 960 Grid System, the My Opera grid system comprise 12 smaller column units, but most of the similarities end there.We make three main adaptations to the layout: standard, medium and narrow. At the medium size, the grid system is shrunk to 8 col. units, and at narrow to 4 col. units. These units are then grouped together into bigger content blocks.
If your viewport is wider than 960 pixels, you will get the standard layout which features either a main content area (8 col. units) with a sidebar (4 col. units) or the full page split into 2, 3 or 6 blocks. When your viewport is between 960 and 660 pixels wide, depending on the content type any of the following will happen:
- The main content block will span the entire 8 col. units and the sidebar end up beneath it
- The main content block will be shrunk to 4 col. units and the sidebar stay at the side
Currently the only part of My Opera built from scratch using the new grid system is the community photos page, which lists photos at a width of 2 col. units, while the system was back-ported to the old CSS and markup for the rest of the site. We will continue to convert more pages to a new templating system and framework, and at the same time do even further improvements for all viewport sizes!







