+ Start a Discussion
Deepakn12Deepakn12 

Applying styles

I am trying to apply style to field label and field data in a s-control. Its getting applied but i am not getting exactly same look and feel as salesforce. I have included sfdc style sheets and i have applied the right class also but it looks like i am missing some thing. here is the small snippet.

It would be grt if someone can guide me if i am missing anything else. Thx. Deepak.
MattLMattL
Honestly, when I need to get an S-control to style the same as Salesforce, I end up using Firebug. You can click on a piece of the HTML and it will tell you the styles applied on that element (and the ones that were overridden).
http://www.getfirebug.com/
Deepakn12Deepakn12
I did find out styles using fire bug only but the impact is not that effective how it should have been. this is how i am doing "
Overnight
"
Greg HGreg H

I did not see your code (I think you forgot to include it in your original post).  If you understand the classes and are including the correct CSS links then it is likely you overlooked the doctype declaration at the top of your sControl.  Make sure you include:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
If that doesn't help let me know and possibly post your code so we can dig deeper,
-greg