2

I have some text in a table cell in a table row that I'm trying to have the text span. The text keeps on stopping in place.

This is what I currently have: enter image description here

However this is what I want: enter image description here

I want the text to span all way. How would I implement this?

This is my code:

.normal-cell-styling-left-second {
  width: 350px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E6E6E6;
}

.normal-cell-styling-middle-second {
  width: 425px;
  padding-left: 60px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E6E6E6;
}

.normal-cell-styling-right-second {
  width: 700px;
  padding-top: 20px;
  padding-left: 200px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E6E6E6;
}

.gray-dynamic {
  display: inline-block;
  background-color: #F6F8FA;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 4px;
  margin-top: 5px;
  margin-bottom: 5px;
  font-weight: normal;
  font-size: 16px;
  font-family: 'PureHeadlineRegular', Sans-serif;
  line-height: 19px;
  color: #212121;
}

.image-placeholder5 {
  display: inline-block;
  width: 196px;
  height: 36px;
  background-color: #F1F1F1;
}
<table>
  <tr>
    <td className="normal-cell-styling-left-second">
      <span class="gray-dynamic">
      SHADOW_SPREAD_0 
    </span>
    </td>
    <td className="normal-cell-styling-middle-second">
      0 0 0px 0 rgba(0,0,0,0.12) <br></br>0 0px 0px 0 rgba(0,0,0,0.24)
    </td>
    <td className="normal-cell-styling-right-second">
      <div className="image-placeholder5"></div>
    </td>
  </tr>
  <table>
j08691
  • 204,283
  • 31
  • 260
  • 272
Tony Hoan Trinh
  • 455
  • 4
  • 13

3 Answers3

0

Just put it in a span like your SHADOW_SPREAD

.normal-cell-styling-left-second {
  width: 350px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E6E6E6;
}

.normal-cell-styling-middle-second {
  width: 425px;
  padding-left: 60px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E6E6E6;
}

.normal-cell-styling-right-second {
  width: 700px;
  padding-top: 20px;
  padding-left: 200px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E6E6E6;
}

.gray-dynamic {
  display: inline-block;
  background-color: #F6F8FA;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 4px;
  margin-top: 5px;
  margin-bottom: 5px;
  font-weight: normal;
  font-size: 16px;
  font-family: 'PureHeadlineRegular', Sans-serif;
  line-height: 19px;
  color: #212121;
}

.image-placeholder5 {
  display: inline-block;
  width: 196px;
  height: 36px;
  background-color: #F1F1F1;
}
<table>
  <tr>
    <td className="normal-cell-styling-left-second">
      <span class="gray-dynamic">
      SHADOW_SPREAD_0 
    </span>
    </td>
    <td className="normal-cell-styling-middle-second">
    <span class="gray-dynamic">
      0 0 0px 0 rgba(0,0,0,0.12) <br>0 0px 0px 0 rgba(0,0,0,0.24)
      </span>
    </td>
    <td className="normal-cell-styling-right-second">
      <div className="image-placeholder5"></div>
    </td>
  </tr>
  <table>
BeerusDev
  • 1,444
  • 2
  • 11
  • 30
0

Modify the css

.table thead tr th td { 
    white-space:nowrap
}

Then use white-space-no-wrap in the table data style

<td style="white-space:nowrap;" className="normal-cell-styling-middle-second"> 0 0 0px 0 rgba(0,0,0,0.12) <br></br>0 0px 0px 0 rgba(0,0,0,0.24) </td>
Qudus
  • 1,440
  • 2
  • 13
  • 22
0

Not sure, but it looks like there is a few things about table styling you are not familiar with :

Here is a snippet that could be closer to what you expect, do not hesitate to clarify your needs and misunderstandings of myself.

table{
border-spacing:0;/* or border-collapse:collapse; */
}
.normal-cell-styling-left-second {
  width: 350px;
  border-bottom: 1px solid ;
  vertical-align:top;
}

.normal-cell-styling-middle-second {
  width: 425px;
  padding-left: 60px;/* needed ?*/
  border-bottom: 1px solid ;
  white-space:nowrap;
}

.normal-cell-styling-right-second {
  border-bottom: 1px solid ;
}

.gray-dynamic {
  display: inline-block;
  background-color: #F6F8FA;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 4px;
  margin-top: 5px;
  margin-bottom: 5px;
  font-weight: normal;
  font-size: 16px;
  font-family: 'PureHeadlineRegular', Sans-serif;
  line-height: 19px;
  color: #212121;
}

.image-placeholder5 {
  display: inline-block;
  width: 196px;
  height: 36px;
  background-color: #F1F1F1;
}
<table>
  <tr>
    <td class="normal-cell-styling-left-second">
      <span class="gray-dynamic">
      SHADOW_SPREAD_0 
    </span>
    </td>
    <td class="normal-cell-styling-middle-second">
      0 0 0px 0 rgba(0,0,0,0.12) <br>0 0px 0px 0 rgba(0,0,0,0.24)
    </td>
    <td class="normal-cell-styling-right-second">
      <div class="image-placeholder5"></div>
    </td>
  </tr>
  <table>
G-Cyrillus
  • 101,410
  • 14
  • 105
  • 129