0

So this is situation, fist code show class when nav is on bottom...

<div id="navigation" class="attached-to-bottom"> <ul> <li></li> <li></li> <li></li> </ul> </div> 

this show when my navigation stay sticket to top after i scroll down (with jquery etc etc), but i need change navigation id height to be different when i triger class "attached-to-top") Can i do that with CSS only or?

 <div id="navigation" class="attached-to-top"> <ul> <li></li> <li></li> <li></li> </ul> </div> 

1 Answer 1

5

Simply don't use a space between them.

#navigation.attached-to-top { height: 100px; } 

More information on CSS Selectors

Sign up to request clarification or add additional context in comments.

2 Comments

In CSS 3 it's called "sequence of simple selectors".
im nooob :S i mean i try that but i use wrong height element etc etc... sorry

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.