HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
CSS Hyperlink Help
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
auggy13



Joined: 12 Jul 2005
Posts: 3

PostPosted: Tue Jul 12, 2005 10:45 pm     CSS Hyperlink Help Reply with quote

Yes, I am somewhat new to HTML and I'm having trouble with hyperlinks. I am currently using this code:

<style type="text/css">
<!--
A:link { text-decoration: none; color:#ffffff }
A:visited { text-decoration: none; color:#ffffff }
A:hover { text-decoration: underline; color:#ff0000 }
-->
</style>

And I was wondering if I could possibly add another line of code in there so that when each link is clicked a new window is opened instead of opening in the current window; or if I can only achieve this by assigning a "_blank" target for each individual link.

Thanks in advance.
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Wed Jul 13, 2005 7:59 am     Reply with quote

You can't do that in CSS. CSS is just for style/formatting.

You can use javascript window.open
http://www.htmlcodetutorial.com/linking/linking_famsupp_70.html
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial