update 'change grid width' section
This commit is contained in:
parent
3ca3b6cc81
commit
206616a109
1 changed files with 5 additions and 3 deletions
|
|
@ -306,10 +306,10 @@ and HTML:
|
|||
|
||||
## Change grid width
|
||||
|
||||
To addition to `width` option, CSS rules for `.grid-stack-item[data-gs-width="X"]` and
|
||||
`.grid-stack-item[data-gs-x="X"]` have to be changed accordingly (see #38).
|
||||
To change grid width (columns count), to addition to `width` option, CSS rules
|
||||
for `.grid-stack-item[data-gs-width="X"]` and `.grid-stack-item[data-gs-x="X"]` have to be changed accordingly.
|
||||
|
||||
For 3-column grid you need to rewrite CSS to be:
|
||||
For instance for 3-column grid you need to rewrite CSS to be:
|
||||
|
||||
```css
|
||||
.grid-stack-item[data-gs-width="3"] { width: 100% }
|
||||
|
|
@ -333,6 +333,8 @@ For 4-column grid it should be:
|
|||
.grid-stack-item[data-gs-x="1"] { left: 25% }
|
||||
```
|
||||
|
||||
and so on.
|
||||
|
||||
|
||||
Changes
|
||||
=======
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue