T
T
TANK_IST2014-09-23 14:22:05
css
TANK_IST, 2014-09-23 14:22:05

How to fix ie 8 layout and padding ?

Layout tables. No fixed width.
parent block:

width: 32%;
padding: 40px 2% 10px 9%;
font-family: Verdana;
vertical-align: top;

And inside aside and ul.
They take a width considering not only the width but also the padding of the parent,
because of this they bulge out of the block.
How to fix it?
Of course, in other browsers everything is OK

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Mischuk, 2014-09-23
@Mischuk

box-sizing: border-box or remove width: 100% for aside/ul. Set the width to auto and set display: block if it's set to something else.

A
Andrey Ezhgurov, 2014-09-23
@eandr_67

Actually, IE8 supports box-sizing: htmlbook.ru/css/box-sizing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question