#CSS Table alignment issues

16 messages ยท Page 1 of 1 (latest)

velvet gyro
#

Copied from #general message as I wasn't replied.

One problem I have is the following:

I want to fit my Discord an Featured Articles headers in my Main Page. The problem is that it doesn't look that good when I zoom out and there is a big blank space there.

The first image is when I used 33% and 33% for each box and I was left with this space.

The second one is when I used 50% and 50%, which should've filled the space. Though it just filled part of it, the discord widget wasn't centered and the above "DId you know" box was squished into 10%-15% of the space.

I even made a third image, with 40% each this time. The problem is the same

The intended result was the last row occuping 100% of the space, with the Discord and Featured Articles boxes being the same size

high rose
velvet gyro
#

yes

#

lets goo

#

DoneMHDoneMHDoneMHmirahezemiraheze๐Ÿ”ฅ๐Ÿ”ฅโญโญ๐Ÿ‘๐Ÿ‘trouttroutmoonchmoonchThinkerMHThinkingHardMH

#

sorry

high rose
# velvet gyro yes

I modified the colspan values so there are a total of 4 cols in the table, then the bottom ones can both be 2 cols wide

velvet gyro
#

then how do I apply this?

high rose
velvet gyro
#

is it a html tag?

high rose
# velvet gyro is it a html tag?

nope, it's an attribute which you can specify for a table row (which is already done for some rows in your main page), see https://www.mediawiki.org/wiki/Help:Tables#HTML_colspan_and_rowspan for more info

MediaWiki

Tables redirects here; for information about database table structure, see Manual:Database layout .
Tables may be created in wiki pages.
As a general rule, it is best to avoid using a table unless you need one.
Table markup often complicates page editing.

velvet gyro
#

probably gonna consult my css guy in our wiki

#

ty

high rose