function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
avimeiravimeir 

Two inputFields ion same line

Hi all,

 

Any idea how to align two inputField within a <fieldset> on the same line, without using <table> ?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
avimeiravimeir

Found a solution, writing it here in case someone in the future has the same problem:

 

I had a fieldset (HTML fieldset, not the SFDC notion of fieldset) and inputs were displayed on seperate lines, the solution in CSS is:

 

.fieldsetClass > * 
{
    display:inline-block !important;
}

 

All Answers

Adam HowarthAdam Howarth

Hey,

 

How about:

 

Obviously change to your needs. It depends on what the inputfield is inside aswell (outputPanel, PageBlockSection etc.)

 

<apex:inputField style="float:left; padding-right:20px;">

 

 

Cheers,

Adam

avimeiravimeir

Found a solution, writing it here in case someone in the future has the same problem:

 

I had a fieldset (HTML fieldset, not the SFDC notion of fieldset) and inputs were displayed on seperate lines, the solution in CSS is:

 

.fieldsetClass > * 
{
    display:inline-block !important;
}

 

This was selected as the best answer