Claudia Man II
Claudia Man II

Reputation: 13

How to assign attributes to child element?

How do I specifically assign a style to a child (the top black header from the image)

I've tried something like

.noo-topbar > .container > a

and

.noo-topbar .container a

but nothing's changed...

view from Google Chrome

Upvotes: 1

Views: 49

Answers (2)

blrzzzt
blrzzzt

Reputation: 194

Read about css combinators:

http://www.w3schools.com/css/css_combinators.asp

if you still have trouble i'd suggest applying an id to it, like #specialElement, and styling it directly.

Upvotes: 0

maheshv13
maheshv13

Reputation: 131

try this

.noo-topbar .container > ul li a

Upvotes: 1

Related Questions