How To Use External CSS To Style An Adaptive Form

How To Use External CSS To Style An Adaptive Form

The last option in styling and adaptive form is using and external CSS (Cascading Style Sheet) file. Out of the three styling options this one requires the most technical skill to be able to use. This process first requires the style definition be created and added to CRX (Content Repository Extreme Development Environment). Next the form needs to be associated with the single CSS file. Lastly each field element in the form needs to specify which class(es) should be associated with the form element. Although the last two steps can be done by content authors the first step does require permissions to the development environment along with technical skill in writing CSS coding and should be done by a developer.

Just as with most of the interactions in the CRX repository adding the CSS must be done in the correct hierarchical position. You want to navigate to etc/designs where it is recommended to create a custom folder to hold your custom CSS files. Under this folder is where you will house your file filename.css. As for the file itself it is just straight CSS so write your code as you normally would. Remember to save as the CRX repository does not automatically save for you.

Now that you have the CSS file created you can now link the defined styles with your form. In the Form Container properties select the checkbox button next to the element for CSS File. This will open a browser window where you can navigate to the CSS file you want to associate with this form.

Lastly you need to associate the specifically defined styles with the element on the form. From the editing interface select the properties for the element you want to style and in the Basic options locate the CSS Class property. Here you can list all the different styles that you want to be enforced on the field here. Separate this list with a space.

Although this methodology does have more reuse than the inline styling option it is still a manual process to associate the required styling classes to each element. This process also is lower in maintenance cost then inline styling as a change made to the base CSS file would cascade to all of the different forms that are referencing in the same fashion as styling with a theme.

要查看或添加评论,请登录

Angèle Taylor的更多文章

  • The Evolution Of Forms: Conclusion

    The Evolution Of Forms: Conclusion

    It has been a very interesting experience to be able to reflect on where forms started, how they evolved and where they…

  • The Evolution Of Forms: The Experience Era

    The Evolution Of Forms: The Experience Era

    Although technology and forms have been tightly coupled since their inception, forms have also had a tight bond with…

  • The Evolution Of Forms: Revitalized Era

    The Evolution Of Forms: Revitalized Era

    Once we can get past the Revival era and have now setup or forms in modular framework, we will know be able to tack…

  • The Evolution Of Forms: The Future Of Forms

    The Evolution Of Forms: The Future Of Forms

    Forms have come along way since their birth in the Inception Era in 2100BC but there is still a long road ahead for…

  • The Evolution Of Forms: The Revival Era

    The Evolution Of Forms: The Revival Era

    This era in forms will be a tough one. We are looking at big change and society has always been opposed to change, but…

  • The Evolution Of Forms: The Bound Era

    The Evolution Of Forms: The Bound Era

    The Bound Era is where advancement in forms lost pace with emerging technologies. Technology was moving so fast and…

  • The Evolution of Forms: Modern Forms

    The Evolution of Forms: Modern Forms

    We are in a very interesting place historically in relation to forms. It is hard to see it when we are living in it but…

  • The Evolution of Forms: The Standardized Era

    The Evolution of Forms: The Standardized Era

    The next distinct era of forms, the Standardized Era is tightly coupled with the industrial boom. Forms had already…

  • The Evolution of Forms: The Privileged Era

    The Evolution of Forms: The Privileged Era

    Just as with the Inception Era, the Privileged Era came about due to another advancement in technology. This piece of…

  • The Evolution of Forms: The Inception Era

    The Evolution of Forms: The Inception Era

    The birth of forms, what a good place to start when exploring the different eras of forms! The birth of forms happened…

社区洞察

其他会员也浏览了