How to get openlayers 3 zoom control to show up on right side?

Rolando picture Rolando · Dec 27, 2013 · Viewed 8.9k times · Source

By default the openlayers 3 zoom controls are on the top left. How can I move it to the top right? The API appears to return a broken link when going into options.

Answer

Matt picture Matt · May 19, 2016

Use cascading style sheets. You need to unset the previous "left" value.

  .ol-zoom {
     left: unset;
     right: 8px;
  }