Hello everyone, I am pretty new to Django, HTML, and CSS. This is actually my first time using stackoverflow so I could really use your assistance.
My issue involves a table I have created:
<div class="grade_book"><table class="table">
<tr><th>Year</th><th>Grade</th><th>Category</th></tr>
{% for year, grade, category in results %}
<tr><td>{{year}}</td><td>{{grade}}</td><td>{{category}}</td></tr>
{% endfor %}
</table></div>
My goal is to set the first two columns' width to 100px and the third to last one to 250px.
I have attempted to achieve this with some CSS but it seems that only the first column's width gets set to 100 px.
.grade_book table td {text-align: left;font-size: 14px;}
.grade_book .table{ table-layout:fixed; font-size: 16px; width: 100%; margin-bottom: 100px; border-collapse: collapse;}
.grade_book th { width: 90px;}
.grade_book th+th { width: auto;}
I would greatly appreciate any help you can provide as I am still learning about CSS. I have tried searching for similar questions but haven't been able to find the exact solution I'm looking for.