@adriankawaauthorJun 02.2011 — #Not really sure what you're asking. You change the style of elements using CSS.[/QUOTE]
i need to write some text in my page with red color for that text and i don't want to use any html control for writing this text is it possible to set color to this text without using any html control.
here you go, red text... [color=navy] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head>
<style type="text/css"> body { font-family:arial,sans-serif; font-size:1em; font-weight:bold; color:#f00; } </style>
</head> <body>
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras volutpat, purus ac pellentesque adipiscing, mauris ligula convallis metus, vitae scelerisque nibh orci quis mi. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur porttitor aliquam libero. Quisque molestie ornare sem. Nam euismod sem lacinia ipsum. In pharetra metus ut dolor cursus aliquam. Maecenas eu ante quis enim tincidunt laoreet. Pellentesque varius nunc in ipsum pulvinar sollicitudin. Nunc et mi. Donec auctor dignissim orci. Aliquam sed magna. Pellentesque in dui. In eget elit. Praesent eu lorem. </p>
@ralphchadkirkJun 02.2011 — #i need to write some text in my page with red color for that text and i don't want to use any html control for writing this text is it possible to set color to this text without using any html control.[/QUOTE]
Do you want all the text on the page to be red, or just some of it?
To make it all red, use the code in the post above. To make some of it red, you'll need to replace the body {} in the example above with: [CODE] .red { color: #FF0000; } [/CODE] And use it with your paragraph tags as follows: [code=html] <p class="red> ... </p> [/code]
@adriankawaauthorJun 02.2011 — #Thanks for providing this solution it will great to see this it will now very help full to me for my website design and development.