Technologies for web publishing Ing. Václav Freylich Lecture 6.

Slides:



Advertisements
Similar presentations
15 LAYOUT Controlling the position of elements Creating site layouts Designing for different sized screens.
Advertisements

Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Cascading Style Sheets
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Today CSS HTML A project.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Very quick intro HTML and CSS. Sample html A Web Title.
Part 5 Introduction to CSS. CSS Display - Block and Inline Elements A block element is an element that takes up the full width available, and has a line.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Unit 20 - Client Side Customisation of Web Pages
Tutorial 4: Creating page layout with css
Tutorial 6 Creating Fixed-Width Layouts
Murach’s ASP.NET 3.5/C#, C5© 2008, Mike Murach & Associates, Inc.Slide 1.
Technologies for web publishing Ing. Václav Freylich Lecture 4.
Technologies for web publishing Ing. Václav Freylich Lecture 6.
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
1 CS428 Web Engineering Lecture 10 Images, Tables, Forms, Border-Radius (CSS – V)
Technologies for web publishing Ing. Václav Freylich Lecture 5.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
CA Professional Web Site Development Class 23 - CSS Positioning, Image Replacement & Print Styles.
Principles of Web Design 6 th Edition Chapter 7 – Page Layouts.
Technologies for web publishing Ing. Václav Freylich Lecture 7.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Technologies for web publishing Ing. Václav Freylich Lecture 3.
WRA HTML & CSS – BUILDING WEBPAGES. TODAY’S AGENDA Review: external stylesheets Review: transforming a list Intro: the object Intro: the.
Moving Boxes The CSS ‘box’ Model and moving elements around the page 1.
Web Design I Spring 2009 Kevin Cole Gallaudet University
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
WEB DEVELOPMENT IMMERSIVE BUILDING PAGE LAYOUTS. 2 Box Model Scaling Positioning Boxes Box Aesthetics HTML 5 Semantic Tags CSS Resets TOPICS GENERAL ASSEMBLYWEB.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
FRACTIONS & SHAPES BY:. How many of these are colored red? * out of *.
CONTROLLING Page layout
Week 5.  Normal document flow  Affecting document flow with float and position properties using CSS  Using these properties to create layouts.
Nesting and Floating. Nesting and Floating Elements To make our page content appear the way we want, and to make the best use of screen space, we can.
Ch 11 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
Positioning, CSS Layout Ing. Jiří Štěpánek.  Positioning = defining elements placement, size and behavior within a page  Important for creating layout.
ACT102 INTRODUCTION TO WEB DESIGN. Content Padding Border Margin.
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
>> CSS Layouts. Recall Properties of Box – Border (style, width, color) – Padding – Margin – Display – Background – Dimension Welcome Padding Area Border.
Cascading Style Sheets for layout
Laying out Elements with CSS
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Cascading Style Sheets Layout
Nesting and Floating.
CSS Layouts: Positioning and Navbars
Fix the CSS syntax errors below
Webpage layout using CSS
Nesting and Floating.
Cascading Style Sheets for layout
Cascading Style Sheets (Layout)
CS3220 Web and Internet Programming Page Layout with CSS
CS3220 Web and Internet Programming Page Layout with CSS
>> CSS Layouts.
6 Layout.
Table CSS Create a new CSS called tablestyle.CSS Green Background
Fixed Positioning.
CS3220 Web and Internet Programming Page Layout with CSS
Nesting and Floating.
Positioning Boxes Using CSS
Presentation transcript:

Technologies for web publishing Ing. Václav Freylich Lecture 6

aTNPW1-6 Content  CSS layouts Flexible three column layout

aTNPW1-6 What is the idea? We want to create the layout with two fixed side columns and one fexible column in the centre. When resize the window the content box size is changed. The header and footer width is changed. The side boxes aren’t changed Menu Header Submenu,voting, news, … Footer Main content box

aTNPW1-6 Four possible situations 1) 3) 2) 4)

aTNPW1-6 Four possible situations 1) and 2) One of the sidebars is longer than the content box 3) Content box is longer than sidebars 4) Content box is shorter than sidebars In all described situations we need to keep the footer at the bottom!

aTNPW1-6 Solution - the floating boxes 1.Mark the boxes with numbers (numbers are the order of boxes in HTML code) 2.The order of the boxes 2 – 4 – 3 is important ! 3.Boxes 2 and 3 are floating !

aTNPW1-6 HTML code Put the boxes into the HTML code according their order Header text Menu items Voting, news, … Main content Footer content

aTNPW1-6 CSS style Create the CSS style definitions #header { width: 100%; height: 50px; background-color: blue;} #menu { width: 150px; height: 350px; background-color: red; float: left; } #right { width: 150px; height: 250px; background-color: yellow; float: right; } #content {color: red;} #footer {clear: both; background-color: green;}