Sets the gap value between columns Args: value (int or str): gap value (i.e. 10 or "10px")
(self, value)
| 1805 | self.css_grid_template_rows = ' '.join(map(lambda value: (str(value) if str(value).endswith('%') else str(value) + '%') , values)) |
| 1806 | |
| 1807 | def set_column_gap(self, value): |
| 1808 | """Sets the gap value between columns |
| 1809 | |
| 1810 | Args: |
| 1811 | value (int or str): gap value (i.e. 10 or "10px") |
| 1812 | """ |
| 1813 | if self.css_width == "auto": |
| 1814 | if (type(value) == int and value != 0) or value[0] != "0": |
| 1815 | raise CssStyleError("Do not set column gap in combination with width auto") |
| 1816 | if type(value) == int: |
| 1817 | value = str(value) + 'px' |
| 1818 | self.style['grid-column-gap'] = value |
| 1819 | |
| 1820 | def set_row_gap(self, value): |
| 1821 | """Sets the gap value between rows |
no test coverage detected