+ Start a Discussion
CodeBeeCodeBee 

How can i implement stylesheet to <Apex:pageBlockSection>

Hi Guru,

 

if i have code below :

 

 

<apex:pageblocksection title="My Test" column="2" >

<apex:label value={!$Label.mylabel} /> <apex:Input value="{!myvalue}" />

</apex:pageBlockSection>

 

How can i put the stylesheet in between of mylabel and myvalue ? the stylesheet mainly to show image and i want it seat just before of myValue.

 

bob_buzzardbob_buzzard

Is there a reason you can't use an apex:image component to display the image?

 

If not, you can include a stylesheet in the page from a static resource and then add your styled component.

CodeBeeCodeBee

Hi Bob,

 

What i need is a red bar that appear beside of inputText field like how required field show, not sure how can get it if using Apex:PageBlockSection? should i use the HTML <Table> and <div> instead of using those Apex:PageBlockSection ?

 

Between, I can't use <Apex:inputField> as it is not Sobject field.

 

 

bob_buzzardbob_buzzard

If you wrap your input field as shown below, you will see the red bar:

 

 

<div class="requiredInput">
<div class="requiredBlock" />
   <apex:inputText required="true" value="{!inputStr}" />
</div>

 

replace the inputText with your component.