A
A
Adel1ne2015-06-18 07:06:05
Yii
Adel1ne, 2015-06-18 07:06:05

Modal window (bootstrap) in Yii2 is not friendly with floats?

Hello!
yii2 has built-in modals (via bootstrap).
I'm trying to put a div with css-property float: left in the modal window, but for some reason the height of the modal window does not adjust to the size of the div.
Tell me, what properties of the modal window interfere with determining the size of a div with a float property, or maybe the div needs to add some css settings?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Bay, 2015-06-18
@kawabanga

first try float option:
- use div in dive
modal -> div (static) -> div (float left)
for static div you need to specify minimum height
- try after element with float

V
Vadim Stepanov, 2015-06-18
@Vdm17

Read the basics of CSS. An element with a float property does not keep track of its height by default. This requires a reset in the view <div style="clear:both;"></div>after all divs with any float values.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question