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

styles question for VF
Code:
<apex:page controller="cMainMenu" sidebar="false" showheader="false" standardstylesheets="false"> <style> body .h1 { font-size:14; font-weight: bold; font-family:Arial; } </style> <h1>Visualforce Test</h1><br/><hr/> </apex:page>
what is wrong with this picture? I do not get an error but the text "Visualforce Test" does not come up in Arial font at the size I specified so how can I control the style of the text contained in the <h1> tag?"
try this, i removed the . in .h1 and it worked
<style >
body h1 {
font-size:14;
font-weight: bold;
font-family:Arial;
}
</style>
Now I will have to sharpen my CSS skills and get to work...
How do I handle the commandbutton component in VF?
<apex:commandButton title="Back" action="{!stepMainMenu}" value="Back: Main Menu" style="combtn" />
<apex:commandButton title="Back" action="{!stepMainMenu}" value="Back: Main Menu" styleclass="combtn" />
Let me mention a caveat however:
commandButton is special in that it gets salesforce styling by default if you have your header turned on (and in the upcoming release it will also check for standardStylesheets="false" on your page component). If you have standardStylesheets="false" and showHeader="false" then you don't need to worry about this. But otherwise, even if you are correctly referring to your stylesheet, you might not see some of your styling being applied. Whatever styles you're referencing in your class should override that same value in our button class, but for example, our buttons use a background-image attribute. So you will probably want to include background-image: none; in your combtn class as well.
I've mentioned it several times on the forums but it bears mentioning again: the firebug extension for Firefox has been such a staple in my development when it comes to debugging style issues (and javascript!), so I would definitely recommend it once you get more comfortable with CSS. I think that will help you if you run into an issue with style overrides.
Apologies if that seems daunting. If you're using our header, I would get your page working and looking right without first, and then add the header back in later.
Jill
Thank you very much for the detailed explanation. I really appreciate your help. I am getting a better understanding of how this all works now...
Also, I definitey agree that firebug is an amazing tool.