CSS text-align

.HTML ALIGN is known and familiar to all as you can align elements horizontally or vertically 

but There isn't actually a CSS ALIGN or CSS VALIGN property. Instead, CSS has the text-align which applies to inline content of block-level elements, and vertical-align property which applies to inline level and table cells.

CSS text-align example

td { text-align: right }
The css text-align property applies to the contents of the block-level element - it doesn't need to be text. For more information on usage, see the text-align property page.


CSS vertical-align example

td { vertical-align: text-top }

Note that at the time of writing, browser support for vertical-align was limited. For more information on usage, see the vertical-align property pag

تنبيه : المرجوا عدم نسخ الموضوع بدون ذكر مصدره المرفق بالرابط المباشر للموضوع الأصلي وإسم المدونة وشكرا

0 التعليقات:

leave your comment to help us to develope the website.


اخر التعليقات

اصدقاء المدونه على الفيس بوك