• 0

How can you have 2 font styles with a css script?


Question

}

.option {

FONT-WEIGHT: bold; FONT-SIZE: 12px; BACKGROUND: none transparent scroll repeat 0% 0%; COLOR: #000000; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none

}

.tiny {

FONT-WEIGHT: normal; FONT-SIZE: 10px; BACKGROUND: none transparent scroll repeat 0% 0%; COLOR: #000000; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none

}

how can i switch between the 2 styles in a css script? what do i put in the html to make one appear as .option, and other as .tiny?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
<span class="option">This is in OPTION... you could also use div, p, or some other elements that encompass text.</span>
<span class="tiny">This is in TINY </span>

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.