What I want to accomplish is to have one division with the first part of the text red and the second part green. How would I do that?
efth 0 Newbie Poster
Recommended Answers
Jump to PostYou mean that you wnt to have the first part of a text green and the second red
//add your css <style> #green p{color:green;} #red p{color :red;} </style> <div id="main"> <div id="green"> <p>Hello</p> </div> <div id="red"> <p>World</p> </div> </div>
All 2 Replies
dany12 13 Light Poster
efth commented: I imagined something very complicated. Thank you! +0
JorgeM 958 Problem Solver Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.