0

I use following css in my table:

.lh1 {
    line-height: 50px;
    }

And my table looks like this:

<table class="table table-bordered lh lh1">
..
..
..
</table>

But no matter which value I use for line-height, my table doesn't change at all. Other .css in this table is working fine.

What could be the cause of that problem?

1
  • What exactly is the issue? Commented Jul 15, 2014 at 9:23

2 Answers 2

1

You need to do it like this.

CSS

.lh1 > tbody > tr > td {
    line-height: 50px;
    }

your CSS is not overwriting the bootstrap CSS. Here is the demo

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

Comments

0

try with:

.lh1 {
   line-height: 50px !important;
}

Your bootstrap may override this

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.