Applying Different Styles To Alternate Text ?

V

viveklinux

Hi,

Have a FAQ page , where have many sets of questions and answers. The
questions need to be a different colour / style and the answers
different. Was wondering is there a easy way to do this as compared to
enclosing each question and answer within divs ? Perhaps , through
JavaScript.

Thanks in advance ..


P.S. this might be a multipost.. :(
 
R

Randy Webb

(e-mail address removed) said the following on 7/15/2006 10:15 AM:
Hi,

Have a FAQ page , where have many sets of questions and answers. The
questions need to be a different colour / style and the answers
different. Was wondering is there a easy way to do this as compared to
enclosing each question and answer within divs ? Perhaps , through
JavaScript.

You could do it with Javascript, but it could get messy, depending on
how your page is laid out. If you are going to try to create some script
to do it, it is simpler to do it manually, wrap each question/answer in
a container and use CSS to change the color.

It would be a simple matter of copy/paste two sets of tags through the
page and you would be finished.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top