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

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.
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).
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 "
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:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
If that doesn't help let me know and possibly post your code so we can dig deeper,