Jump to content
bwheatley

How to add a CSS file to a project?

Recommended Posts

@bwheatley

Just a reminder, you can also edit the current "Custom CSS" file.

i.e.

From menu, Select Project / Project Options / Linker

Check "use Custom Theme"

Click Ok and Compile Project and you should now see "Custom CSS" in your project.

You can then edit OR add your own

 

 

Share this post


Link to post
Share on other sites

A third option is to add a stylesheet in code:

Add SmartCL.Css.Stylesheet to uses clauses and do:

  var MyStylesheet := TW3StyleSheet.Create;
  MyStylesheet.InnerHtml :=
      #".TMyControlStyle {
        font-size: small;
        text-align: center;
        text-decoration: none;
        padding: 0;
        border: 1px solid #bbb;
        background-color: #C3D9FF;
      }

      .TMyOtherStyle { .....      
      }";

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×