<a href="email@example.com"><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
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.
Thinking Web: Voices of the Community
> March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?
Robert - yes that worked.
I saved that so now I can past it in whenever I need it.