Positioning Container Elements

Similar documents
Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Web Design for Print Designers WEB DESIGN FOR PRINT DESIGNERS: WEEK 8

Web Design I. Spring 2009 Kevin Cole Gallaudet University

Style & Layout in the web: CSS and Bootstrap

This document will describe how you can create your own, fully responsive. drag and drop template to use in the creator.

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

CSS for Page Layout. Key Concepts

Joomla Article Advanced Topics: Table Layouts

Introduction to Adobe Dreamweaver CC

The Importance of Good Site Organization Good Search Engine Optimization begins with good site organization

WebFOCUS BI Portal: S.I.M.P.L.E. as can be

How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For

Creating and Using Links and Bookmarks in PDF Documents

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

Blueball First Class Sandvox Designs v2.0 Works with Sandvox 2+ only!

Sizmek Features. Wallpaper. Build Guide

Using Style Sheets for Consistency

Working with the new enudge responsive styles

Mobile Web Site Style Guide

WP Popup Magic User Guide

Themes and Templates Manual FOR ADVANCED USERS

Outline of CSS: Cascading Style Sheets

Web Design with CSS and CSS3. Dr. Jan Stelovsky

WP Popup Magic User Guide

Web Design & Development - Tutorial 04

How To Design A Website For The Decs

<Insert Picture Here>

Responsive Web Design for Teachers. Exercise: Building a Responsive Page with the Fluid Grid Layout Feature

Style Guide Provided courtesy of Innovative Emergency Management Inc.

FAQs. How do I remove the search bar completely?

Create a Google Site in DonsApp

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Embedding a Data View dynamic report into an existing web-page

Scoop Hosted Websites. USER MANUAL PART 4: Advanced Features. Phone: scoop@scoopdigital.com.au Website: scoopdigital.com.

HTML Tables. IT 3203 Introduction to Web Development

Have you seen the new TAMUG websites?

CST 150 Web Design I CSS Review - In-Class Lab

SAHARA DIGITAL8 RESPONSIVE MAGENTO THEME

The finalisation of the web design will be based on an indicative homepage design submitted by showpony Advertising.

Create Your own Company s Design Theme

Contents. Downloading the Data Files Centering Page Elements... 6

7 th Annual LiveText Collaboration Conference. Advanced Document Authoring

Distributed Authoring Addendum Uploading Digital Assets

Extended Reference for Freeway 7

SellerDeck 2014 Responsive Design Guide

Website Editor User Guide

In this chapter, you will learn how to...

Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define:

LaGuardia Community College Thomson Ave, Long Island City, New York Created by ISMD s Dept. Training Team. Overview

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

ireview Template Manual

When you create your own web site you will need to get or claim your worldwide address also known as a domain name.

Microsoft Publisher 2010 What s New!

Support Notes (Issue 1) September IGphones. Certificate in Digital Applications (DA105) Coding for the Web

JJY s Joomla 1.5 Template Design Tutorial:

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

Web Design and Development ACS Chapter 9. Page Structure

Principles of Web Design 6 th Edition. Chapter 12 Responsive Web Design

ITNP43: HTML Lecture 4

Web Design and Databases WD: Class 7: HTML and CSS Part 3

Joomla! template Blendvision v 1.0 Customization Manual

SF Developer Guidelines V 9.05 June D3.COM Pty Ltd

SoftChalk. Level 1. University Information Technology Services. Training, SoftChalk Level Outreach, 1 Learning Technologies and Video Production

PASTPERFECT-ONLINE DESIGN GUIDE

Basic tutorial for Dreamweaver CS5

css href title software blog domain HTML div style address img h2 tag maintainingwebpages browser technology login network multimedia font-family

Using Adobe Dreamweaver CS4 (10.0)

Graphic Goodies. Chapter 9. The stars in the sky can hardly compare to

Edline Manual Design Guide Version: September 2011

Edline Manual Design Guide Version: November 2011

Course Project Lab 3 - Creating a Logo (Illustrator)

USER S MANUAL JOOMLA! GOVERNMENT WEB TEMPLATE

How to create pop-up menus

Managing your Joomla! 3 Content Management System (CMS) Website Websites For Small Business

Microsoft Expression Web Quickstart Guide

How to Create a Mobile Responsive Template in ExactTarget

WEB DEVELOPMENT IA & IB (893 & 894)

How to Add a Transparent Flash FLV movie to your Web Page Tutorial by R. Berdan Oct

STATIONERY DESIGN SPECS

Responsive Design Guide. The fundamentals of designing and building mobile optimized

