+ Start a Discussion
apex code shareapex code share 

Please help me how to use CSS in visualforce page.

Hi,

 

I have created a visualforce page for barcode generation. but my barcode(which should be in to a box) is coming out of the box for which i will have to use CSS in my visual force page.

 

Please help me  to set the bar code in to the box.



 

Andy BoettcherAndy Boettcher
apex code shareapex code share

Thanx for the reply!!!

 

I have my code :-

 

<apex:page standardcontroller="Products__c" renderas="pdf" standardStylesheets="False">
<apex:form >
<BarcodeZone:ACBarcodeZone Value="{!Products__c.Name}" BrcdType="{!Products__c.Bar_code_type__c}">
</BarcodeZone:ACBarcodeZone>
</apex:form>
</apex:page>

 

 

Now i want to use CSS in this,please help me here using it.

Andy BoettcherAndy Boettcher

I haven't used BarcodeZone, but I would envision you can tag and use CSS in that tag just as you would anything else..

 

<BarcodeZone:ACBarcodeZone Value="{!Products__c.Name}" BrcdType="{!Products__c.Bar_code_type__c}" style="whatever your inline css styles are">

 

-Andy