Responsive?

Phoca Guestbook - creating guestbooks in Joomla! CMS
peterspie
Phoca Member
Phoca Member
Posts: 23
Joined: 15 Nov 2009, 22:29

Responsive?

Post by peterspie »

Hello,

i just noticed on my mobile, that the guestbook (on my website) is not responsive, or at least not responsive enough.
I am using Helix Ultimate template.
See the https://imgur.com/Y0rlC1i

Can someone help me with this?

Regards, Peter
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Responsive?

Post by Jan »

Hi, which version of Phoca Guestbook and Joomla do you use?

Jan
If you find Phoca extensions useful, please support the project
peterspie
Phoca Member
Phoca Member
Posts: 23
Joined: 15 Nov 2009, 22:29

Re: Responsive?

Post by peterspie »

Hi Jan,

Joomla 4.2.1
Phoca guestbook: 4.0.1

Website (in development): link here
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Responsive?

Post by Jan »

Hi, the possible way is to write own CSS for mobile view:
e.g. :

Code: Select all

@media (max-width:768px)  {
...
}
Remove the margin left for controls:

Code: Select all

.form-horizontal .controls {
    /* margin-left: 220px; */
   margin-left: 0;
}
and add display block for control labels:

Code: Select all

.form-horizontal .control-label {
    /* float: left; */
    float: none;
    display: block;
}
So, for example, adding this code to your own custom.css or user.css:

Code: Select all

@media (max-width:768px)  {

    #phocaguestbook .form-horizontal .controls {
    margin-left: 0;
    }
    #phocaguestbook .form-horizontal .control-label {
        float: none;
        display: block;
    }
}
Image

Jan
If you find Phoca extensions useful, please support the project
peterspie
Phoca Member
Phoca Member
Posts: 23
Joined: 15 Nov 2009, 22:29

Re: Responsive?

Post by peterspie »

Hi Jan,

working perfectly. Thank you so much!!!

Regards, Peter
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Responsive?

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply