CSS Basics Hide, Move, or Tweak (Almost) Anything in Your Community Sites.

Slides:



Advertisements
Similar presentations
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
CSS Internet Engineering Spring 2014 Bahador Bakhshi CE & IT Department, Amirkabir University of Technology.
Cascading Style Sheets
Cascading Style Sheets
Programming Club IIT Kanpur. Work environment Before you begin coding,always set up your work environment to your needs IDE Notepad++ Sublime Text 2.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Digital Media: Communication and design 2007.
Today CSS HTML A project.
CSS CSS Precise Aesthetic Control. Cascading Style Sheets Though they can be put in HTML header, usually a separate page that the HTML links to Contains.
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.
FORMATTING IN CONTEXT. FOLLOW UPS ANCHOR POINTS MUST BE UNIQUE  If you have more than one, how does it know where to go?  They can be repeated across.
CHAPTER 8 ADVANCED CSS. LEARNING OBJECTIVES Assign formatting styles to a CSS class definition Use a tag’s class attribute to apply the styles defined.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
CSW131 Steven Battilana 1 CSW 131 – Chapter 5 (More) Advanced CSS Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
© 2010, Robert K. Moniot Chapter 5 CSS : Cascading Style Sheets 1.
Chapter 8 Creating Style Sheets.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
MORE Cascading Style Sheets (The Positioning Model)
Trebuchet 44 pt Bold Trebuchet Ital 32 pt. Trebuchet Bold 32 Point Section Header Trebuchet Bold 22 Point Trebuchet 18 Point. Sed ut perspiciatis unde.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Acknowledgments (Arial, 36 points, bold) In this template, acknowledgments are set in Times New Roman, 32 points. Try to keep the acknowledgments to one.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
CSS. HTML: Looking Back HTML dictates order, structure, and function Does very little to specify layout or visual rendering.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
XHTML and CSS. The Browser The browser is not print!
1 Our Business Process Inset your subtitle here. This is a good space for a short subtitle Presentation Sed ut persp iciatis unde om nis iste natus error.
Cascading Style Sheets Level 2. Course Objectives, Session 1 Level 1 Quick Review Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your.
CSS Fun damentals The Document Hierarchy Element Relationships The Box Model.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
CSS (Cascading Style Sheets). CSS CSS – Cascading Style Sheets – Cascade because of the way CSS rules can stack on top of each other. Allows you to add.
WebD Introduction to CSS By Manik Rastogi.
CSS.
Working with Cascading Style Sheets
CSS Layouts: Grouping Elements
Cascading Style Sheets (Layout)
Title of Presentation Goes Here
Fixed Positioning.
MORE Cascading Style Sheets (The Positioning Model)
INSERT YOUR EVENT TITLE HERE
Web Design and Development
Chapter 6 Introducing Cascading Style Sheets
PRESENTATION TITLE (ALL CAPS)
ADD THE COVER TITLE OF THE PRESENTATION
Title Area This is a sample text. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.
Presentation transcript:

CSS Basics Hide, Move, or Tweak (Almost) Anything in Your Community Sites

FireFox browser FireBug Chrome browser Tools We’re going to use

Objectives 1.What is CSS & how it works 2.Live examples 3.Introduction to helpful tools 4.Your questions and real-life examples

Methodology YES Getting things done Good enough Fundamentals and building blocks NO Reinventing the wheel Pixel-perfect across every browser ever invented Definitive resource for all CSS

Cascading Style Sheets What is CSS? #Logo{ display:none; }.breadcrumb{ float:left; }.MPContentAreaHome #PrinterFriendly{ display:none; }.HLLandingControl ul li { border-bottom: none; list-style-type: disc; margin-bottom: 0px; padding-bottom: 0px; } Tells the web browser how the web page should look. What does CSS do?

HTML Anatomy & Terminology HTML STUFF... First heading My first paragraph. another paragraph...HTML STUFF Elements Tags …… Attributes Nesting Parent, child, sibling, descendent

CSS Anatomy & Terminology div{ Padding:10px 5px; } p{ Color: #f00; font-size: 16px; }.HLLandingControl ul li { border-bottom: none; list-style-type: disc; margin-bottom: 0px; padding-bottom: 0px; }

Every HTML element on the web is a rectangular box. Components of a box: Content Padding Border Margin Different elements have different default box styles. CSS let’s us control the characteristics of each box. The Box Model Content Padding Border Margin

From general to specific Tags – p – selects all elements with this tag. Class –.className – selects all elements with this class. ID – #idName – selects element with this ID. Combine the items above to select descendents Selectors HTML STUFF... First heading My first paragraph. paragraph...HTML STUFF

FireFox FireBug Chrome Notepad (or text editor or choice) JSFiddle Tools to help you get things done

Comment everything Keeping things organized /*=== GENERAL === */ #Logo{ display:none; }.breadcrumb{ float:left; } /*=== REMOVE PRINT FROM HOMEPAGE === */.MPContentAreaHome #PrinterFriendly{ display:none; } /*=== REMOVE HOEMPAGE LIST FORMAT=== */.HLLandingControl ul li { border-bottom: none; list-style-type: disc; margin-bottom: 0px; padding-bottom: 0px; } Not messing up your site Make a backup of your site and CSS for some trial and error.

Most commonly requested and used CSS trick in the HUG discussions. Easy to do. #Element2{ display:none; } Hiding elements Element 1 Element 2 Element 3 Element 4 Element 1 Element 3 Element 4

Increasing the padding or margin between items to nudge elements. Set the CSS Position property and then specify the elements new location. Moving elements on the page P{ position:relative; left:20px; top:20px; } 20px

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore VERITATIS ET QUASI ARCHITECTO dicta sunt explicabo. Overriding existing CSS Font (font-family) Size (font-size) Bold (font-weight) Spacing (line-height) Case (text-transform) Color (color) Tweaking elements Use !important to override inline CSS style.

Q&A and real-life examples More examples? What would you like to learn more about? Is there something specific on your site you’d like to change?

Resources & tools CSS & HTML fundamentals learn.shayhowe.com/html-css/ learn.shayhowe.com/html-css/ Mozilla CSS school JSFiddle to test out CSS Create CSS buttons FireBug Other HL sites Use FireBug-like tools to see under the hood of other websites HUG Me (Justin Prevatte) or Message me on HUG if you have a question and I’ll do my best to help out.

Justin Prevatte Contact Info HUG Profile Link