Forums - Website Topics - Font size and line-height issue on posts

Like in this topic http://gamrconnect.vgchartz.com/thread.php?id=233685

Current CSS at gc-forums.css:

.post-body {
    font-size: 14px!Important;
    color: #4b4b4b !important;
    line-height: 120%;
    font-family: 'Calibri', 'Trebuchet MS','Arial','Helvetica','sans-serif';
}

I don't know the reasoning of that implementation, like if .post-body is used somewhere else that requires its line height to be in % or it messes its style up (trying to vertically center a text with it). But here is a solution you might want to consider:

Just use decimal:

.post-body {
    font-size: 14px!Important;
    color: #4b4b4b !important;
    line-height: 1.2;
    font-family: 'Calibri', 'Trebuchet MS','Arial','Helvetica','sans-serif';
}

 

Last edited by Edellus - on 18 December 2017

Around the Network

TEST:

Self-Driving Cars Endanger Nearly Four Million Jobs but Could Create a $7 Trillion Industry

Fully autonomous vehicles would hit the U.S. workforce hard. According to the Bureau of Labor Statistics, over 3.8 million people operate motor vehicles for their livelihood. This includes truck driving, the most common profession in 29 U.S. states, which employs about 1.7 million people. As we have said before, autonomous trucks are likely to be the first autonomous vehicles to hit the roads, which would put all of these workers in a tough spot (see “10 Breakthrough Technologies 2017: Self-Driving Trucks”).

Even as many jobs disappear or change, though, there will be new roles formed by autonomous vehicles. One that is already developing is that of a remote vehicle operator. These operators would be analogous to air traffic controllers at airports. They would monitor fleets of vehicles and lend assistance if a car or truck gets stuck. According to the San Francisco Chronicle, startups like Phantom Auto are already developing technology for these command centers.

What’s more, the robotic taxi rides of the future will be very different indeed from what we’re used to. A report from Intel predicts that as much as $7 trillion will be invested in the new “passenger economy” by 2050. There will be job openings for positions like masseuses and nail technicians to provide services during rides. But it’s not as though displaced workers will simply fall into these new professions. If you're a trucker, taxi driver, or delivery worker, it may not be too soon to start considering your next next career move.

 

 

EDIT: Not sure what Ryan is doing but I just copied and pasted the text and it came through as the above. Which looks fine. The extra CSS is attached to the element not the class. It's an error with the copied text not the website.... but then like I mentioned, it might be how Ryan is posting the article.



Hmm, pie.

I think it's an error of the styling of the website, as all elements ultimately follow the website's stylesheet unless it's within an iframe. It's on the website's control how things are displayed.

The font-size is indeed attached to the element, but the line-height that produces this effect is in a class of this website.

In the headers available in rich text reply the issue is still visible, just not as much due to their smaller font-size.



Bump: http://gamrconnect.vgchartz.com/thread.php?id=234324