+davemcwish Posted July 3, 2012 Share Posted July 3, 2012 (edited) I'm trying to create my first cache page, mainly from cribbing others and from the useful info here. Other than asking if there are any other useful resources the other quick question I have is how to create a horizontal line. I've found the syntax:- Text above line <hr color="green"> Text Below Line</hr> However I don't seem to be able to change the colo(u)r e.g. by doing:- <HR COLOR="purple"> Text </hr> All I seem to get is that thin pale grey colo(u)r. I'm sure it's something really obvious to you HTML coders but I'm stuck. Thoughts ? Edited July 3, 2012 by davemcwish Quote Link to comment
+eusty Posted July 3, 2012 Share Posted July 3, 2012 That's because the HR tag has no COLOR attribute, see here. A way to colour it is with CSS, not sure (not that I've looked!) if you can do it on a cache page though. Quote Link to comment
+terratin Posted July 4, 2012 Share Posted July 4, 2012 To color the line you need to add an inline style: <hr style="color:green" /> BTW: There's no end-tag for <hr> so you just use it as is: <hr> or <hr /> in XHTML. (Thus text between <hr>some text</hr> is incorrect.) Cheers, Mr. Terratin Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.