PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, August 3, 2022

[FIXED] How can I get rid of this line? Or atleast format it?

 August 03, 2022     bootstrap-5, html, html-table     No comments   

Issue

I must be missing something very small. I have an html table with Bootstrap5 css. I can't get the formatting right. How can I get rid of this black line or format it and the black text to make it to be less bold?

Table Header Row

Here's the table header code:

<table id="submissionTable" class="table table-bordered">
        <thead>
            <tr>
                <th class="col-6 text-center">Item Description</th>
                <th class="col-3 text-center">Quantity Used</th>
                <th class="col-2 text-center">Sold</th>
                <th class="col-1 text-center"></th>
            </tr>
        </thead>

I'm using bootstrap.min.js and my own custom.js right below it in my <head>.

Here's my custom css

tbody, td, tfoot, th, thead, tr {
border-style: none;

}


Solution

I couldn't replicate the black line in the photo, but to change the text weight and style you can do this:

thead th {
  font-weight: normal;
}

It is probably better to give the headings their own class and refer to it in the CSS like this:

<th class="col-1 text-center itemtitle">Item Description</th>


.itemtitle {
  font-weight: normal;
}


Answered By - lineal
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing