Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] centered button in a fixed width div shifts to left in ipad Reply To: centered button in a fixed width div shifts to left in ipad

#150355
Paulie_D
Member

I can’t see any reason for it specifically.

All the section widths (1000px) should be fine on an iPad (in landscape mode, I think) and you have the correct meta for device width.

Does it happen in both portrait and landscape mode?

It’s almost as though the centering by margin isn’t taking effect.

I’m pretty stumped…about the only think i can think of, and I have no idea why this should make a difference, is to take it out of the gallery div but leave it inside the section.

You would have to update the css selector from .gallery button to .content button but I would be curious to see if this changes anything.

Something to do with the inline-block images perhaps?