View Full Version : Lost Child
marain
10-18-2020, 06:57 PM
I hope you're not tiring of me.
I want emboldened text on my https://www.marainlaw.com/page.php?here=PTI page. My CSS file included this code:
.PTI>p {font-weight:900; } It seems to be not working.
.PTI p {font-weight:900; } appears to not work either.
Can you help?
A.
coothead
10-25-2020, 04:14 PM
Hi there marain,
sorry for the late reply, but I've been a little under the weather for the past week.
A quick look at your page today indicates that your CSS...
.PTI p {
font-weight:900;
}
...is creating emboldened paragraphs.
Note:-
font-weight: 400 equates to normal, while font-weight: 700 equates to bold
Further reading:-
MDN - font-weight (https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
coothead
marain
10-25-2020, 06:39 PM
Coothead,
I hope you're feeling better! While I appreciate your replies, please feel under no obligation to respond, timely or otherwise!
On my desktop, the text does not appear bold. I changed the CSS code to
p.PTI {font-weight:700; }That does not work either.
This may be spinning our wheels since I'm planning to change the text font to conform to the other pages on that site, which seem to not suffer from that problem. I do not know when I'll get to it.
coothead
10-25-2020, 07:11 PM
Hi there marain,
I examined your CSS file at 6:44 GMT and it contains this...
.PTI p {font-weight:900; }
Here is an image that shows the result of that code...
6402
Here is an image that shows the result of using .PTI p {font-weight:normal; }...
6403
If you're not seeing it as bold on your desktop, then you should, by now, know the reason why. :D
coothead
greenconcept
10-28-2020, 04:11 PM
You have body{font-weight:bold;} and that works. .PTI p {font-weight: bold;} would have worked as well.
p.PTI {font-weight:700;} would only work if the class "PTI" was applied to each paragraph like this <p class="PTI"></p>
.PTI>p {font-weight:900; } only works if the paragraphs are immediate descendants of body.PTI (The only immediate descendant is div#container)
Most fonts do not come in every weight and not all users have every weight available. For example, Times New Roman comes in four weights but only 400 and 600 (regular and bold) are installed on my computer. This is something to consider if you are having trouble getting the weight you want to display.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.