Results 1 to 5 of 5

Thread: Lost Child

  1. #1
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    259
    Thanks
    92
    Thanked 3 Times in 3 Posts

    Default Lost Child

    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:
    Code:
    .PTI>p {font-weight:900; }
    It seems to be not working.
    Code:
    .PTI p {font-weight:900; }
    appears to not work either.

    Can you help?

    A.
    Last edited by marain; 10-18-2020 at 07:31 PM. Reason: Provide additional information

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,689
    Thanks
    1
    Thanked 252 Times in 247 Posts

    Default

    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...

    Code:
    
    .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

    coothead
    ~ the original bald headed old fart ~

  3. #3
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    259
    Thanks
    92
    Thanked 3 Times in 3 Posts

    Default

    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
    Code:
    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.

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,689
    Thanks
    1
    Thanked 252 Times in 247 Posts

    Default

    Hi there marain,

    I examined your CSS file at 6:44 GMT and it contains this...

    Code:
    
    .PTI p {font-weight:900; }
    Here is an image that shows the result of that code...

    Click image for larger version. 

Name:	bold-text.jpg 
Views:	42 
Size:	15.5 KB 
ID:	6402

    Here is an image that shows the result of using .PTI p {font-weight:normal; }...

    Click image for larger version. 

Name:	normal-text.jpg 
Views:	41 
Size:	14.5 KB 
ID:	6403

    If you're not seeing it as bold on your desktop, then you should, by now, know the reason why.


    coothead
    Last edited by coothead; 10-25-2020 at 09:00 PM.
    ~ the original bald headed old fart ~

  5. #5
    Join Date
    Oct 2020
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Similar Threads

  1. help please i'm lost
    By me2thee in forum The lounge
    Replies: 0
    Last Post: 03-17-2011, 05:03 PM
  2. Help! I'm lost.
    By ??? in forum JavaScript
    Replies: 3
    Last Post: 03-02-2009, 08:40 PM
  3. Child Iframe resizing another Child Iframe window in a parent.
    By Adonias_d in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-16-2007, 12:11 AM
  4. I think I'm totally lost
    By Liveontheisland in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-20-2006, 07:48 PM
  5. I am so lost....
    By ladycat in forum CSS
    Replies: 2
    Last Post: 11-03-2005, 01:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •