![Swapnil Mane on Twitter: "All the Ways to Center a Div in CSS! 👇 Thread 🧵 #CSS #Frontend #Javascript https://t.co/vCl3mDVmVi" / Twitter Swapnil Mane on Twitter: "All the Ways to Center a Div in CSS! 👇 Thread 🧵 #CSS #Frontend #Javascript https://t.co/vCl3mDVmVi" / Twitter](https://pbs.twimg.com/media/FF00K0QWQAEzs1e.jpg:large)
Swapnil Mane on Twitter: "All the Ways to Center a Div in CSS! 👇 Thread 🧵 #CSS #Frontend #Javascript https://t.co/vCl3mDVmVi" / Twitter
![input <div style="text-align: justify;"><p style="text-align: center;"> JavaScript</p></div> · Issue #9425 · ckeditor/ckeditor5 · GitHub input <div style="text-align: justify;"><p style="text-align: center;"> JavaScript</p></div> · Issue #9425 · ckeditor/ckeditor5 · GitHub](https://user-images.githubusercontent.com/7298176/113702318-f1143580-970b-11eb-81aa-3b50907f9bfb.png)
input <div style="text-align: justify;"><p style="text-align: center;"> JavaScript</p></div> · Issue #9425 · ckeditor/ckeditor5 · GitHub
![I have 2 questions 1 How can i strike through this div when clicking on it using javascript? 2 how can I put the text right in the beginning and center it ..? : r/learnjavascript I have 2 questions 1 How can i strike through this div when clicking on it using javascript? 2 how can I put the text right in the beginning and center it ..? : r/learnjavascript](https://preview.redd.it/i-have-2-questions-1-how-can-i-strike-through-this-div-when-v0-5yin8dyu05p91.jpg?width=640&crop=smart&auto=webp&s=bb21b72071f386d11062d9af4419528a9b5c0389)
I have 2 questions 1 How can i strike through this div when clicking on it using javascript? 2 how can I put the text right in the beginning and center it ..? : r/learnjavascript
![Hemdee JS on Twitter: "My first question to ChatGPT. I guess it's really not that intelligent cos it missed out the method of centering a div with grid with place-items of center Hemdee JS on Twitter: "My first question to ChatGPT. I guess it's really not that intelligent cos it missed out the method of centering a div with grid with place-items of center](https://pbs.twimg.com/media/Fj2M9XiWYAUQcGq.jpg)