web presentation (css) for layout - course-documentation · usenet: read usenet discussion groups...

10
Web Presentation (CSS) for Layout

Upload: others

Post on 03-May-2020

29 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,

Web Presentation (CSS)for Layout

Page 2: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,

History of Webpage Layout

• The World Wide Web: system of sharing “documents” …remember: academic research papers!• No need for columnar layouts• Tables (for tabular data)• Floats (for pushing images left or right and having text wrap around)

• No concept of…• Banners• Navigation bars• Sidebars• Headers, footers, et cetera

Page 3: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,

The Beginnings of Columnar layout

A columnar layout is any layout where some of the content is positioned side-by-side

How to pull this off?

Page 4: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,
Page 5: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,
Page 6: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,
Page 7: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,
Page 8: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,

NY Times Snowfall• 2013• Long scrolly pages• Fixed navigation• Viewport-wide

background video• Behaviors-on-scroll• Parallax

Page 9: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,

"Contatined" Content

.container {

margin: 0 auto;

width: 90%;

max-width: 960px;}

<body>

<div class="container">Hello World!

</div><!--.container-->

</body>

HTML

CSS

Page 10: Web Presentation (CSS) for Layout - course-documentation · USENET: Read USENET discussion groups right from our home page. Use our custom search program to find discussions of interest,

Header

Navigation

Footer

ContentSidebar

The Classic “C-clamp”

All content “constrained” to stay in the middle of the viewport

History of web page layout0. natural document flow (HTML)1.table (HTML)2.float (CSS)3.inline-block (CSS)4.table (CSS)5.flex (CSS)6.grid (CSS) (new in 2017)

These use the CSS “display:” property