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 trial


Css in php bundle how to use it?

i'm currently building a web site of my own using php as well as symphony as framework. the proble is that i have so much bundle with css style already applied on them. I want to overwrite it and create my own style but the thing is that i don't really know how to find the css file and how to create a new css file that can take all the bundle in charge. im a little bit confuse about it?

Please help

2 Answers

Jacobus Hindson
Jacobus Hindson
14,429 Points

Hi Pierre,

To get a handle on some CSS fundamentals I recommend looking at Css Basic run by Guil Hernandez. It will show you the start of what you need.

To find the CSS file that is currently in use use "Inspector" in your browser and look in the head section for a file name name-here.css You can then access that file and copy and paste it to your personal file that you would link in the head section of your HTML/PHP project.

That being said CSS is run in a hierarchy of when it is called. So you can leave the existing bundle and then override the class/id selectors in your own css.

For example framewok.css has a .home-nav { <rules here> } and then your style.css has another rule for the same .home-nav selector. What you will find is that the "style.css" that is called last by the HTML document will override the existing css.

As I opened with check out the basics course you will benefit from it greatly.

Thank you very much I appreciate it very much