I’ve tried this suggestion, but that doesn’t do anything for me. I’d like to increase the width of my table, beyond what’s the “readable line lngth”, which I don’t want to turn off because the regular text is fine at this width.
I’m also talking about Live Preview. I have a snippet that works to increase the width in preview mode, but for ease of data entry, I’d like it to have a greater width while still being able to type in the table.
I would have a scroll back through and/or ask in Obsidian’s Discord #appearance channel.
I’ve seen a few “wider than readable line length” table snippets float by – some for regular tables, some only for dataview tables, some affecting all notes and some with a cssclass for only certain notes.
They are fairly complicated and my impression is that they are prone to breaking with Obsidian updates, may only work properly in some themes, etc.
We still might get it working for you. When you use the snippet I wrote you, what does it look like in your sandbox, and what is missing compared to what you’re trying to achieve? Also are you in v1.8.9?
I put these tables in my sandbox:
| column 1 | column 2 | column 3 |
| -------- | -------- | -------- |
| a | a | a |
| b | b | b |
> [!NOTE]
>
> | column 1 | column 2 | column 3 |
> | -------- | -------- | -------- |
> | a | a | a |
> | b | b | b |
Thanks for this!
I think I’m seeing the same as in your screenshots. Yes, I’m on 1.8.9, I’m using Linux Mint. The thing I’d like to achieve is that, ideally, the table would go beyond the “readable line length” if there’s space for it.
I’m learning Japanese, and I have some css to increase the font size in the table
but because the font is now bigger, the lines wrap, even though there’s plenty of space to the left and right of the table. In Preview Mode, I can tell it to go wider, with e.g.
body .vocab-page {
--file-line-width: max-width;
}
but then I obviously can’t fill in the gaps.
This is obviously a somewhat silly problem to have, since I can just fill in the gaps, then switch to Preview mode, but just something I’ve been finnicking with.
In case you want to test out the table:
| Kana | Kanji | Readings | English |
| -------------- | ----------- | ---------------------------------------------------- | ----------------------- |
| あおい | 青い | {青\|あお} い | blue |
| あかい | 赤い | {赤\|あか} い | red |
| あさごはん | 朝ご飯 | {朝\|あさ} ご {飯\|はん} | breakfast |
It’s not responsive to different screen sizes but might satisfy that “use the space available” desire for your Japanese-learning notes. Set the two margin sizes to your liking.