CSS - bar (decoration)

0

I'mtryingtocreateabarliketheonethatappearsintheimage,thebarthathasproductetc.Ihavethefollowingcode:

<divid="topcart"> 
    <thead>
        <tr>
            <th>ISBN</th>
            <th>Book</th>
            <th>Price</th>
            <th>Quantity</th>
            <th>Subtotal</th>
            <th>&nbsp;</th>
        </tr>  
    </thead>
        </div>

Then in CSS I have the following;

#topcart{
    overflow: hidden;
    display:block;
}

But you're not doing anything. is not the overflow that causes the bar to appear as in the image?

    
asked by anonymous 30.04.2017 / 23:40

1 answer

0
  

word-spacing is the space between words

     

padding-left is space left

#topcart  { 
font-family: Arial, courier, serif;
background-color: #71658B;
color: #FFFFFF;
word-spacing: 20px;
padding-left: 80px;
}
 <div id="topcart"> 
    <thead>
        <tr>
            <th>ISBN</th>
            <th>Book</th>
            <th>Price</th>
            <th>Quantity</th>
            <th>Subtotal</th>
            <th>&nbsp;</th>
        </tr>  
    </thead>
  </div>
    
01.05.2017 / 00:51