|
Post by gopherhim on Oct 27, 2024 23:01:32 GMT -5
Since this thread got bumped. Does anyone reading know how to get text/images/links etc to center vertically in table cells?
On a computer web browser it seems to automatically center stuff vertically. On my phone, though, whatever is in the cells rises to the top.
I’ve tried googling but might not be wording the search to get the answer I’m looking for. Not important but just curious if there’s a workaround.
|
|
|
Post by maigrey on Oct 28, 2024 16:13:21 GMT -5
I also found this out - you can use the \[pre\] \[/pre\] labels before and after your text and it will past it in preformatted, keeping the tabs as is. (take out the \s) copied directly from a spreadsheet with the pre /pre around it: col 1 col 2 col 3 A B C D E F
|
|
|
Post by maigrey on Oct 28, 2024 16:18:47 GMT -5
Since this thread got bumped. Does anyone reading know how to get text/images/links etc to center vertically in table cells? On a computer web browser it seems to automatically center stuff vertically. On my phone, though, whatever is in the cells rises to the top. I’ve tried googling but might not be wording the search to get the answer I’m looking for. Not important but just curious if there’s a workaround. via css: <td style="text-align: center;"> change the <> to [] As a general rule, bbcode accepts the same parameters as HTML/CSS, so you can always search for the way to format something in HTML ('center image in html table') and use that.
|
|
|
Post by bigfan on Oct 28, 2024 16:41:48 GMT -5
|
|
|
Post by JJVb on Oct 28, 2024 17:43:03 GMT -5
I don't use tables, but each year I improve my match threads, so maybe using tables will be next! Thanks.
|
|
|
Post by gopherhim on Oct 28, 2024 18:06:47 GMT -5
Since this thread got bumped. Does anyone reading know how to get text/images/links etc to center vertically in table cells? On a computer web browser it seems to automatically center stuff vertically. On my phone, though, whatever is in the cells rises to the top. I’ve tried googling but might not be wording the search to get the answer I’m looking for. Not important but just curious if there’s a workaround. via css: <td style="text-align: center;"> change the <> to [] As a general rule, bbcode accepts the same parameters as HTML/CSS, so you can always search for the way to format something in HTML ('center image in html table') and use that. Yup this is what I use! It centers things vertically and horizontally in the table cell when I look at my match threads on my computer. But the very same match thread on my phone only has the content in table cells centered horizontally, not vertically as well. If that makes sense? Like the text/image is pushed to the top border instead of smack dab in the middle of the cell but IS centered left to right. Idk unimportant and maybe just the way it goes with differences between mobile and non-mobile web browsers? I know a lot of people use VT on their phone (I'm like 50-50), so I construct my match threads with that in mind, and when I test something new I look at it on my phone and computer. Just slightly annoyed that table centering is different between the two lol. Wasn't sure if there was some style parameter I haven't found that forces vertical centering since it doesn't default to that on my phone but does on my computer. My coding experience is limited to MySpace and some HTML/python in GIS classes I took in college lol
|
|
|
Post by exit237a on Oct 28, 2024 22:39:30 GMT -5
Thanks, bigfan! I was pleasantly surprised to see the thread bumped after some dormancy, and am psyched to see the conversation continue.
|
|
|
Post by maigrey on Oct 29, 2024 12:22:31 GMT -5
via css: <td style="text-align: center;"> change the <> to [] As a general rule, bbcode accepts the same parameters as HTML/CSS, so you can always search for the way to format something in HTML ('center image in html table') and use that. Yup this is what I use! It centers things vertically and horizontally in the table cell when I look at my match threads on my computer. But the very same match thread on my phone only has the content in table cells centered horizontally, not vertically as well. If that makes sense? Like the text/image is pushed to the top border instead of smack dab in the middle of the cell but IS centered left to right. Idk unimportant and maybe just the way it goes with differences between mobile and non-mobile web browsers? I know a lot of people use VT on their phone (I'm like 50-50), so I construct my match threads with that in mind, and when I test something new I look at it on my phone and computer. Just slightly annoyed that table centering is different between the two lol. Wasn't sure if there was some style parameter I haven't found that forces vertical centering since it doesn't default to that on my phone but does on my computer. My coding experience is limited to MySpace and some HTML/python in GIS classes I took in college lol ohhhh, that's aligning middle. Try adding vertical-align: middle; to the TD: <td style="text-align: center;vertical-align: middle;">
|
|