[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

=?Utf-8?B?cm9kY2hhcg==?=

4/20/2004 9:03:00 PM

If I want to remove the underline on some links on a page
and not all, what is the best way to go about this?

Also what is the diff between adding a 'style' or
a 'style sheet'? Thanks

(I have a script for no underline but this applies to the
entire page)
7 Answers

Rhonda

4/20/2004 10:26:00 PM

0

<a style="text-decoration: none" href="test.htm">Test</a

To answer your questions about styles and style sheets

There are 3 ways to use styles on a web site

1) Inline styles. Like the one above. This can only be used by the individual tags it appears in

2) <style></style> tags on an individual web page will allow you to apply the same style to multiple items in the page that the style tags appear in

<style
..linktextUnderline {text-decoration: none;

</style><a class=".linktextUnderline " href="test.htm">Test</a

3) Create a .css file that contains styles that can applied to mulitple pages in a site. You can add as many styles as you like to the css file. (be sure not to include <style> tags in the .css file

BOD

background-color: #EAE4C6
FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet, Arial, Arial Narrow
FONT-SIZE: small
margin-top: 0
margin-left: 0

U

list-style-image:url(../images/BD14565_.GIF)
FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet, Arial, Arial Narrow
FONT-SIZE: small
color: black



FONT-WEIGHT: normal
FONT-SIZE: small
COLOR: #524D9E
FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet, Arial, Arial Narrow
TEXT-DECORATION: underline

A:visite

FONT-WEIGHT: normal
FONT-SIZE: small
COLOR: #FFFFFF
FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet, Arial, Arial Narrow
TEXT-DECORATION: underline


etc

To apply the style sheet to a page add the link tag inside the head tag of each page you wish to use the style sheet in

<link rel='stylesheet' href='mystyles.css' type='text/css'

Hope this helps

Rhonda

=?Utf-8?B?cm9kY2hhcg==?=

4/20/2004 10:37:00 PM

0

Thanks. Why can't I use <style> tags in .css file? ?

>-----Original Message-----
><a style="text-decoration: none" href="test.htm">Test</a>
>
>To answer your questions about styles and style sheets.
>
>There are 3 ways to use styles on a web site.
>
>1) Inline styles. Like the one above. This can only
be used by the individual tags it appears in.
>
>2) <style></style> tags on an individual web page will
allow you to apply the same style to multiple items in
the page that the style tags appear in.
>
><style>
>..linktextUnderline {text-decoration: none;}
>
></style><a class=".linktextUnderline "
href="test.htm">Test</a>
>
>3) Create a .css file that contains styles that can
applied to mulitple pages in a site. You can add as many
styles as you like to the css file. (be sure not to
include <style> tags in the .css file)
>
>BODY
>{
> background-color: #EAE4C6;
> FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
Arial, Arial Narrow;
> FONT-SIZE: small;
> margin-top: 0;
> margin-left: 0;
>}
>UL
>{
> list-style-image:url(../images/BD14565_.GIF);
> FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
Arial, Arial Narrow;
> FONT-SIZE: small;
> color: black;
>}
>A
>{
> FONT-WEIGHT: normal;
> FONT-SIZE: small;
> COLOR: #524D9E;
> FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
Arial, Arial Narrow;
> TEXT-DECORATION: underline;
>}
>A:visited
>{
> FONT-WEIGHT: normal;
> FONT-SIZE: small;
> COLOR: #FFFFFF;
> FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
Arial, Arial Narrow;
> TEXT-DECORATION: underline;
>}
>
>etc.
>
>To apply the style sheet to a page add the link tag
inside the head tag of each page you wish to use the
style sheet in.
>
><link rel='stylesheet' href='mystyles.css'
type='text/css'>
>
>Hope this helps.
>
>Rhonda
>.
>

=?Utf-8?B?cm9kY2hhcg==?=

4/20/2004 10:41:00 PM

0

If I want to remove the underline on some links on a page
and not all, what is the best way to go about this

Ernie
To do this, simply do onmouseover and onmouseout color scheme. That way on mouse over, or mouse out it will always stay the color you specify and never get underlined

Steve Easton

4/20/2004 10:45:00 PM

0

Because when you use a css file the style tags aren't needed because the browser knows
it's a style sheet because of this.
<link rel='stylesheet' href='mystyles.css'> in the head tags


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Ernie" <anonymous@discussions.microsoft.com> wrote in message
news:1cf401c42727$ed076870$a601280a@phx.gbl...
> Thanks. Why can't I use <style> tags in .css file? ?
>
> >-----Original Message-----
> ><a style="text-decoration: none" href="test.htm">Test</a>
> >
> >To answer your questions about styles and style sheets.
> >
> >There are 3 ways to use styles on a web site.
> >
> >1) Inline styles. Like the one above. This can only
> be used by the individual tags it appears in.
> >
> >2) <style></style> tags on an individual web page will
> allow you to apply the same style to multiple items in
> the page that the style tags appear in.
> >
> ><style>
> >..linktextUnderline {text-decoration: none;}
> >
> ></style><a class=".linktextUnderline "
> href="test.htm">Test</a>
> >
> >3) Create a .css file that contains styles that can
> applied to mulitple pages in a site. You can add as many
> styles as you like to the css file. (be sure not to
> include <style> tags in the .css file)
> >
> >BODY
> >{
> > background-color: #EAE4C6;
> > FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
> Arial, Arial Narrow;
> > FONT-SIZE: small;
> > margin-top: 0;
> > margin-left: 0;
> >}
> >UL
> >{
> > list-style-image:url(../images/BD14565_.GIF);
> > FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
> Arial, Arial Narrow;
> > FONT-SIZE: small;
> > color: black;
> >}
> >A
> >{
> > FONT-WEIGHT: normal;
> > FONT-SIZE: small;
> > COLOR: #524D9E;
> > FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
> Arial, Arial Narrow;
> > TEXT-DECORATION: underline;
> >}
> >A:visited
> >{
> > FONT-WEIGHT: normal;
> > FONT-SIZE: small;
> > COLOR: #FFFFFF;
> > FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
> Arial, Arial Narrow;
> > TEXT-DECORATION: underline;
> >}
> >
> >etc.
> >
> >To apply the style sheet to a page add the link tag
> inside the head tag of each page you wish to use the
> style sheet in.
> >
> ><link rel='stylesheet' href='mystyles.css'
> type='text/css'>
> >
> >Hope this helps.
> >
> >Rhonda
> >.
> >


=?Utf-8?B?cm9kY2hhcg==?=

4/20/2004 11:01:00 PM

0

either use the inline style or only add that class to the items you want to remove the underline on

Rhonda

=?Utf-8?B?cm9kY2hhcg==?=

4/21/2004 1:54:00 AM

0

Ok so how do I go about creating a style?
What is the step. I'm reading the help menu and can't
figure it out.

I seem to have a style called a: and it has the script
for removing underlines; but I can't remember how I did
it.

Thanks again,
Ernie

>-----Original Message-----
>either use the inline style or only add that class to
the items you want to remove the underline on.
>
>Rhonda
>.
>

=?Utf-8?B?cm9kY2hhcg==?=

4/21/2004 1:56:00 AM

0

Thanks I read this info you posted for me earlier and it
is very useful; however I'm not sure how I go about the
first step. How do I create the style ? where?
do I create a style sheet first? or what? confused.

>-----Original Message-----
><a style="text-decoration: none" href="test.htm">Test</a>
>
>To answer your questions about styles and style sheets.
>
>There are 3 ways to use styles on a web site.
>
>1) Inline styles. Like the one above. This can only
be used by the individual tags it appears in.
>
>2) <style></style> tags on an individual web page will
allow you to apply the same style to multiple items in
the page that the style tags appear in.
>
><style>
>..linktextUnderline {text-decoration: none;}
>
></style><a class=".linktextUnderline "
href="test.htm">Test</a>
>
>3) Create a .css file that contains styles that can
applied to mulitple pages in a site. You can add as many
styles as you like to the css file. (be sure not to
include <style> tags in the .css file)
>
>BODY
>{
> background-color: #EAE4C6;
> FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
Arial, Arial Narrow;
> FONT-SIZE: small;
> margin-top: 0;
> margin-left: 0;
>}
>UL
>{
> list-style-image:url(../images/BD14565_.GIF);
> FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
Arial, Arial Narrow;
> FONT-SIZE: small;
> color: black;
>}
>A
>{
> FONT-WEIGHT: normal;
> FONT-SIZE: small;
> COLOR: #524D9E;
> FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
Arial, Arial Narrow;
> TEXT-DECORATION: underline;
>}
>A:visited
>{
> FONT-WEIGHT: normal;
> FONT-SIZE: small;
> COLOR: #FFFFFF;
> FONT-FAMILY: Gill Sans MT, Verdana, Trebuchet,
Arial, Arial Narrow;
> TEXT-DECORATION: underline;
>}
>
>etc.
>
>To apply the style sheet to a page add the link tag
inside the head tag of each page you wish to use the
style sheet in.
>
><link rel='stylesheet' href='mystyles.css'
type='text/css'>
>
>Hope this helps.
>
>Rhonda
>.
>