You are here: Re: How restricting CSS-style? « HTML « IT news, forums, messages
Re: How restricting CSS-style?

Posted by Martin Mφller on 09/15/05 14:51

Hello Els,

thank you very much for the quick answer!!

The p.navigation did the job :-)

Thus I had to keep the <p>-tag to work with p.navigation instead
of changing it to the (maybe more logical) <ul>

Martin

Els wrote:

>
> p.navigation a {
> display:block;
> height:1em;
> width:180px;
> padding:4px;
> color:#000000;
> font-size:100%;
> font-family:Verdana, Arial, sans-serif;
> font-weight:bold;
> text-decoration:none;
> text-align:center;
> margin:20px;
> background-image:url(Balken.gif);
> }
> p.navigation a:hover{
> background-image:url(Balken_over.gif);
> }
>
> That way only the links in that particular <p> element will take on
> that styling. Any other links will just act like they normally would.
>
> Btw - looks like you'd better use:
> <ul id="navigation">
> <ul>
> <li><a href="file1.html">menu this</a></li>
> <li><a href="file2.html">menu that</a></li>
> <ul>
>
> It is after all a list of links, not a paragraph :-)

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация