css-algin-text
RUN
<!DOCTYPE html> <html> <head> <style> .center { text-align: center; border: 1px solid red; } .left { text-align: left; border: 1px solid red; } .right { text-align: right; border: 1px solid red; } </style> </head> <body> <h2>Center Text</h2> <div class="center">Đây là phần tử div căn giữa.</div> <div class="left">Đây là phần tử div căn trái.</div> <div class="right">Đây là phần tử div căn phải.</div> <span class="center">Đây là phần tử span</span> </body> </html>
PHÓNG TO