Jump to content

Components’ height cannot be manipulated (Materialize CSS)

mrchow19910319

I am using Materialize CSS to create a front end mockup where I found that the height of the coponent tabs, cannot be altered.

Inside the codepen is an simple example where I try to make the tab components inside tabs any size I want. The idea is to control those elements’ sizes so that I can style it better. Make the fonts bigger and such. Or I can straight up put other content into those tabcomponent.

 

codepen link

 

Inside the codepen you can see the 1st issue I am facing is : I cannot get the tab component to fill up its parent tabs.

 

Is anyone familiar with Materialize CSS? 

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

23 hours ago, infamoustrey said:

.tabs { height: 100px; } 
.tab { height: 100% !important; }

Seems to work for me.

Ah.. thanks

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×