0
I don’t have much knowledge in html or css.
When I minimize the screen or change the resolution, the container does not follow the same pattern. As follows:
Minimized:
Why is this happening and what is the best way to correct it? Thanks for your attention.
follows how it is in css:
#containerForm{
float: right;
width: 1050px;
background: tomato;
}
I put this red background just to enhance the visualization
Html snippet:
<div id="containerForm">
<form action="." method="POST">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Simular</button>
</form>
</div>
When I do this the container is no longer aligned, it throws everything to the right corner of the screen
– Franco Motta
Yes, I used the float because it was the only way I could get it aligned. What other way could I put it? I don’t know much about html or css
– Franco Motta
This problem is happening because of the absolute width, the correct is you put the side menu and this div with relative widths (%). And in case they get below each other, correct with
float:left;
anddisplay:inline-block;
.– yohlu
Thanks! I put width: 82% and if minimize or change the screen resolution the container remains the same
– Franco Motta