简体   繁体   中英

How to change the font size of text in one cell jupyter lab?

I want to change the font size of a specific markdown cell in jupyter lab, and not the whole output. I will convert my project at the end into an html file.

I already tried this:

<html>
    <head>
        <style>
            div.a {
             font-size: 300%;
              }
        </style>
        <body>
            <div class="a">My text in here</div>
        </body>
    </head>
</html>

But this is not changing my text size after I run my cell under Markdown. I also don't want to use in order to not give a automatic number to that particular text.

Thanks in advance

I see you want to change the font-size:

<html>
<head>
    <style type="text/css">
        .a{                    //for class use .(class-name) 
            font-size: 300%;
        }
    </style>
</head>                        // all the styling is to be done inside the head tag.
<body>
    <div class="a">My text in here</div>
</body>
</html>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM