Multiple Columns By Derek Peacock

Slides:



Advertisements
Similar presentations
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Advertisements

Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
New Semantic Elements (Part 2)
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
Using HTML Tables.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
Updated on: September 4, 2010 CIS67 Foundations for Creating Web Pages Professor Al Fichera.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Eat Your Words! Creating webpage Layout. CONTENT The Layout of a Webpage HEADER FOOTER Each of these sections represents a ‘div’ (or divider). By linking.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
1 TECH1001 Lecture 6 Electronic Publishing and Production 1 More About Tables.
INFO1300 LAB7 OCT.11TH RESPONSIVE DESIGN. WHAT IS RESPONSIVE WEB DESIGN A mix of flexible grids and layouts, images and an intelligent use of CSS media.
CIT 256 CSS Intro & Dreamweaver Built-in Layouts Dr. Beryl Hoffman.
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
Web Page Tables GMU-Teaching with Technology. Table Characteristics: Looks like a news page Contains columns and rows.
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
A gentle introduction to Bootstrap MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/18/
HTML LAYOUTS. CONTENTS Layouts Example Layout Using Element Example Using Table Example Output Summary Exercise.
What is CSS? A set of style rules that tell the web browser how to present a web page or document. – In earlier versions of HTML, style characteristics,
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
THE IDEA CSS Framework Enables developers to rapidly prototype designs Do all the heavy lifting allowing you to get faster results Examples:
Cascading Style Sheets for layout
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
CNIT131 Internet Basics & Beginning HTML
Designing a Web Page with Tables
CNIT 131 HTML5 - Tables.
>> Navigation and Layouts in CSS
Implementing Responsive Design
HTML5 Level II Session V Chapter 8 - How to Use Responsive Web Design (RWD)
Front-End Framework for Responsive Web Sites
Working with Tables: Module A: Table Basics
Concepts for fluid layout
Positioning Objects with CSS and Tables
Tables and Frames.
LAB Work 02 MBA 61062: E-Commerce
Cascading Style Sheets for layout
Introduction to web design discussing which languages is used for website designing
Bootstrap Topics What is bootstrap? Documentation
Objectives Create a reset style sheet Explore page layout designs
Styles and the Box Model
Using HTML Tables SWBAT: - create tables using HTML
Chapter 8 - How to Use Responsive Web Design (RWD)
Responsive Web Design and Bootstrap
New Semantic Elements (Part 3)
New Semantic Elements (Part 2)
Responsive Web Design and Bootstrap
Computer communications
Web Client Side Technologies Raneem Qaddoura
CSS Layout: Flexbox.
Web Client Side Technologies Raneem Qaddoura
Concepts for fluid layout
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Web Client Side Technologies Raneem Qaddoura
Positioning Objects with CSS and Tables
Introduction to Styling
How to add a photo gallery in html/css
Presentation transcript:

Multiple Columns By Derek Peacock 30 June, 2019 CSS & Multiple Columns By Derek Peacock A short guide to creating multiple columns using the OOCSS style sheet Derek Peacock

CSS Fluid Grid Frameworks Multiple Columns 30 June, 2019 CSS Fluid Grid Frameworks Columnal: 12 Columns, with sub-columns, based on 1140px total width. Ideal for rapid prototyping or wireframing. Less Framework: Uses media queries to provide 4 layouts with 3 typography. Skeleton.gs: A system based on 960px and 12 columns, uses media queries. Responsive.gs: Simple and uses media queries to offer 12, 16 or 24 columns A variety of systems have been devised in CSS for creating web pages with multiple columns. Most are based on a fixed with such as 960Grid. If however your aim is to create fluid web pages then as system based on percentages rather than pixels is better. Most of these systems have not taken advantage of HTML5 yet. Derek Peacock

Multiple Columns 30 June, 2019 Responsive.gs @media ( min-width : 768px ) { .span_1 { width: 8.33333333333%; } .span_2 { width: 16.6666666667%; } .span_3 { width: 25%; } .span_4 { width: 33.3333333333%; } .span_5 { width: 41.6666666667%; } .span_6 { width: 50%; } .span_7 { width: 58.3333333333%; } .span_8 { width: 66.6666666667%; } .span_9 { width: 75%; } .span_10 { width: 83.3333333333%; } .span_11 { width: 91.6666666667%; } .span_12 { width: 100%; } } Column width are all defined as percentages so will work with any overall width greater than 756px. The actual width needs changing in the container class. Gutters are optionally available. Derek Peacock

Responsive.gs Notes Replace container ID with container class Set total width in container class Has built in version of clearfix. Columns need a minimum width of 768px Has javascript polyfills for older browsers that do not support @media queries Link style sheet as last sheet Link in the javascript polyfills if needed.

Sidebars: <aside> Multiple Columns 30 June, 2019 Sidebars: <aside> If more than one row separate divs <div class=“container row"> <aside class=“col span_2"> <h2>Side Content</h2> <p> Lorem ipsum dolor sit … </p> </aside> <section class=“col span_10"> <h2>The Main Page Content</h2> </section> </div> Attach the reponsive-gs-12col.css style sheet, and then add a section to the web page. To turn this section into a row (like a row in a table) add the class= “row” to the section tag. In this case we are creating two columns in the row, a sidebar using the <aside> tag, and the main contents using another <section> Each column apart from the last needs to have the col class attached. In order to set the size of each column in this case the first column also has the span_2 class attached, and the second column has the span_10 class attached. Thus the first column will be 16.67% the width of its container, and the second column will be 83.33% the width. Derek Peacock

2 Column Page Multiple Columns 30 June, 2019 The end result looks as shown above. Derek Peacock

Multiple Columns 30 June, 2019 3 Column Page <section class="row"> <aside class=“col span_2"> <h2>Side Content</h2> </aside> <section class=“col span_8"> <h2>The Main Page</h2> </section> In this example a third column has been added using a second <aside> tag. The two asides are set to span_2 (16.67%) and the middle column is set to span_8 (66.67%) Derek Peacock

3 Column Page Multiple Columns 30 June, 2019 The result of setting three columns is shown above. Derek Peacock

Multiple Columns 30 June, 2019 Picture Gallery <section class="row"> <article class=“col span_3"> <figure> <img src="PlaceHolder.png"> <figcaption>This is ...</figcaption> </figure> </article> ... </section> In this example four <article> tags have been used with each one set to size1of4. Inside each article is a figure inside the figure is an image or photo. The two inside articles are not shonw in the slide. To create a photo gallery many rows can be added. Derek Peacock

Picture Gallery Multiple Columns 30 June, 2019 This slide shows the result of adding two rows of four articles each of which has one photo in a figure with a caption. Derek Peacock

Fluid Images Prepare images to maximum display size Add images to the HTML without any size specified Add CSS to control maximum and proportional size.

Browser View

Using Classes

Multiple Columns 30 June, 2019 Colour Palettes Color Scheme Designer: 6 schemes with control on saturation and brightness Selecting a colour scheme for a web site is not easy. There are however web sites whose sole purpose is to assist in that process. After selecting a scheme the web sites allow you to view the result as shown on the next slide. Derek Peacock

Using the Palette

Example Page: Complement Multiple Columns 30 June, 2019 Example Page: Complement The result of selecting a colour scheme using the Color Scheme Designer web site. Derek Peacock