Placeholder in Forms (CSS) -> fields besides each other ?

Phoca Cart - complex e-commerce extension
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Placeholder in Forms (CSS) -> fields besides each other ?

Post by CRM-Hero »

Hello again,

Placeholder works very fine. And also CSS for width adjustments:

Code: Select all

.ph-form-group-vat_1,
.ph-form-group-company {
    width: 50%;
}
  • BUT how to place the fields besides each other ?
In my case the fields are listed one below each other. Refer to Display of form fields with placeholder-CSS

Have experimented with {float: left ...} but it does not work.

Thanks Roland
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Placeholder in Forms (CSS) -> fields besides each other ?

Post by Benno »

Hi,
try to switch to Joomla! default template Cassiopeia for testing to see if your frontend template is causing the problem.
With Cassiopeia for me it works as expected:

Image

Kind regards,
Benno
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Re: Placeholder in Forms (CSS) -> fields besides each other ?

Post by CRM-Hero »

Hello Benno,

first time switching to Cassiopeia: it worked (side by side). Back to my template; then 2nd+3rd time switch to Cassiopeia did not work anymore.
Anyway the template seems the source of this behaviour. I am using JoomShaper Helix Ultimate+PageBuilder as default for all pages.

Any idea if that could be fixed with CSS ?

Thanks Roland
Benno wrote: 06 Oct 2023, 16:46 try to switch to Joomla! default template Cassiopeia for testing to see if your frontend template is causing the problem.
With Cassiopeia it works for me as expected:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Placeholder in Forms (CSS) -> fields besides each other ?

Post by Benno »

Hi,
then 2nd+3rd time switch to Cassiopeia did not work anymore.
Cache? :idea:
Any idea if that could be fixed with CSS ?
Sorry, no idea.. I don't use Helix, perhaps Jan do??

If not, you should contact the Helix developers and ask them, why Helix templates behave different from Joomla! 4+5 standard template Cassiopeia. :idea:

Kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Placeholder in Forms (CSS) -> fields besides each other ?

Post by Jan »

Hi, not sure if Helix standardly renders its CSS before custom.css. So it is possible, that the CSS classes you wrote are overwritten by some another Helix CSS. Where did you make the changes, in custom.css? If yes, is this custom.css loaded as last on your site?

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