Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Dynamic CSS

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm making my first web site (usually, Im on the backend), and I was wondering if any of you ever use dynamic CSS. Do you dynamically change the values in the html (inline css) or in the css stylesheet?

reason i ask is, im making a component where i want the css, html and associated java code in a single entity so it can be popped in as a jsp tag .. i wanted the designer using the tag to have control over the styling.. any best ways?

thanks
 
Sheriff
Posts: 67399
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to explain what you are trying to accomplish better.

But usually changing class names is the means to effect dynamic style changes.
 
Billy Vandory
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:You'll need to explain what you are trying to accomplish better.

But usually changing class names is the means to effect dynamic style changes.



I guess the problem is, I'm not sure what I am trying to do. A thought just entered my head where I thought, does anyone generate dynamic CSS? For example different CSS generated on the fly. For example, If I had a color palette on the screen where the user could change the background color, would it be feasible to set the css background color for that user through css (just an example)



 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic