Philippe Coq wrote:
> Hi,
> I have a problem with this sample test.
> I have the following html :
> <h2>
> <a name="id2"></a>ABCDE <span><a  name="appserver"></a>FGHIJK</span></h2>
> <a href="#id2">abcde <span><a name="appserver"></a>fghijk</span></a>
>
> With the following .css file:
> a:link { color: blue;text-decoration: none;}
> a:visited {color: green;text-decoration: none;}
> a:hover {
>     color: red;
>     text-decoration: none;
>     background-color: #ecf5ff;
> }
> a:active {color: black;text-decoration: none;}
> h2 {color: red;}
>
> I wonder why I lost color attribute in the string fghijk in the case 
> <a href="#id2">...
> while in the case <a name="id2"> there is no problem.
> How must I code the .css file?
> Thanks in advance,
> regards,
Hi Philippe,
I guess the css can be the same, but the html in the 2nd line has to be 
changed. Now the <a name="appserver"></a> is nested in the <a 
href="#id2">...</a>, which is forbidden.

    * See testpage
      <http://home.tiscali.nl/developerscorner/css-discuss/test-span-code.htm>

You can do:
<a href="#id2">abcde <span>fghijk</span></a><a name="appserver"></a>
or maybe:
<a name="appserver" href="#id2">abcde <span>fghijk</span></a>

We don't know what your intention is with the code and the (styling of 
the) <span>.
So if this is not what you want, do you have a link to a testpage to 
illustrate your question?

Greetings,
francky


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to