Hi,
thank you very much for your response.
You are right the html is not correct nested <a> seems to be forbidden.
Unfortunately for me this html is generated via tools. In fact I have
written a DocBook document
and the html is generated via DocBook XSL style sheets and in certain
circumstances they generate
this type of html.
I can be more precise and explain when this sort of thing occurs but as
I am new in this mailing list
I am afraid that this is not in the scope of this mailing list and I
don't want to bore everybody with
a problem that is not strictly speaking a css problem.
So if you are interested in with this I can be more explicit.
I think I will be obliged to customize the DocBook XSL style sheet in
order to avoid
such incorrect html generation (I presume this is not an obvious task....)
Thanks again
Best regards
Philippe
francky wrote:
> 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/
>
>
______________________________________________________________________
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/