Two tables, side by side

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
User avatar
zonkd
Joomla! Explorer
Joomla! Explorer
Posts: 261
Joined: Tue Sep 11, 2007 1:46 pm
Location: Kingston, London, by the famous stream
Contact:

Two tables, side by side

Post by zonkd » Sat Nov 10, 2018 2:14 pm

On a Joomla 3 page, I have two tables which should sit side by side. One on the right, will extend about a third into the page, and the left table about two-thirds of the page.

I can guess the measurement - for instance, 300px - but naturally, the moment I look at the page on a mobile phone, one table sits on top of the other.

Is there some code that allows two tables to sit side by side, please, Experts?

Cheers from a hot Cape Town
paul

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Two tables, side by side

Post by Webdongle » Sat Nov 10, 2018 2:43 pm

Search css float-left and float-right or https://www.w3schools.com/css/css_grid_item.asp
Also use % widths
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
zonkd
Joomla! Explorer
Joomla! Explorer
Posts: 261
Joined: Tue Sep 11, 2007 1:46 pm
Location: Kingston, London, by the famous stream
Contact:

Re: Two tables, side by side

Post by zonkd » Sat Nov 10, 2018 3:07 pm

Thanks very much, Webdongle. Actually, I have been experimenting with float left and right, but it doesn't seem an ideal answer. Then it struck me: why must I have two tables? One with an extra column might do. if that doesn't look very good then I'll follow your lead here.
Thanks for your help with this, Webdongle. It's appreciated very much.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Two tables, side by side

Post by Webdongle » Sat Nov 10, 2018 4:23 pm

html tables are not responsive.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30920
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Two tables, side by side

Post by Per Yngve Berg » Sat Nov 10, 2018 5:56 pm

You can also use the Bootstrap Grid.

http://getbootstrap.com/2.3.2/scaffoldi ... gridSystem


Locked

Return to “General Questions/New to Joomla! 3.x”