1 / 47

Layout Control is a critical issue in any website/pages design.

Layout Control is a critical issue in any website/pages design. Traditionally and conveniently (but not satisfactorily) done with <frameset> and <frame> Supported by all browsers Discouraged now Multiple pages made messy with “back” button

jenski
Télécharger la présentation

Layout Control is a critical issue in any website/pages design.

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Layout Control is a critical issue in any website/pages design. • Traditionally and conveniently (but not satisfactorily) done with <frameset> and <frame> • Supported by all browsers • Discouraged now • Multiple pages made messy with “back” button • Tables were also used to control positioning of elements • Discouraged now. • This lecture addresses modern ways of layout control using CSS styles, new tags of HTML5 • Have a quick look at HTML5 new tags

  2. Default “flowing” of doc/page elements • Block element flow from the top to the bottom • Inline elements flow from left to right side of their enclosing block elements • For layout control, this default flow need be manipulated by using the follow two style properties: • Float: causes an element to float to left or right • Clear: requires the left, right or both besides a floated element clear – stop subsequent element flowing into these spaces.

  3. Note: Firefox requires the –moz- prefix, Chrome and Safari require the –webkit- prefix.

More Related