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
ManjusrinuManjusrinu 

custom tabs

Hi,
I have created a custom tab that needs to be posted on vf page,I am getting the output but not in the correct way  
The below is my code 

Can anyone help me to solve the issue ?

<apex:tabPanel switchType="client" >
        <apex:tab label="Home">Home content</apex:tab>
        <apex:tab label="Contacts">Contacts content</apex:tab>
        <apex:tab label="Achievements">Achievements content</apex:tab>
    </apex:tabPanel>

I am not getting the default stylings of the custom tabs

The image shows my output for the above code

ShirishaShirisha (Salesforce Developers) 
Hi Dinesh,

Greetings!

You can use the style class to style the tabs as suggested here.

https://developer.salesforce.com/forums/?id=906F0000000DD5EIAW

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
SwethaSwetha (Salesforce Developers) 
Hi Dinesh,
Can you try the approach mentioned in https://salesforce.stackexchange.com/questions/5764/how-to-change-tab-style-for-vf-page-from-black-to-default-color-home-tab-color i.e, adding the following line: <body class="homeTab"> to the VisualForce page. In order for the default styling of the page to inherit the Home Tab styles, the page must have the showHeader="true" attribute

If this information helps, please mark the answer as best.Thank you
ManjusrinuManjusrinu
Hi Shirisha, I have given some custom styling for my tab and even though it is not working Can you help me out ?