M
M
Maxim Ivanov2016-08-22 11:53:51
css
Maxim Ivanov, 2016-08-22 11:53:51

How to correctly display label for resolution 1024 in width?

I display forms in the central column, everything seems to be fine, but when the resolution is less than 1200px and closer to 1024px => labels run into the fields (materialize library)
a34a8237372245459991d042bcac7389.png
Each block with an input is formed (wrapped) with the following code:
a986ef3fade849128287a038f0f0c3ae.png

.input-field label {
    color: #9e9e9e;
    position: absolute;
    top: 0.8rem;
    left: 0.75rem;
    font-size: 1rem;
    min-height: 10px;
    height: 10px;
    cursor: text;
    transition: .2s ease-out;
}

What can you think of?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergiu Mitu, 2016-08-22
@splincodewd

get rid of position: absolute in the layout, enjoy the normal layout.

A
Andrey Fedorov, 2016-08-22
@aliencash

"Взлетная масса (max)"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question