Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
/r/AskEngineersCSS: how to prevent automatic line break when the post title is too long?
Post Flair (click to view more posts with a particular flair)
Post Body

Hey all, I'm testing some css code for AskEngineers on our test sub, /r/AskEngineersCSS. The code is based on /r/Structura and has not been modified (aside from the addon section).

Issue: Link flair causes the text of the post title to break to a new line if the text is long enough to reach the end of the element, leaving the link flair 'orphaned' above the post title. This also happens when you decrease the browser window size, causing most titles to line break since they're longer than a few words.

Objective: I want the title text to stay on the same line as the link flair until there's no more room on that line before line breaking.


The code snippet below controls link flair behavior, but maybe there's some other part of the code I'm overlooking. I tested white-space:nowrap but it had no effect.

.linkflairlabel{
  border:1px solid rgba(144,144,144,.25);
  border-radius:3px;
  background:rgba(144,144,144,.075);
  color:#5e6875;
  max-width:none;
  }.flair,html

Thanks for any help you can give!

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
37,877
Link Karma
9,710
Comment Karma
28,033
Profile updated: 6 days ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 years ago