SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: a href="mailto:

  1. #1
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a href="mailto:

    <a href="mailtoropertieswithstyle@gmail.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

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Robert - yes that worked.

    I saved that so now I can past it in whenever I need it.

    Kewl!

    Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •