Jump to content

HansR

Members
  • Posts

    2
  • Joined

  • Last visited

HansR's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. The code works, but I'm having trouble triggering it. I sent a PM with the details, thanks! Hans
  2. Thank you for reading my question.Can a single .HTML file have the ability to call any one of several .CSS style sheets?I am attempting to create a calendar which will allow users to select the groups of content they wish to view using the .CSS visibility tag.I am able to create various styles which effectively controls which elements display. [b]all.css[/b]p.a {visibility: visible}p.b {visibility: visible}[b]groupa.css[/b]p.a {visibility: visible}p.b {visibility: hidden}[b]groupb.css[/b]p.a {visibility: hidden}p.b {visibility: visible} By calling a new style sheet, I can toggle the visibility of elements targeted to groups a or b from a single .HTML file. <p class="a">a info</p><p class="b">b info</p> This works adequately; depending on which style sheet is called, elements appear correctly. However, the only way I know to switch style sheets is by linking to a new .HTML page set to call a different style sheet. (Is there another way?) The problem is, by requiring a separate .HTML page for every group, this prevents updating the calendar from a single data source. (Using different .HTML files to call a single iframe will keep the data in a single file, but won't inherit the styles, loosing the visibility toggle.)How can I a: include an external data file which inherits styles or b: choose from multiple .CSS styles from within a single .HTML?Is there a better way to accomplish this? Is there a simple .ASP solution a "front-end only" person like me can implement?Thanks!
×
×
  • Create New...