admin管理员组

文章数量:1303335

I want to put my math notes on a Wordpress blog. I always write my notes using Pages and they always have the following format:

Is it possible to replicate the above format in a Wordpress post?

Unfortunately I don't know CSS or HTML. The only thing I could do in Wordpress was the following:

The most important thing for me is to delimit a theorem and its proof by a box. In addition, I would like the statement of the theorem to be highlighted in relation to its proof.

Thank you for your attention!


EDIT:

Below is the solution I found based on Valter Ekholm's answer:

<div style="border: 1.5px solid black; background-color:#f0f0f0">
    
   <b>THEOREM 1:</b> [...]
   <br>

   <p style="background-color:#FFFFFF"> 
       <b>Proof:</b><br>
   
       [...]

       <br><br>
   </p>
</div>

With the above code you get the following result:

I want to put my math notes on a Wordpress blog. I always write my notes using Pages and they always have the following format:

Is it possible to replicate the above format in a Wordpress post?

Unfortunately I don't know CSS or HTML. The only thing I could do in Wordpress was the following:

The most important thing for me is to delimit a theorem and its proof by a box. In addition, I would like the statement of the theorem to be highlighted in relation to its proof.

Thank you for your attention!


EDIT:

Below is the solution I found based on Valter Ekholm's answer:

<div style="border: 1.5px solid black; background-color:#f0f0f0">
    
   <b>THEOREM 1:</b> [...]
   <br>

   <p style="background-color:#FFFFFF"> 
       <b>Proof:</b><br>
   
       [...]

       <br><br>
   </p>
</div>

With the above code you get the following result:

Share Improve this question edited Feb 13, 2021 at 22:11 rfloc asked Feb 10, 2021 at 21:59 rflocrfloc 636 bronze badges 3
  • I believe there are some 'Math Content' plugins available that are designed specifically to help format mathematical equations in blog posts. Try this: wordpress/plugins/wp-quicklatex More info here: wpbeginner/beginners-guide/… – Tony Djukic Commented Feb 11, 2021 at 3:32
  • @TonyDjukic I have already learned how to write equations in Wordpress using Latex. The problem is that I don't know how to create those custom boxes. – rfloc Commented Feb 11, 2021 at 6:12
  • So you just want to wrap the mathematical equations in custom looking boxes? That should just be a CSS solve but I'd need to see the actual output code that gets rendered to the page. You may also need to wrap the equations inside another 'container' so you can style it. – Tony Djukic Commented Feb 11, 2021 at 21:04
Add a comment  | 

1 Answer 1

Reset to default 1 +50

In the page editor, switch to code-editor. Now your text will be within tags... probably a <p> tag.

Add css to the tag so it reads:

<p style="border: 1px solid gray"> ... </p>

Currently, to switch to code-editor, click the 3-dot-menu-button in the right top of the screen/window and then "Code Editor".

本文标签: postsHow to create custom boxes with text inside