P
P
Pavel Nikitin2015-08-30 11:12:26
css
Pavel Nikitin, 2015-08-30 11:12:26

Why is the display of text on the site page sometimes distorted when it is updated?

Hello!
More than once I encounter an inexplicable problem for myself, I can’t find a solution to it
.
Example, there are a couple of buttons, the text in which behaves differently, sometimes correctly, sometimes goes down:
Correct representation
0e91c3bc59db4cb49cdf669727372159.png
Wrong..
d6f24c4f4f344799ba245282c8d47bff.pngHelp me understand why this is happening, with a 50% chance there is an error..
Button styles:

.filters_menu__btn {
    text-align: center;
    min-width: 36px;
    line-height: 38px;
    height: 40px;
    background: #fff;
    border: 1px solid #ccc;
    margin: 0 -1px 0 0;
    cursor: pointer;
    display: block;
}

At the same time, if you open the source code of the page in the browser and make any change to the styles of any element, then in an instant all problem areas are aligned.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Nikitin, 2015-08-31
@kopbox

I found a problem, reset.css is to blame, somehow it affects the layout .. Turned it off, everything works correctly ..

E
Evgeny Konkin, 2015-08-30
@konnn

It seems to me that there is a lot of excess in style. How would I make a button like this:
.filters_menu__btn {
padding: 20px;
background: #fff;
border: 1px solid #ccc;
cursor: pointer;
}
Sorry for the code, I'm writing from a mobile phone!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question