You need to sign in to do that
Don't have an account?

Can I change my font on my VisualForce Page?
I would like to increase the size of the font and the font style. The sales staff have asked if this is possible? This page is something I borrowed from a lot of posts by many of the developers.
here is my page code.
<apex:page standardController="Account" showHeader="True" sidebar="false" tabStyle="Account" >
<style>
.activeTab {background-color: #236FBD; color:white;
background-image:none}
.inactiveTab { background-color: lightgrey; color:black;
background-image:none}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Account" name="Account" id="tabaccount">
<apex:detail id="account"/>
</apex:tab>
<apex:tab label="Reservation" name="Reservation" id="tabOpp">
<apex:relatedList subject="{!account}" list="opportunities" />
</apex:tab>
<apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct">
<apex:relatedList subject="{!account}" list="OpenActivities" />
</apex:tab>
<apex:tab Label="Contract" name="Contract" id="tabContractAct">
<apex:relatedList subject="{!account}" list="Contracts"/>
</apex:tab>
</apex:tabPanel>
</apex:page>
here is my page code.
<apex:page standardController="Account" showHeader="True" sidebar="false" tabStyle="Account" >
<style>
.activeTab {background-color: #236FBD; color:white;
background-image:none}
.inactiveTab { background-color: lightgrey; color:black;
background-image:none}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Account" name="Account" id="tabaccount">
<apex:detail id="account"/>
</apex:tab>
<apex:tab label="Reservation" name="Reservation" id="tabOpp">
<apex:relatedList subject="{!account}" list="opportunities" />
</apex:tab>
<apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct">
<apex:relatedList subject="{!account}" list="OpenActivities" />
</apex:tab>
<apex:tab Label="Contract" name="Contract" id="tabContractAct">
<apex:relatedList subject="{!account}" list="Contracts"/>
</apex:tab>
</apex:tabPanel>
</apex:page>
Here is modified code..
============================================================================
<apex:page standardController="Account" showHeader="True" sidebar="false" tabStyle="Account" >
<style>
.activeTab
{
background-color: #236FBD;
color:white;
background-image:none;
}
.inactiveTab
{
background-color: lightgrey; color:black;
background-image:none;
}
.rich-tabpanel-content {
font-size: 14px;
}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Account" name="Account" id="tabaccount">
<apex:detail id="account"/>
</apex:tab>
<apex:tab label="Reservation" name="Reservation" id="tabOpp">
<apex:relatedList subject="{!account}" list="opportunities" />
</apex:tab>
<apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct">
<apex:relatedList subject="{!account}" list="OpenActivities" />
</apex:tab>
<apex:tab Label="Contract" name="Contract" id="tabContractAct">
<apex:relatedList subject="{!account}" list="Contracts"/>
</apex:tab>
</apex:tabPanel>
</apex:page>
:::======================================================================:::
Qusetion Solved ? then mark as best answer to make helpful to others .....
For more discussion you can reach out here:
vishnukumarramawat@gmail.com
All Answers
I want to change the font in the tabPanel.
Here is modified code..
============================================================================
<apex:page standardController="Account" showHeader="True" sidebar="false" tabStyle="Account" >
<style>
.activeTab
{
background-color: #236FBD;
color:white;
background-image:none;
}
.inactiveTab
{
background-color: lightgrey; color:black;
background-image:none;
}
.rich-tabpanel-content {
font-size: 14px;
}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Account" name="Account" id="tabaccount">
<apex:detail id="account"/>
</apex:tab>
<apex:tab label="Reservation" name="Reservation" id="tabOpp">
<apex:relatedList subject="{!account}" list="opportunities" />
</apex:tab>
<apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct">
<apex:relatedList subject="{!account}" list="OpenActivities" />
</apex:tab>
<apex:tab Label="Contract" name="Contract" id="tabContractAct">
<apex:relatedList subject="{!account}" list="Contracts"/>
</apex:tab>
</apex:tabPanel>
</apex:page>
:::======================================================================:::
Qusetion Solved ? then mark as best answer to make helpful to others .....
For more discussion you can reach out here:
vishnukumarramawat@gmail.com
Here is modified code..
<apex:page standardController="Account" showHeader="True" sidebar="false" tabStyle="Account" >
<style>
.activeTab
{
background-color: #236FBD;
color:white;
background-image:none;
}
.inactiveTab
{
background-color: lightgrey; color:black;
background-image:none;
}
.rich-tabpanel-content {
font-size: 14px;
}
.rich-tab-active {
font-size: 15px;
}
.rich-tab-inactive {
font-size: 15px;
}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Account" name="Account" id="tabaccount">
<apex:detail id="account"/>
</apex:tab>
<apex:tab label="Reservation" name="Reservation" id="tabOpp">
<apex:relatedList subject="{!account}" list="opportunities" />
</apex:tab>
<apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct">
<apex:relatedList subject="{!account}" list="OpenActivities" />
</apex:tab>
<apex:tab Label="Contract" name="Contract" id="tabContractAct">
<apex:relatedList subject="{!account}" list="Contracts"/>
</apex:tab>
</apex:tabPanel>
</apex:page>
Solved ?....