Link to home
Start Free TrialLog in
Avatar of Colin Brazier
Colin BrazierFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Toggle <tr> in narrow screen widths to show detail

Here is the current live version of the page I want to change.

http://www.fobgfc.org/?page=team&side=1&season=2019

When viewed on a phone the fixtures CSS shows them like image01.

User generated image
My problem is that each fixture takes up too much space.  So for narrow widths (<600px) I have changed the PHP/HTML and CSS via media queries to show only Date, Opposition and Competition so it all fits on one line.  This is image02 from my test site http://www.col-b.uk/?page=team&side=1&season=2019

User generated image
So far so good.

The end goal is to toggle each fixture to show a popup with the detail of scores etc.  What is the easiest way to do this?  JQuery toggle or javascript alert box? Or another way?

In either case do I need a separate button to tap to toggle, or can I use the fixture row itself?

All help appreciated.

PS I still don't know how to preview a question before asking it, so hope this turns out well!
ASKER CERTIFIED SOLUTION
Avatar of lenamtl
lenamtl
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Colin Brazier

ASKER

Thanks - I use Datatables in other areas of the site, but I really want to avoid rewriting the whole page.
That will save you time compare to trying to fix it on your own, plus the result will be clean and userfriendly.

Multiple lines display is a lot better to my opinion
and it allows to have labels which can help to understand the data especially when data are digits
OK I'll take a look at it.