SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict swaraj_here's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Insline CSS for html page

    Dear Friends..

    I am trying to implement an inline style inside the html tag <a href="#"></a>.

    But am not able to find out the way..how to do that. Please help me.

  2. #2
    SitePoint Wizard jimbo_dk's Avatar
    Join Date
    May 2005
    Location
    Singapore
    Posts
    1,261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you mean something like <a href="#" style="css here"></a> ?
    Winners Respond. Losers React.
    Singapore Web Designer

  3. #3
    SitePoint Addict swaraj_here's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jimbo_dk View Post
    Do you mean something like <a href="#" style="css here"></a> ?
    yes, you got my point!!

  4. #4
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,095
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Familiarise yourself with The CSS FAQ Swaraj, there's lots of gold in there

  5. #5
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,775
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    Not sure if this is what you are after but you can't style pseudo classes with inline styling because they don't exist in the html.


    You can style the anchor only (a).

    e.g.

    <a href="#" style="color:red" >red</a>

    (of course you shouldn't use inline styling anyway)


    But you can't style any states such as :link, :visited, :hover or :active. They can only be done from the stylesheet.


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
  •