0
The align:centre does not not bring any change to the output
<html> <body> <h1>Headline</h1> <div style="background-color:green; color:white; padding:20px; align:centre;"> <p>Some paragraph text goes here.</p> <p>Another paragraph goes here.</p> </div> </body> </html>
3 Antworten
+ 1
It’s text-align: center
0
It's center not centre try that.
0
Either use 'align' attribute for the <div>
<div align="center"> ... </div>
Or CSS rule `text-align` in style attribute for the <div>
<div style="text-align: center;"> ... </div>