0

Strange problem here, help apreciated.

I have a page populated with houses for renting and a Google map.
All houses info and images are generated by php/SQL so the <li> and <div>structure is the same.

I croped the thumb of each house by hiding it in a div with overflow:hidden. I put also border-radius on that div. All works good for 1 second until google maps has loaded.

The problem is that after google map has loaded, some pictures ignore the border-radius CSS setting and the visible part of those images/thumb "jump out" - (but not the hidden part of the image) . I see the border disappearing behind the corners but the image doesn't respect the border-radius anymore.

EDIT_1: this is only happening in Chrome.

ANSWER: It seems to be a webkit but. See here.
"Removing the position:absolute declaration from the img elements seems to resolve this issue" - Thank you @Boaz

What is happening here? any better way to do this? Thanks

Screenshot here

Zoomed detail

Community
  • 1
  • 1
Sergio
  • 28,539
  • 11
  • 85
  • 132

1 Answers1

0

Thank you for help. It's a Chrome bug.

"Removing the position:absolute declaration from the img elements seems to resolve this issue. "– Boaz

More info here

Community
  • 1
  • 1
Sergio
  • 28,539
  • 11
  • 85
  • 132