cross out a text and pay attention to the maximum width of the container

flexbox
css grid
bootstrap
css div full width of screen
container-fluid
bootstrap 4
bootstrap grid
flex-grow

I would like to cross out a text within a span. Currently I have this

.content {}

.pending {}

.closed {
  position: relative;
}

.closed::before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  right: 0;
  border-top: 2px solid red;
}
<div class="content pending">
  this is a text about foo
</div>

<div class="content closed">
  this is a text about bar
</div>

If you add the inner text in a data-attribute, the following would be a hackish approach that would work in certain scenarios:

.content {}

.pending {}

.closed {
  position: relative;
}

.closed::before {
  position: absolute;
  content: attr(data-text);
  left: 0;
  top: 50%;
  border-top: 2px solid red;
  display: inline-block; /* makes sure ::before's width is determined by its content */
  color: rgba(0,0,0,0); /* makes the text invisible */
}
<div class="content pending">
  this is a text about foo
</div>

<div class="content closed" data-text="this is a text about bar">
  this is a text about bar
</div>

United States Official Postal Guide, underline, words or passages of the text to which it is desired to draw attention. and to strike out or underline the whole or part of the printed communications. upon rollers, between boards, in cases or containers, open at both sides or at The maximum weight of commercial papers is fixed at 2 kilograms (4 pounds 6​  hi, you can just set the height of the splitted container. pay attention to the words in red. check the code: data: lo_container type ref to cl_gui_custom_container, lo_grid type ref to cl_gui_alv_grid, li_fcat type lvc_t_fcat with header line, lx_layout type lvc_s_layo, lo_event type ref to zcl_event_receiver, lo_parent_top type ref to cl_gui_container, lo_parent_grid type ref to cl_gui

Just set your .closed to display: inline; or display: inline-block;

.content {}

.pending {}

.closed {
  position: relative;
  display: inline-block;
}

.closed::before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  width: 100%;
  right: 0;
  border-top: 2px solid red;
}
<div class="content pending">
  this is a text about foo
</div>

<div class="content closed">
  this is a text about bar
</div>

Commerce Business Daily, ITEM DESCRIPTION: Storage/Shipping containers: (1) New COIS from the environment (weather proof and watertight); (3) Outer dimensions: a not larger than during transportation and storage with maximum gross weight (including container) Attention shall be given to the extent proposed items are free of blemishes,  If you set type with vw (viewport width) units, you can find an exact number where the text pretty closely fits the container and doesn’t break as you resize. I’d call this a magic number . In this case, font-size: 25.5vw; works down to a 320px viewport, but still will break much lower than that.

Here is a hacky way that rely on flexbox trick but you won't have transparency:

.closed {
  position: relative;
  display:flex;
}
/*fill the remaining space and hide the before*/
.closed::after {
  content:"";
  flex-grow:1;
  background:#fff;
  height:1em;
  z-index:1;
}
/**/
.closed::before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  right: 0;
  border-top: 2px solid red;
}
<div class="content pending">
  this is a text about foo
</div>

<div class="content closed">
  this is a text about bar
</div>

The Shock and Vibration Bulletin, and measurements by many facilities and government agencies throughout the such texts as the Shock and Vibration Handbook by C. M. Harris and C. E. Crede. The object of this paper, however, is to call attention to the far greater order of the actual opening with hinges and 120 degrees maximum swing of each door,  First of all, let’s understand the container inner dimension and maximum loading weight. This is necessary for loading the cargo efficiently. Container size (inside dimension) 20ft container: 2.3m (width) x 5.7m (lenghtl) x 2.4m (height) 40ft container: 2.3m (width) x 12m (length) x 2.4m (height)

If i understand correctly, adding:

width:fit-content;

should cross out the word

Delphi Cookbook: Recipes to master Delphi for IoT integrations, , Recipes to master Delphi for IoT integrations, cross-platform, mobile and Two methods require particular attention: the constructor, where all the Here's the constructor: //for the max temperature FMaxTemp := TTextObjectAppearance. var LInitTextObject: TProc<TTextObjectAppearance>; begin inherited; //The 2 text​  Pay attention to container labels. Make sure they are filled out and in good condition. If a label gets torn or becomes difficult to read, replace it. If you store hazardous waste containers outside, check labels during your inspections to ensure they haven't fallen off or become damaged.

CSS · Bootstrap, For improved cross-browser rendering, we use Normalize.css, a project by Use .container-fluid for a full width container, spanning the entire width of on these media queries to include a max-width to limit CSS to a narrower set of devices. you can create a basic grid system that starts out stacked on mobile devices and​  The maximum number of parts increased to 60. Please pay attention that the pack will become available for purchase later this week! Raids. General. Increased the points awarded for destroying or assisting in the destruction of leaders and elite raiders/officers and proportionally changed points for completing the tasks of the raid.

Full Browser Width Bars, As the line length of text content gets longer, it can be harder to read. So it's common practice to limit the width of content as the viewport widens. to wrap the content semantically (e.g., main or section) and have the headings break out visually as needed. Given the fussiness of using borders, let's look at an alternative:  Under most other circumstances, we just don’t have enough information to know exactly how far to pull out the full width container with negative margins. Well, unless… We could use the width of the browser window in our CSS math.

Understanding Flexbox: Everything you need to know, Flex container : The parent element you've set display: flex on. It defines how flex-items are laid out on the cross axis. This is I'll take a closer look at the flex-​grow and flex-shrink properties in a bit in case you still don't feel @media screen and (max-width: 300px) { /*write your css in this code block*/}. I personally use a maximum width of 960 or 980 pixels for a vertical layout and between 550 and 640 pixels in case of a horizontal layout. Besides, though 13.8% seems to be a fairly low number, it still represents millions of internet users.

Comments
  • Try display: table; on .closed. See stackoverflow.com/questions/12708381/… for more.
  • inline-block ?
  • inline-block would be better
  • Currently the support for fit-content is quite limited: caniuse.com/#search=fit-content