• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Working with Tables > Controlling Table Width and Horizontal Alignm...

Controlling Table Width and Horizontal Alignment

Although the WIDTH attribute is not deprecated in the TABLE element, CSS provides an alternative (the width property) that can be used to control the width of a table. For an example of doing this, just add the following style rule to your example file:

<style type="text/css">
table {  width: 90%; }
</style>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint