0

why does output not reflect right alignment as required,please.

<!DOCTYPE.html> <html> <head> <style> .center { text-align: center; color: red; } </style> </head> <body> <h2 class="right">kpkalia</p> <p class="right">JBBPJI</p> <p class="center"> Always....always....</p> </body> </html>

20th Apr 2020, 2:22 AM
kp kalia
kp kalia - avatar
1 Resposta
+ 3
You only have CSS rule defined for class 'center', there is no definition for class 'right'
20th Apr 2020, 2:32 AM
Ipang