Detailed Ad Specifications Rev. 20/03/2015 Babatunde Akinse

WYSIWYG Editor in Detail

introduces the subject matter, presents clear navigation, is easy to visually scan, and leads to more in-depth content. Additional Resources 10

Advanced Online Media Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

Responsive Web Design: Media Types/Media Queries/Fluid Images

Website Builder Documentation

CSS Techniques: Scrolling gradient over a fixed background

RADFORD UNIVERSITY. Radford.edu. Content Administrator s Guide

Selectors in Action LESSON 3

Editing the Web Template Files

MCH Strategic Data Best Practices Review

Google Sites: Creating, editing, and sharing a site

Creating Fill-able Forms using Acrobat 8.0: Part 1

css href title software blog domain HTML div style address img h2 tag maintainingwebpages browser technology login network multimedia font-family

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

Sponsorship Technical specification

RESPONSIVE DESIGN BY COMMUNIGATOR

Transcription:

Advanced Lesson Group 3 - Element Positioning with CSS Positioning Container Elements The position: style property is used to move block elements to a specific location on the web page. The position style property with the left: and top: style properties which are used to define the element's offset which is how far the element should be moved. The offset values is what is used to position an element on the page. Generally are used to set the left and top offsets, but you can use any standard measurements including s. You can also set a right: and bottom: offset, but they are generally not used as much but are helpful if you want something placed along the right or bottom of the web page such as a sidebar or footer. An element that is positioned on the page should also have a width and height property defined. The position: style property must be defined before the left: and top: properties will become active because the browser needs to know how to handle the rest of the content on the page when something is repositioned. There are four possible values for the position property, but we will only be working with the two most commonly used ones, the relative and absolute positions.

Relative Positioning The relative position property offsets an element from its original position yet still holding the original placement of the element as to not affect the natural flow and placement of the remaining elements on the page. Relative positioning can be used if you want to adjust an element without affecting the remaining elements on the page.

Absolute Positioning The absolute position property completely takes an element out of its natural flow and other elements on the page will act as if the absolute positioned element is not there. The absolute positioned element will be offset from the browser edges. The absolute positioned object will be placed on top of other natural flowing elements on the page, so when positioning elements, you need to make sure that you are not covering up anything important, such as a navigation bar or content. If a parent element has a position of absolute or relative defined, any positioned child containers will remain positioned within the the parent container. If the child container's position is set to absolute, its position will be based off the edges of the parent container. If it is positioned relatively, its position will be based off its natural position within the parent If the parent element does not have a position property applied, the absolute positioned child elements will be based off the edges of the grandparent element if it has a position property defiend, or the body The illustrations below shows how a placed when the parent element does not have a position applied and how it behaves when the parent element does have a position applied. In the left example, the child element is taken out of the parent element, the the right example the child element is positioned inside the parent element because the parent element is also positioned.

The table below provides a short reference for the relative and absolute positioning properties you were just introduced to. Values of position: Property relative absolute Places an object relative to its normal position. The surrounding objects maintain their original positions. Places an object in a specific position on the page relative to the page. The original placement is not held and surrounding objects adjust their positions.

Putting it all together Style definitions that control the sizing and positioning of a container should be written as an ID. IDs are used only once generally to define a specific container element, which might include the size and position of the container. In the ID definition below, the position style property is set to relative, so the container is just being adjusted from it original position. The left edge of the box will be 100 from the left edge of its parent container. The top edge of the box will be 100 from the top of the parent container. The box has been sized to 100 by 100 and given a background color. When applied to the <div> container, the container is sized and moved to its new location. #box { position: relative; left: 100px; top: 100px; height: 100px; width: 100px; background-color: #ccffff; } Once the ID has been defined, it can be applied to the container <div #id="box" > This is the blue box! </div> This is the blue box!

The table below is a consolidated reference to the style properties that are used when creating containers. Any time a container is positioned, it should also include a specific height and width. If the container includes content, the overflow property should also be defined.. Property Description Accepted Values Positioning Properties position top left right bottom width height overflow vertical-align Specifies how content should behave when positioned. (see below) Sets how far the top edge of an element is above or below the top edge of its parent element Specifies the position of the left edge of an Specifies the position of the right edge of an Specifies the position of the bottom edge of an Sizing Properties Specifies the width of a block Specifies height of a block Content Handling Properties Specifies what the content should do that extends beyond its block area. Specifies the vertical alignment of an object within its container. static relative absolute any standard measurement and standard measurement visible hidden scroll baseline, sub super, top text-top, middle bottom, text-bottom length%