Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > changing the style of <a> in text

Reply
Thread Tools

changing the style of <a> in text

 
 
brucie
Guest
Posts: n/a
 
      01-03-2004
in post <news:(E-Mail Removed)>
Sharon Lee said:

>>> style =\"color: black\"


>>What's with the slashes?


> slashes are to escape the quote marks in php, sorry about that.


use single quotes so you don't have to escape your double quotes.

e.g. echo'style="color:black"';

or double quotes so you don't have to escape your single quotes

e.g. echo"style='color:black'";

--
brucie
03/January/2004 10:38:22 am kilo
 
Reply With Quote
 
 
 
 
vickie_raven
Guest
Posts: n/a
 
      02-04-2004
On Sun, 28 Dec 2003 08:20:51 GMT, http://www.velocityreviews.com/forums/(E-Mail Removed) (Sharon Lee)
wrote:

>I know how to change styles for most attributes such as:
>
>style =\"color: black\"
>
>but how do you change the style for <a> such as the 'link' 'active'
>and 'visited'?
>
>I can't find a solution anywhere.
>
>Thanks


Sharon

Try placing this code in the head section and see if it works for you
it will change the style of the link visited and link active

<style type="text/css">
<!--

a:link {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 24px;
color: #FF3333;
text-decoration: underline;
background-color: #00FF33;
display: inline;
}
a:visited {
font-family: "Times New Roman", Times, serif;
font-size: 9px;
color: #FFFF33;
text-decoration: line-through;
}
-->
</style>
 
Reply With Quote
 
 
 
 
Mark Parnell
Guest
Posts: n/a
 
      02-04-2004
On Wed, 04 Feb 2004 08:28:54 -0500, vickie_raven
<(E-Mail Removed)> declared in alt.html:
>
> Try placing this code in the head section and see if it works for you
> it will change the style of the link visited and link active
>
> <style type="text/css">
> <!--


You don't need an HTML comment here.

And of course, you could always put the style rules in an external
stylesheet, rather than in the head of every page.

>
> a:link {
> font-family: Geneva, Arial, Helvetica, sans-serif;
> font-size: 24px;


Don't use px - IE users can't resize them. Use %.

> color: #FF3333;
> text-decoration: underline;
> background-color: #00FF33;
> display: inline;


display: inline; is unnecessary - text is inline by default.

> }
> a:visited {
> font-family: "Times New Roman", Times, serif;
> font-size: 9px;


Ditto on above.

> color: #FFFF33;
> text-decoration: line-through;


Hmmm. Interesting idea.

> }
> -->


Ditto on above.

> </style>


--
Mark Parnell
http://www.clarkecomputers.com.au
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing style of the numbers in a CSS <ol> without changing the style of the <li> Aaron Beall HTML 2 09-14-2007 08:07 PM
photoimpact-how to apply text style in text Library? ABC Digital Photography 0 01-13-2005 01:07 AM
To style or not to style ? (was erroneously reported to comp.text before, no answer yet) Rolf Kemper XML 0 10-15-2004 04:53 AM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM
Changing HTML input text style color from javascript Perdit Javascript 3 09-22-2003 12:00 AM



Advertisments