↓
 ↑
Регистрация
Имя/email

Пароль

 
Войти при помощи
arctblake
18 февраля 2016
Aa Aa
- Добавить на страницу /admin/user/user/id/change/ ссылку на страницу с сообщениями юзера. Сделать вьюху в админке для просмотра всех сообщений юзера. +++

в request.POST могут быть поля, имеющиеся в форме, но не имеющиеся в модели.

max-width overrides width.

background-origin specifies the positioning area of the background images (default: padding-box).
background-clip specifies the painting area of the background (default: border-box).

Absolute size:
- Sets the text to a specified size
- Does not allow a user to change the text size in all browsers (bad for accessibility reasons)
- Absolute size is useful when the physical size of the output is known

Relative size:
- Sets the size relative to surrounding elements
- Allows a user to change the text size in browsers

The em size unit is recommended by the W3C.
1em is equal to the current font size. The default text size in browsers is 16px. So, the default size of 1em is 16px.

a:hover MUST come after a:link and a:visited
a:active MUST come after a:hover

list-style-position: inside - маркер входит в контент.

tr:nth-child(even) {background-color: #f2f2f2}

http://www.w3schools.com/cssref/css_selectors.asp

<div style="overflow-x:auto;">

<table>
... table content ...
</table>

</div>

outline - накладывается поверх margin
outline-offset

Setting the display property of an element only changes how the element is displayed and which properties can be applied to it, NOT what kind of element it is. So, an inline element with display: block; is not allowed to have other block elements inside it.

display: none;
visibility: hidden;

position: relative;
элемент как бы выдергивается из нормального потока и располагается на сетке поверх потока, но место, которое элемент занимал бы при static резервируется (размеры зарезервированного места учитывают размеры элемента).

position: absolute;
элемент выдергивается из нормального потока ..., место не резервируется. Элемент, относительно которого позиционируется эл. с position: absolute; принимается как бы за родительский элемент.

Если указать relative или absolute и не указать смещения, то элемент как бы останется на своем месте (визуально), хотя будет выдернут из потока.

http://www.w3schools.com/css/css_positioning.asp

overflow: auto;
...

Elements after a floating element will flow around it.

If an element is taller than the element containing it, and it is floated, it will overflow outside of its container.

http://www.w3schools.com/css/css_inline-block.asp

a {display: block;}

display: none + position: absolute + elem:hover ddelem = dropdown content

::before, ::after
18 февраля 2016
1 комментарий
<!DOCTYPE html>
<html>
<head>
<style>
.left {
float: left;
width: 200px;
border: 3px solid #73AD21;
padding: 10px;
}

.right {
float: right;
width: 300px;
border: 3px solid #73AD21;
padding: 10px;
}

.bottom {
width: 200px;
clear: both;
border: 3px solid #73AD21;
padding: 10px;
}
</style>
</head>
<body>

<div class="left">
<p>aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa</p>
</div>

<div class="right">
<p>
In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.
</p>
</div>

<div class="bottom">
<p>asdasd dasdasd dasdad dasdasd.</p>
</div>

</body>
</html>
ПОИСК
ФАНФИКОВ









Закрыть
Закрыть
Закрыть