r_schreiber — 2012-01-07T16:03:09-05:00 — #1
<a href="mailto:firstname.lastname@example.org"><div class="email">Properties With Style.</div></a>
Is there any way to COMPLETELY code this in css and then place it any where within a paragraph of text?
I wish to apply style elements . . . color, italize, font-family etc.
Although it works, upon validation it says that divs are not allowed in "a"
Thanks . . . Rick
xhtmlcoder — 2012-01-07T16:46:21-05:00 — #2
I assume what you meant; is that you want to style the e-mail address text using a class with SPAN since the DIV is block. Thus DIV (block) cannot be contained within the A anchor (inline) element - so just swap the DIV for SPAN basically.
r_schreiber — 2012-01-07T19:13:42-05:00 — #3
Robert - yes that worked.
I saved that so now I can past it in whenever I need it.