K
K
kunjut192020-05-11 14:07:04
css
kunjut19, 2020-05-11 14:07:04

Why is the UIkit grid messed up when viewing on a phone?

There is such a code . In developer mode on mobile devices everything looks fine. But when you open the same page, but already from the phone (namely, from iPhones 8 and 10), the grid goes astray - the second element (which should be in the first row, in the second column) moves down to the second row in the first column, and the entire grid warps . Like this:
5eb930cece4da069153312.png
Tell me, please, what could be the matter? I tried to change the size of the elements, padding, but nothing worked.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-05-11
@kunjut19

Separate container and grid
i.e.

<div class="main_container uk-container">
   <div class="uk-child-width-1-2 [email protected] ..." uk-grid>
      ...

no need to reset negative margin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question