Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

css for bigger font

by slowsort (Initiate)
on Oct 26, 2025 at 05:46 UTC ( [id://11166592]=monkdiscuss: print w/replies, xml ) Need Help??

hi, what css would i add to my settings for bigger font size? me browser is stupid

Replies are listed 'Best First'.
Re: css for bigger font
by atcroft (Abbot) on Oct 29, 2025 at 07:50 UTC

    I believe the you want the CSS id selector "#writeup" for the initial post, and the CSS class selector ".reply-body" or ".notes" for replies. (".reply-body" seems to be more specific, so it is probably the one you want there.)

    For sizing, you can do something like 125%, 1.5em or 1.75rem (1.25x the font size of the parent element, 1.5x the font size of the parent element or 1.75x the font size of the root HTML element (<html>), respectively), or specify a size such as "medium", "large", "x-large", or "xx-large" (there's also "xx-small", "x-small", and "small").

    The following example should increase the size of an initial writeup to 1.5x default, and responses to 1.25x default:

    /* Guesswork from inspecting a random page. */ /* writeup - class for original posts (?) */ #writeup { font-size: 1.5em; /* or 1.5rem, or 150% */ } /* reply-body - class for responses (?) */ #reply-body { font-size: 1.25em; /* or 1.25rem, or 125% */ }

    Hope that helps.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://11166592]
Approved by herveus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2026-04-16 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.