How do you align a table to the right (or left)?



How do you align a table to the right (or left)?..

Answer / Gaurav Wadhawan

To align a table cell to the right, use the CSS property text-align with a value of 'right'. For the entire table, use the attribute style='text-align: right;' in the table tag. To align to the left, set text-align to 'left'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What does the alt attribute do?

1 Answers  


What is #document in html?

1 Answers  


Is local storage secure?

1 Answers  


How do I align a table to the right (or left)?

1 Answers  


What is the relation between xhtml and sgml?

1 Answers  


What are some html5 new tags?

1 Answers  


What is a list tag and mention the most commonly used list tags?

1 Answers  


What is tr and td in html?

1 Answers  


What is the difference between svg and canvas elements?

1 Answers  


What is the purpose of the alt attribute in <img>?

2 Answers  


How do I create frames?

1 Answers  


What is an element in html?

1 Answers  


Categories