1
I have component 1 in float:left
and component 2 in float:rigth
, , but the problem occurs when in lower resolution component 2 is below component 1 facing the right side and component 1 facing the left side.
My goal is that in smaller resolutions the component 2 be aligned with the other on the left side.
Clarifying better the component is below the other, in smaller resolutions one facing the left side the other to the right side.
Also remembering that I can’t give float:left
pros 2, if it won’t get 1 below the other in higher resolution.
This is because one component overwrites the other. Wouldn’t you call for this overlay? These components have what? Text? Images?
– Guilherme Portela
Component 1 is registration the other is social login
– valdir silva
It is incompatible with the cell phone one to the left side another to the right side
– valdir silva
It would be better for one button to be below the other, just adjusting in the CSS so that they assume the width of the screen. As I said earlier, there is the breaking of space so there is no overlapping of elements.
– Guilherme Portela
You can use the
@media
to adjust this.– Guilherme Portela
What is the
margin
and thepadding
calculated of these elements? Arediv
s? To see this use firebug or click F12 in the browser and see what are the calculated values, not the arrows.– rodrigogq
@media? not only familarized
– valdir silva
the problem is not in the margin and padding, the problem is that in mobile resolution, one component is below the other one pro left side and the other pro right side, in smaller resolutions not even to notice
– valdir silva