0

I am having trouble as border-top line cuts printed text in halt, the rest of the text prints out of the top border. border top

My table has organized this way:

table.rotate-table-grid{box-sizing: border-box;
border-collapse: collapse;}
 .rotate-table-grid tr, .rotate-table-grid td, .rotate-table-grid th {
  border: 1px solid #ddd;
  position: relative;
  padding: 10px;
}
.rotate-table-grid th span {
  transform-origin: 0 50%;
  transform: rotate(-90deg); 
  white-space: nowrap; 
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  border-top:200px;
}
thead{
    border-top: no-border;
}

<table class="table table-bordered rotate-table-grid">
    <thead> 
        <tr id="groups">
            <th class="rotate" >Company</th>                                
            <?php foreach($stages as $stage){  
                ?> 
                <th class="rotate" ><div><span><?php echo $obuka['stageName'];?></span></div></th> 
            <?php } ?>    
        </tr>
    </thead>  

The only trouble I am having is border-top should be as height as the text is long ?

How I can fix this, any help? Tried multiple options it doesnt work

Marko
  • 101
  • 1
  • 1
  • 9
  • Does this answer your question? [Rotated elements in CSS that affect their parent's height correctly](https://stackoverflow.com/questions/16301625/rotated-elements-in-css-that-affect-their-parents-height-correctly) – 04FS Feb 03 '20 at 12:33
  • Do you have a fixed height somewhere? – Sleek Geek Feb 03 '20 at 12:33
  • @SleekGeek I think no, can I override it somehow? – Marko Feb 03 '20 at 12:49

0 Answers0