Skip to main content

<apex:page controller="My_Controller" sidebar="false" standardStylesheets="false" showHeader="false" docType="html-5.0" id="page1" >

<style>

.activeTab

{

background-color: #.09f;

color:white;

background-image:none;

border: 1px solid #.fff;

}

.inactiveTab

{

background-color: #.fff ;

color:#.09f;

background-image:none;

border: 1px solid #.09f;

}

</style>

<apex:outputPanel>

<div>

<apex:tabPanel switchType="client" selectedTab="name2" id="AccountTabPanel" tabClass='activeTab' inactiveTabClass='inactiveTab'>

<apex:tab label="One" name="name1" id="tabOne">content for tab oneeeeeeeeeeeee</apex:tab>

<apex:tab label="Two" name="name2" id="tabTwo">content for tab two</apex:tab>

</apex:tabPanel>

</div>

</apex:outputPanel>

</apex:page >

I added apex:tabPanel in my VF page but it looks totally different as usual

 

As shown above, I added TabPanel in my VF page. It is looking very  bed in browser, I am sharing screen short of preview please help me to solve above problem
1 answer
  1. Jan 5, 2018, 2:04 PM
    Thank you for posting to Trailblazer Community.   This Community is focused on configuration and design questions. Programmatic questions are best submitted to the developer forums at https://developer.salesforce.com where the forums and participants are geared toward programming troubleshooting and support.