HTML & CSS
<a href="mailto: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.
Robert - yes that worked.
I saved that so now I can past it in whenever I need it.
This topic is now closed. New replies are no longer allowed.