Forum:Whats the diference on this tags

im working on a skin and want to know the diference between this /* 1 - Navigation bar - left side column */ /* 1.1 - Format of the title */ background: #514A3C; padding: 4px 10px; width: 65%; display: block; font-weight: bold; font-family: Times, "Times New Roman", "Trebuchet MS", serif; letter-spacing: 0.4em; -moz-border-radius-topright: 1em; border-radius-topright: 1em; color: #fff; border:1px solid #514A3C; text-transform: capitalize; }
 * 1) p-nbx h5, #p-navigation h5, #p-lang h5, #p-tb h5, #p-tbx h5, #p-nav h5, #p-search h5, #p-wikicities-nav h5 {

and this: .portlet h5 { color: #fff; background-color: #514A3C; border: thin solid #A19D95; -moz-border-radius-topright: 0.5em; }

As far as i have seen both affect the tags where "navigation, community, help, etc" appears but i dont why the diferent namings of ".portlet h5" and and the individual "p-nav h5 etc". Ignore the settings as i have added quite a lot in the first one but as so far i see that then 2nd one has the same effects --Cizagna (Talk) 04:40, 25 February 2007 (UTC)


 * The difference is, all those portlets defined are on the left side, and the definition is only to the h5. It excludes other portlets such as the #p-personal, #p-cactions and #p-logo (all of which, it happens, do not display their &lt;h5&gt;, or even have one). It could be done in reverse, defining .portlet h5 and then undoing any such changes to #p-personal h5, #p-cactions h5, #p-logo h5 but that often is more work. --Splarka (talk) 06:10, 25 February 2007 (UTC)

Im a little slow, so what it means is that the first one only defines format to specific portelts of h5 while the 2nd one defines format for all (global) portlets of h5? so for example if i miss a specific portlet in the first the ".portlet h5" will cover it, right?--Cizagna (Talk) 14:11, 25 February 2007 (UTC)


 * Yes, but it's also possible for that second one to do the same thing to portlets which you don't want affected. That's why I always stick with defining the toolboxes I want to affect, because it is possible for future versions of the software to add or change areas. Though I use a linebreak after each, to keep it neater. Dantman (Talk) 17:44, 25 February 2007 (UTC)

Thank you both of you ^_^ --Cizagna (Talk) 20:40, 25 February 2007 (UTC)

Same question diferent tags
Now im trying to change the colors of the links

Now wikia user style says to use : /* standard link colors */
 * link { color: #0000FF; }
 * link:visited { color: #7F007F; }
 * link:active, :link.new { color: #FF0000; }
 * link.interwiki, :link.external { color: #3366BB; }
 * link.stub { color: #772233; }

Normal links change colors perfectly but the "visited" did not work and keep doing the purple default color, after trying to solve it and despair, i had to do research.

And found what wikimedia says : a vs :link - It's a common mistake to use " " instead of " " to style links. Whereas " " applies only to links, " " applies to both links and named anchors (e.g. ).

As i didn't get it i went to all wikia that had link changes on their styles and found nothing on the wikia example so after basing from wikimedia mistake note found this on the wikia:

a { color: #00AAEE; } a:visited { color: #0055DD; } a:hover { text-decoration: underline; } a.new { color: red; }
 * 1) bodyContent a.extiw, #bodyContent a.extiw:active { color: #00CCFF; }
 * 2) bodyContent a.extiw:visited { color: #0066FF; }
 * 3) bodyContent a.external { color: #00CCFF; }
 * 4) bodyContent a.external:visited { color: #0066FF; }
 * 5) bodyContent a.stub, #bodyContent a.stub:visited { color: #006699; }

So i guess its related to the last Dantman comment, and at the end do i have to use the a specifically so i get my links change and also in the bodycontent tags? and if yes then a overrides " " tag?

and does the   or a.stub works on all pages marked as category stub? --Cizagna (Talk) 20:40, 25 February 2007 (UTC)

Side question how many spaces i have to give between the  for each line? i remember reading that it require 8 spaces for compatibility with opera? --Cizagna (Talk) 21:11, 25 February 2007 (UTC)