I'm using django-tables2
's {% render_table table %}
to display a web page that has a table. The table has multiple rows and columns. Some of the columns have text that spans multiple lines. This creates rows with different heights.
I've tried playing around with the CSS but it doesn't seem to affect the width:
.my_col_2 {
width: 100px;
}
my views.py:
def index(request):
table = OrderTable(Order.objects.all(), order_by="-order_date")
RequestConfig(request, paginate={"per_page": 10}).configure(table)
return render(request, 'orders_app/index.html', {'table': table})
How do I manually specify the width of columns and height of rows when using django-tables2?