5 replies [Last post]
nihilistar
Offline
newbie
Last seen: 3 years 27 weeks ago
Timezone: GMT+3
Joined: 2011-06-10
Posts: 3
Points: 4

Hi,

I have a problem with my navigation bar. I know exactly what to do to make it right and where to edit, but I don't know to to get there from css.

I have this piece of code:

<li class="page_item page-item-18"><a href="http://work/zakelijkverblijf/" title="Zakelijk">Zakelijk</a>
<ul class='children'>
	<li class="page_item page-item-212"><a href="http://work/zakelijkverblijf/activiteiten/" title="Activiteiten">Activiteiten</a></li>
	<li class="page_item page-item-207"><a href="http://work/zakelijkverblijf/dagvergaderarrangementen/" title="Dagvergaderarrangementen">Dagvergaderarrangementen</a></li>
	<li class="page_item page-item-210"><a href="http://work/zakelijkverblijf/meerdaagse-vergaderarrangementen/" title="Meerdaagse vergaderarrangementen">Meerdaagse vergaderarrangementen</a></li>
	<li class="page_item page-item-214"><a href="http://work/zakelijkverblijf/personeelsuitjes/" title="Personeelsuitjes">Personeelsuitjes</a></li>
 
</ul>
</li>

I would like to add an attribute for that

    . I can't add the attribute to .children because I want that option for that particular
  • .

So finally, this is the question: How can I add an css attribute for that inner

    that would apply only to that
  • ?

Thanks,

Nihilistar

Deuce
Deuce's picture
Offline
Guru
Las Vegas, NV
Last seen: 1 year 34 weeks ago
Las Vegas, NV
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4422
Points: 1841

what?

what?

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

nihilistar
Offline
newbie
Last seen: 3 years 27 weeks ago
Timezone: GMT+3
Joined: 2011-06-10
Posts: 3
Points: 4

Hi, I have a problem with my

Hi,

I have a problem with my navigation bar. I know exactly what to do to make it right and where to edit, but I don't know to to get there from css.

I have this piece of code:

<li class="page_item page-item-18"><a href="http://work/zakelijkverblijf/" title="Zakelijk">Zakelijk</a>
<ul class='children'>
	<li class="page_item page-item-212"><a href="http://work/zakelijkverblijf/activiteiten/" title="Activiteiten">Activiteiten</a></li>
	<li class="page_item page-item-207"><a href="http://work/zakelijkverblijf/dagvergaderarrangementen/" title="Dagvergaderarrangementen">Dagvergaderarrangementen</a></li>
	<li class="page_item page-item-210"><a href="http://work/zakelijkverblijf/meerdaagse-vergaderarrangementen/" title="Meerdaagse vergaderarrangementen">Meerdaagse vergaderarrangementen</a></li>
	<li class="page_item page-item-214"><a href="http://work/zakelijkverblijf/personeelsuitjes/" title="Personeelsuitjes">Personeelsuitjes</a></li>
 
</ul>
</li>

I would like to add an attribute for that ul class="children". I can't add the attribute to .children because I want that option for that particular li class="page_item page-item-18".

So finally, this is the question: How can I add an css attribute for that inner ul class="children" that would apply only to that li class="page_item page-item-18" ?

Thanks,

Nihilistar

Deuce
Deuce's picture
Offline
Guru
Las Vegas, NV
Last seen: 1 year 34 weeks ago
Las Vegas, NV
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4422
Points: 1841

So, like .page-item-18

So, like .page-item-18 .children { background-color: #f00; } ?

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

nihilistar
Offline
newbie
Last seen: 3 years 27 weeks ago
Timezone: GMT+3
Joined: 2011-06-10
Posts: 3
Points: 4

Nope it's not working

Nope it's not working Sad

Deuce
Deuce's picture
Offline
Guru
Las Vegas, NV
Last seen: 1 year 34 weeks ago
Las Vegas, NV
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4422
Points: 1841

Yes it does. The only way it

Yes it does.
The only way it won't is if you have styles that are more specific then the one I posted.
Since you have not supplied a link or all of your html and css that we request, it's about as much help as I am able to supply.

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph