SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict JerXs's Avatar
    Join Date
    Nov 2005
    Location
    Wilkes-Barre, PA
    Posts
    347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS for target="_blank"

    Can I use CSS to replace <a href="#" target="_blank"> ?

  2. #2
    SitePoint Wizard rbutler's Avatar
    Join Date
    Jul 2003
    Location
    Springfield, MO
    Posts
    1,867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As far as I know, no. Plus, why would you want to? That's a behavior such as an onclick event that belongs to the anchor tag. Reserve those behaviors for JavaScript. If you have Dreamweaver, David Powers has an awesome extension that automates this process:

    http://japan-interface.co.uk/webdesign/tools/index.html

    Look for "Smart Link"
    Ryan Butler

    Midwest Web Design

  3. #3
    SitePoint Addict JerXs's Avatar
    Join Date
    Nov 2005
    Location
    Wilkes-Barre, PA
    Posts
    347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you, that works.


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
  •