WebSite X5Help Center

 
Ross P.
Ross P.
User

Is it possible to make tables responsive and if so how do you do it?  en

Autor: Ross P.
Visited 1456, Followers 3, Udostępniony 0  

Looking at setting up a 4 generation pedigree for an animal on a webpage where there are some thumbnail images that can be clicked on to show further details of that particular animal, but my main concern is that the main table is not responsive for smaller screen sizes under 720px.

Can anyone help please - image of the table is attached.

Alternatively if anyone has a suggestion as to where a template like this (that ould be responsive) can be found that could be added to the page, I would be very grateful.

Thanks

Cheers, Ross

Posted on the
11 ODPOWIEDZI - 2 USEFUL
Esahc ..
Esahc ..
Moderator

Ross, it is not possible to have a responsive table in WX5 unless you use 3rd party code (eg https://helpcenter.websitex5.com/pl/post/232476)

Having looked at your table layout jpg why not simply layout a page in WX5 using rows and columns of cells? It will be responsive and you will have absolute control over the appearance for each resolution.

Czytaj więcej
Posted on the from Esahc ..
Ross P.
Ross P.
User
Autor

Thanks Esahc.. 

Yes was thinking of that as another option which I may now look at doing.

Appreciate your time and help in replying.

Stay safe. Cheers Ross

Czytaj więcej
Posted on the from Ross P.
Axel  
Axel  
User

Hello Roos,

Not by default but you can 

Here my table on my PC

and on my mobile

Just add this CSS code into prpperties page

Enjoy!

Axel

Czytaj więcej
Posted on the from Axel  
Ross P.
Ross P.
User
Autor

Thank you Axel, I will give that a go.

Appreciate your help

Kind regards Ross

Czytaj więcej
Posted on the from Ross P.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Najlepszy Użytkownik miesiąca ESNajlepszy Użytkownik miesiąca PT

(It > En)  ... to be able to verify, it was better if you posted the LINK of the page ...
... it was my invention of several years ago, made for v.12,  as taken from Axel's STAMP...
... also this Topic (and others) could help you:
https://helpcenter.websitex5.com/pl/post/227312
... however, eventually the code should be conditioned for the reference breakpoint (719px)...

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Ross P.
Ross P.
User
Autor

Hi KolAsim

Thank you very much for your reply and assistance. The page is not live as yet because the client is trying to sort out an appropriate Domain Name but you might get an idea of the draft I am part way through from this link: http://127.0.0.1:8080/sire-stags.html

The image is of the lower than 480.9px view but the 719.9 - 480px view are the same. 

Kind regards, Ross

Czytaj więcej
Posted on the from Ross P.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Najlepszy Użytkownik miesiąca ESNajlepszy Użytkownik miesiąca PT

... Hi Ross, ...unfortunately it is not a valid LINK, it is the local one of your PC...
... you have to export the example on the net in a test subdirectory, for example in:
www.yoursitename.en/test/index.html
.
Hello,  ciao
.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Ross P.
Ross P.
User
Autor

Hi KolAsim

Sorry thought because I could see it here that you migt be able to as well.

Have now uploaded the site and the page can be seen here:

http://www.forestroadfarm.pagans.nz/sire-stags.html

Hope this helps.

Kind regards

Ross

Czytaj więcej
Posted on the from Ross P.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Najlepszy Użytkownik miesiąca ESNajlepszy Użytkownik miesiąca PT

... OK ...
... my code, customized for your current page, for the reference selector #imCell_26  is this:
<style>
@media(max-width:719px) {
#imTableObject_14_26 table td {width:25% !important}
#imTableObject_14_26 table img {width:100% !important}
#imTableObject_14_26 {overflow-x: hidden !important}
}
</style>

... you have to paste the code in the Properties of the "sire-stags.html"  Page, in this section:
>> Step 3 - Map > The 'Page Properties' window > Options in the Expert section | Custom Code: > 3^ (third) option Before closing the HEAD tag

... ... if you need other clarifications or help, let me know ...

... hello, ciao

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Ross P.
Ross P.
User
Autor

Thanks KolAsim

That is brillant, thank you so much.

Keep up the great assistance and stay safe.

Kindest regards

Ross

Czytaj więcej
Posted on the from Ross P.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Najlepszy Użytkownik miesiąca ESNajlepszy Użytkownik miesiąca PT

...wink...

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