SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    Location
    Bromley
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Inline style for a:hover

    Hi everyone,

    I am in the process of making 404 error pages. Is there a way to create inline styles for link, hover? as <a href="" style="a:hover or :hover "> don't work
    i can only use inline style any ideas?

    Thanks.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,168
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Hi pchospital. Welcome to the forums.

    No, you can't target pseudo style inline like that. Why can't you use a style sheet, or at least styles in the head?

  3. #3
    SitePoint Member
    Join Date
    Nov 2012
    Location
    Bromley
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    O ye don't why i thought this technique simply wont work lol, guess i learned that inline hover do not work and try before looking answers elsewhere lol.

    Thanks

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,168
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    No probs. In HTML emails, for example, where you really need to have styles inline, you have to do away with hover and just set a color for links. So make it obvious they are link.

    But again, why can't you use a style sheet?

  5. #5
    SitePoint Member
    Join Date
    Nov 2012
    Location
    Bromley
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ye your absolutely right for the 404 pages I'm working on at the moment, style in head works fine. But as much as i have worked on e-mail marketing templates the style in head do not work and you have to use tables as far as i know, which i hate... ;D


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
  •