Эрик Мэйер обновил свое видение обнуления дефолтных значений для HTML-элементов. В принципе изменения незначительны, кроме одного. Эрик изменил свое мнение о наследовании стилей для шрифтов. Из ресета исключены следующие свойства:
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
font-weight: inherit;
font-style: inherit;
}
Теперь заголовки будут выделены жирным шрифтом по умолчанию, em будет наклонным и тд. Так же добавлены стили для del и ins. А вот и полная версия:
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
Эрик просто устал бодаться с поддержкой свойства «inherit» в IE…
И его можно понять :)
Спасибо, только начинаю изучать верстку, пригодиться.
Кстати, а что у вас с формой комментариев, поля разбросаны как-то?
Блин, я ее не вижу просто, точно косяки. Будем править, спасибо.
а я раньше думал что так и надо))) нестандарт типа…
По-моему это шаблон такой.
ДА нет, подкорректировать поля и все ровно будет.