Alex
Alex

Reputation: 77329

Safari on iPhone: CSS Positioning off by 1px

Safari on the iPhone renders my {position: relative; top: 80px;} div 1px too low (all other browsers work fine) - is there any way to fix this via conditional css?

Upvotes: 2

Views: 926

Answers (1)

FelipeAls
FelipeAls

Reputation: 22161

I would begin by this Comprehensive List of Browser-Specific CSS Hacks (and comprehensive it is!)

/* iPhone / mobile webkit */
@media screen and (max-device-width: 480px) {
 #veintiseis { color: red  }
}

Upvotes: 1

Related Questions