-3

In Mozilla Firefox top: 56px shows properly, but in Google Chrome it doesn't show correctly.

Is there any way to set top in Google Chrome?

Pieter van Niekerk
  • 848
  • 15
  • 42
Sandy
  • 817
  • 2
  • 11
  • 18

1 Answers1

7

There is hack for webkit based browser. Write like this:

@media screen and (-webkit-min-device-pixel-ratio:0) { 
 div{top:0;} 
} 

This is a CSS Statements that only apply on webkit-based browsers (Chrome, Safari, etc.)

sandeep
  • 91,313
  • 23
  • 137
  • 155