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

What Happen to the page-header class in Bootstrap 4

What Happen to the page-header class in Bootstrap 4 Because the tecaher uses it for Framework Basics. What should i use.

1 Answer

Hi osman musse,

Bootstrap 4 deprecated .page-header in favour of utility functions/mixins which make working with the framework easier, as version 4 is still in alpha it's recommended you stick with version 3 which still uses .page-header.

https://v4-alpha.getbootstrap.com/migration/#typography

Yeh but I wanna use Bootstrap 4 the latest isn't there something that replace Page-header

Yeh but I wanna use Bootstrap 4 the latest isn't there something that replace Page-header

Building on Chris's correct comment, nothing replaced .page-header, however, if you follow the note they left about about deprecating it, they said you can recreate the styles using the existing utility classes they have. You can find those classes here: https://v4-alpha.getbootstrap.com/utilities/borders/ and effectively rebuild your own page header element.