Dec 7, 2001 #1 tvbruwae Programmer Joined Aug 9, 2001 Messages 224 Location EU Hi Is it possible to display headers in a specific color by using a "color" parameter in the <h2> tags? Thanks
Hi Is it possible to display headers in a specific color by using a "color" parameter in the <h2> tags? Thanks
Dec 7, 2001 1 #2 Jonax Programmer Joined Aug 22, 2001 Messages 210 Try inserting this in your HTML-file Code: <style> h2 { color:#123456 } </style> ... or you could do this, I guess: Code: <h2><font color=#123456>some text</font></h2> Upvote 0 Downvote
Try inserting this in your HTML-file Code: <style> h2 { color:#123456 } </style> ... or you could do this, I guess: Code: <h2><font color=#123456>some text</font></h2>
Dec 7, 2001 1 #3 Boomerang Programmer Joined Mar 30, 2001 Messages 766 Location NL If you put it in your style-sheet like Jonax said , all your <h2> headers will be with that color. If you want only some specific red h2-headers: <style> h2.redh2 { color:red } </style> <h2 class="redh2">my header text</h2> (of course you can specify a colornumber '#123456' instead of a colorname 'red') Now you can make also other colored h2-headers with h2.greenh2 etc. etc. Look for more CSS-properties by IE4 at thread215-113187 Erik Upvote 0 Downvote
If you put it in your style-sheet like Jonax said , all your <h2> headers will be with that color. If you want only some specific red h2-headers: <style> h2.redh2 { color:red } </style> <h2 class="redh2">my header text</h2> (of course you can specify a colornumber '#123456' instead of a colorname 'red') Now you can make also other colored h2-headers with h2.greenh2 etc. etc. Look for more CSS-properties by IE4 at thread215-113187 Erik
Dec 7, 2001 Thread starter #4 tvbruwae Programmer Joined Aug 9, 2001 Messages 224 Location EU This is probably the best introduction to styles I've found so far... ;-) Thanks a lot. Upvote 0 Downvote
Dec 7, 2001 #5 Jonax Programmer Joined Aug 22, 2001 Messages 210 Oh yeah, by the way... We both (Boomerang and I) forgot the trailing semicolon ( after the color tag as in: Code: <style> h2 { color:#123456; } </style> This isn't so bad when you only set one parameter, but if you set more than one as in: Code: <style> a { color:#123456; text-decoration: none; } </style> it won't acknowledge the second if the semicolon is missing... This is not a bug - it's an undocumented feature... ;-) Upvote 0 Downvote
Oh yeah, by the way... We both (Boomerang and I) forgot the trailing semicolon ( after the color tag as in: Code: <style> h2 { color:#123456; } </style> This isn't so bad when you only set one parameter, but if you set more than one as in: Code: <style> a { color:#123456; text-decoration: none; } </style> it won't acknowledge the second if the semicolon is missing... This is not a bug - it's an undocumented feature... ;-)
Dec 7, 2001 Thread starter #6 tvbruwae Programmer Joined Aug 9, 2001 Messages 224 Location EU I'd only been testing with a single feature so far, but I'll need the ";" soon. Thanks for the update. Upvote 0 Downvote
I'd only been testing with a single feature so far, but I'll need the ";" soon. Thanks for the update.