Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKonrad Pilch
2,435 PointsActive with PHP
HI,
Is here any PHP course thath when you have a navbar the links, and its on the active , how do i change it with PHP? is there any PHP course like this? i remember i did it somewhre i forogot where.
1 Answer
Colton Ehrman
Courses Plus Student 5,859 PointsNot really sure what you mean by changing it, but CSS can easily do stuff to active elements using the :active psuedoclass
a:active {
//properties to change
}
Unless you are experimenting, I would suggest to stick with CSS for this particular task
Konrad Pilch
2,435 PointsKonrad Pilch
2,435 PointsHI,
What i mean is dynamic activation
Basicaly if the page is Home or About whatever... the colour would change to mine colour ..
This basically.
But i did it in my own way, basicaly i put it in an array the menu, and i dont know how to make it to activate when on particular page.
Colton Ehrman
Courses Plus Student 5,859 PointsColton Ehrman
Courses Plus Student 5,859 PointsOhhh, I see... I wish I could help but don't know much PHP (yet) lol Good luck
Konrad Pilch
2,435 PointsKonrad Pilch
2,435 PointsThank you :)
Happy Coding!