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

Chapter 16.  Layout with Styles > Setting the Height or Width for an Element

Setting the Height or Width for an Element

You can set the height and width for most elements, including images, form elements, and even blocks of text. If you have several elements on a page that are the same size, you can set their height and width simultaneously. This information helps browsers set aside the proper amount of space necessary and thus view the rest of the page—generally, the text—more quickly.

To set the height or width for an element:

1.
Type width:w, where w is the width of the element, and can be expressed either as an absolute value or as a percentage of the parent element.

2.
Type height:h, where h is the height of the element, and can be expressed only as an absolute value.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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