This is a discussion on "Problem with link style" within the Web Page Design section. This forum, and the thread "Problem with link style are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Problem with link style
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Problem with link style
Hi, I have created a HTML with stylesheet
But My friend says to create same look & feel without style tags. So, i have removed CSS codings. and alternatively i have used:
But how can use the following CSS codings and where can i use it?
Last edited by karinne; Jul 11th, 2007 at 13:46. Reason: Please use [code]...[/code] tags when displaying code! |
|
|
|
|||
|
Re: Problem with link style
I just had a quick look.
Your link styles should be like this:
AND NOT
You put the CSS within the <head> tags, inside these tags... <style type="text/css"> </style> |
|
||||
|
Re: Problem with link style
That post is a bit confusing but the
Also ... like Padraig said, EVERYTHING SHOULD be in lowercase. You might want to have a look at some tutorials from HTMLDog. |
|
|||
|
Re: Problem with link style
Every line/command/whatever they're called in css must end with a semi-colon( ; ) too. If you miss them out it could mess everything up.
Pete. Last edited by karinne; Jul 11th, 2007 at 14:42. Reason: Fixed your semi-colon ;) |
|
|||
|
Re: Problem with link style
Thanks for your suggestion.
I need to use the following CSS codings inside the HTML tags a:link { COLOR: #006fa6;} a:visited{ COLOR: #006fa6;} a:active{ COLOR: #45adc6; } a:hover{ COLOR: #45adc6;} Methode one to use the styles <style> .BodyText { FONT-FAMILY: Arial; FONT-SIZE: 10pt FONT-COLOR: #3e63ef; } </style> then we can call this style <font class="BodyText">Hai</font> or Methode Two to use the styles We can directly give the styles to particular text area <font style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> Hai</font> I need to use a.link styles in the Method two way. |
|
|||
|
Re: Problem with link style
AFAIK there is no way of doing that.
And why do you want to do it. The first section of the "CSS Techniques for Web Content Accessibility Guidelines" on the W3C website reads: Use a minimal number of style sheets for your site Use linked style sheets rather than embedded styles, and avoid inline style sheets. |
|
||||
|
Re: Problem with link style
First of all the font element is deprecated so ... forget about using that.
If you want to apply a different color to certain links, then look at the CSS Beginner FAQ that a sticky in this section. There's one question "How do I get some links to look different than other links" I think that's what you are looking for. |
![]() |
| Tags |
| css links problem |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding a style sheet to an RSS feed problem | Andrew1986 | Other Programming Languages | 5 | Feb 19th, 2008 10:31 |
| <li> problem :: How to make appear list-style-image while choosing display:inline | sayamish | Web Page Design | 2 | Oct 21st, 2007 05:19 |
| CSS Print Style Sheet Problem | bennyboy7 | Web Page Design | 1 | Aug 14th, 2007 08:58 |
| How to tell IE7 to use a pariticular style in a single style sheet | figo2476 | Web Page Design | 5 | May 25th, 2007 14:23 |
| Problem with IP link | kaz | Introduce Yourself | 2 | Feb 6th, 2006 22:37 |