+ 2

How can I align"center" a list?

I tried to use the attribute align for the list, but it doesn't work. Thanks! <!DOCTYPE html> <html> <head> <title>My Blog</title> <link href="https://fonts.googleapis.com/css?family=Handlee" rel="stylesheet"> </head> <body> <!-- My Skills section start --> <div class="section"> <h1><span>My Skills</span></h1> <ul> <li>HTML: WORK IN PROGRESS</li> <li>CSS: PENDING</li> <li>JavaScript: PENDING</li> </ul> </div> <!-- My Skills section end --> </body> </html>

9th Jun 2017, 9:22 AM
Andrea C
Andrea C - avatar
3 Antworten
+ 11
add style="text-align:center" in <li>
9th Jun 2017, 9:25 AM
Art456
Art456 - avatar
+ 4
<center> is a deprecated tag in Html5.... you must use a valid Html5 tag instead, and rather apply to it the 'text-align:center;' Css property/value pair...
30th Jun 2017, 4:28 PM
visph
visph - avatar
0
style center or <center>
6th Jul 2017, 4:55 PM
Mr Sab