|Tables for news articles.||Locked|
|Sep 25 2013, 6:08pm Anchor|
Hi, I am wondering why I can't use tables in my news articles? I would really love the formatting options they offer.
For example, in Indiedb.com
No matter what I do, I can't get the images on the right side of the change log to all align with each other and have decent spacing around the text. And that is after fiddling with it for 10 minutes just to get it display even vaguely like I want it because the built in editor view AND preview view does not actually correspond to what is shown on the website. I would hate to think of what it looks like in other browsers.
Getting rid of the vertical white space of the images on the right is near impossible with just 'floating right' images. I would REALLY love table support.. or someone to tell me how on earth to do layouts without tables for indieDB news articles.
|Sep 26 2013, 7:23am Anchor|
|Sep 26 2013, 8:36am Anchor|
I'll look into divs. Just hard to tell what kind of HTML is supported and what will just get stripped out.
I assume with divs I would wrap the change log in one div and the right side images in another?
I don't care if its not the same, I just want to be able to place images that all share the same horizontal alignment to the right of a section of text, ideally with little to no vertical white space, easily without having to spend 15 minutes fiddling with the exact 'line' each image is on to get it to display 'correctly' while still having weird horizontal offsets.
I assume one can (and should on other sites as well?) nest divs instead of using tables in most cases where one used to use (boarderless) tables for layouts? I have not relearned HTML in awhile.
Edited by: BlackMoons
|Sep 26 2013, 10:35am Anchor|
tables aren't supported full stop i believe, you may be able to wrap divs, but to be honest, its get away with what you can, news isn't as customizable as it could be, however we need to keep some form of formatting structure, or some news posts would look really out of place with all types of wacky layouts.
|Sep 26 2013, 3:45pm Anchor|
Not sure how wacky layouts would really break anything. But then maybe tables can screw up the surrounding layout elements of the site? *shrugs*
Thanks for the compliment. As I said, I mainly just needed a way to get the images on the right to align easier. Div's do the job nicely so im happy with them.
Is there any page that lists exactly what html is allowed or not allowed in news articles and game descriptions?
|Sep 26 2013, 7:01pm Anchor|
|Sep 28 2013, 6:04am Anchor|
Lol tables wouldn't break the site layout, but they are still being stripped out (like some other html tags) so you can't really use them. Only divs.
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.