Can I combine <span> tags at runtime?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?=

    Can I combine <span> tags at runtime?

    Hi,
    I have some methods which generate html formatting for text on the fly. I
    generally use <spantags and that works fine. But, I would like to be able
    to combine different formatting elements on the fly. For example if I have
    <span text-decoration: "underline" >
    and want to add to that
    <span BACKGROUND-COLOR:"red">,
    I would get
    <span text-decoration:"und erline"; Background-Color:"red"(or whatever the
    correct syntax is).

    Before I embark on writing my own struct to do this, does anyone know if
    something like this exists already or if there is a better way?
    Thanks!
    Ethan

    Ethan Strauss Ph.D.
    Bioinformatics Scientist
    Promega Corporation
    2800 Woods Hollow Rd.
    Madison, WI 53711
    608-274-4330
    800-356-9526
    ethan.strauss@p romega.com
Working...