The last months I was learning some web frameworks including the super great bootstrap.

I develop a small app that will run on iPads and I thought is a good idea to use some bootstrap goodies, starting from nice looking buttons.

Started by including bootstrap css and js files in <tomcat>/formspider/main.jsp. No problem there (except some warnings caused by the old jquery version). Second step is to add the correct classes (btn btn-primary btn-lg) to the button. Styles are transferred to the DOM element, but Formspider engine uses inline style almost everywhere making it impossible to use the nice formating features of bootstrap. It also seems that even the very usefull vAlign/hAlign="full" also follows the same practice. The problem is easily solved by a quick hack, using an external method and a jquery one-liner to remove the inline styles from all items having btn class. It works but is far from the correct way of doing things.

Is there any other way of controlling what goes to the inline styles? It would be great if there is a special flag that adds only overrided properties and not everything to the styles.

Akis

asked 01 Feb '16, 05:29

Vlisidis%20Akis's gravatar image

Vlisidis Akis
163119
accept rate: 5%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×22
×1

Asked: 01 Feb '16, 05:29

Seen: 581 times

Last updated: 01 Feb '16, 05:29


© Copyright Gerger 2017