+ 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>
3 Réponses
+ 11
add style="text-align:center" in <li>
+ 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...
0
style center or <center>