How to Control and Override CSS by Including a CSS Link

Similar documents
How to Manage Left Navigation Menus and Breadcrumbs in OU

Using Dreamweaver CS6

Objective % Select and utilize tools to design and develop websites.

CAL 9-2: Café Soylent Green Chapter 12

Using.htaccess to Restrict Access to OU Directories

Creating and Publishing Faculty Webpages

OU Campus Training. Part 1

The Structure of the Web. Jim and Matthew

Café Soylent Green Chapter 12

End-User Reference Guide Troy University OU Campus Version 10

SECTION 1 - File Conversion (RECOMMENDED METHOD)

WEB CREATOR FILE MANAGER

Dreamweaver CS6. Table of Contents. Setting up a site in Dreamweaver! 2. Templates! 3. Using a Template! 3. Save the template! 4. Views!

Beginner Workshop Activity Guide 2012 User Conference

TYPO3 Editing Guide Contents

SchoolPointe Administration Department User Guide

Dreamweaver CS 5.5. University Information Technology Services. Training, Outreach, Learning Technologies, and Video Production

OU Campus Training. Part 2

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Dreamweaver MX Overview. Maintaining a Web Site

Poet Image Description Tool: Step-by-step Guide

Guidelines for uploading and downloading documents through Logicaldoc

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

AURUM Metro Navigation

Evoq 8 Content Managers Training Manual

Ektron Advanced. Learning Objectives. Getting Started

Using Dreamweaver. 6 Styles in Websites. 1. Linked or Imported Stylesheets. 2. Embedded Styles. 3. Inline Styles

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

How to setup a Zoom Meeting - Shared Cluster Accounts

Exercises Advanced Workshop Using Roxen Content Management System. Editing exercises using sandbox version of Roxen 4.5 site

Cascading Style Sheets Level 2

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Dreamweaver MX The Basics

Search Application User Guide

MyPermitNow.org. Search Permits. page 5. Click to Search Permits from the left navigation.

Lesson 5 Introduction to Cascading Style Sheets

Create a CommonSpot Account Log On to Commonspot View and Work Modes in Commonspot CommonSpot Menu Bars... 3

Eng 110, Spring Week 03 Lab02- Dreamwaver Session

Dreamweaver MX 2004 Introduction

ACA Dreamweaver Exam Notes

2. Write style rules for how you d like certain elements to look.

AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES. INSTALLING FONTS :: Download, Install, & Embed Your Fonts. LECTURE :: Responsive Web Design [RWD]

How to Edit Your Website

How to lay out a web page with CSS

Assignments (4) Assessment as per Schedule (2)

What is OU Campus? Log into OU Campus

Dreamweaver Basics Outline

Café Soylent Green Chapter 12

Methods for configuring Cascading Style Sheets. Applying style to element name selectors. Style Rule Basics. CMPT 165: Cascading Style Sheets

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

Learning Adobe DreamWeaver CC. Module 1 Contents. Chapter 1: Introduction to DreamWeaver CC

EKTRON 101: THE BASICS

Student Electronic Cumulative Files

Adobe Dreamweaver CS4

CSS (Cascading Style Sheets)

Title and Modify Page Properties

OU Campus VERSION 10

RoboHelp HTML Training

IBM Forms V8.0 Custom Themes IBM Corporation

Page 1 of 9. Double click the edoc Uploader icon from your desktop or, if it's not on your desktop, from the All Programs menu system.

Site Owners: Cascade Basics. May 2017

WEBSITE USER GUIDE V.4

Guidelines for doing the short exercises

Document Manager User Guide

LEVEL 1 Site Administrator Grants permissions and manages access, manages main homepage.

Log On to Commonspot Adobe Acrobat Pro Microsoft Accessibility Checker Hero Image with Text... 6

OU Campus VERSION 10

Dreamweaver Basics. Planning your website Organize site structure Plan site design & navigation Gather your assets

Everything in red on the screenshots has been added for the purpose of this user guide and is the context for the words around it.

Cascade User Guide. Introduction. Key System Features. User Interface

Gradebook Entering, Sorting, and Filtering Student Scores March 10, 2017

MRK260. Week Two. Graphic and Web Design

GENERAL TEMPLATE AREAS

Broken Pages. Overview

Head First HTML 5 Programming: Chapter 3: Events, Handlers, and all that Jazz.

Hello, and welcome to the Alexicomtech tutorial. I will show you step by step how to set up your interactive pages. Please feel free to ask questions

This presentation, titled Uploading Files with the Ext File Content Type is another installment in the series of training modules instructing faculty

CSS - Cascading Style Sheets

CS Multimedia and Communications REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB!

Website Management with the CMS

USING JOOMLA LEVEL 3 (BACK END) OVERVIEW AUDIENCE LEVEL 3 USERS

How to lay out a web page with CSS

Joomla! 2.5.x Training Manual

HOW TO USE THE CONTENT MANAGEMENT SYSTEM (CMS) TABLE OF CONTENTS

CMS Shado 9. Quick Start Guide

How to Customize Support Portals

Adobe Dreamweaver CS5/6: Learning the Tools

GDES218 Graphic Design for the Web

An Introduction to Box.com

PRESENCE. RadEditor Guide. SchoolMessenger 100 Enterprise Way, Suite A-300 Scotts Valley, CA

Navigation. Websites need a formalized system of links to allow users to navigate the site

Wolf. Responsive Website Designer. Mac Edition User Guide

File Cabinet Manager

Joomla 2.5 Kunena Component Installation

Creating Reports. Library Trend: 2. Ranking Report: 2. Managing Reports 3. Creating a New Report 3. Report Options 4

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step.

Open Source Digitalization Application. Installation Manual

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

Training Manual and Help File

Transcription:

How to Control and Override CSS by Including a CSS Link Using CSS Includes User Documentation for OU By Lucero, 6-25-2014 CSS styles and definitions can be overwritten and subsequently controlled and defined by including a local style sheet. Here are a few things to keep in mind when handling CSS: The default out of the box styles automatically cascade down from a style sheet located in the www directory. This style sheet is included automatically in the site upon site creation and is in effect. Always remember, as it relates to CSS development, Last in, wins, meaning that if the same element is defined across multiple style sheets, the last style definition for any particular element as it is declared in order by link reference, local style definition on the web page, span tag, or inline style attribute in that web page is the one that will display. A user can see which CSS elements are overwritten by opening a webpage in a browser, right clicking on an element on the page, and then Inspecting Element. The CSS styles will show in the bottom right cell of the browser, and any styles that have a line through them means that particular style has been overwritten and is no longer affecting the element. In the screenshot below, a user can see that the My Home

element in <h1> tags is the element that is being inspected. Furthermore, in the bottom right hand cell, the inspector shows that the <h1> tag is being defined by the test.css file. The list of CSS definitions (and file locations) in the right bottom cell that define the <h1> tag show the definitions in the order of last in to first in, so it does make sense to see that <h1> definitions are crossed out (and no longer affecting the display on that element) as they are listed below the definition that is coming from the test.css file. Remember that last in wins and test.css is declared after the main www style.css file is being called, which can also be verified by choosing to view source and then looking at the <head> section of the web page. The uark-style.css file is called on line 24 and the test.css file is called on line 33. Keeping the above bullet points in mind, in order to place custom CSS styles into a website or override the currently defined styles, a user must: 1) Upload a CSS file that contains definitions for elements 2) Link to the CSS file in the _site-headcode.inc file In order to upload a CSS file, do the following: 1) Create a CSS file on your desktop and name it with any combination of lowercase letters, numbers, and/or dashes. This file will not have the <style></style> tags in the

contents of it, but ONLY the definitions for the elements. So, in the above example, if the source is viewed of test.css, this is what the contents of that file is (notice no <style> or </style> tags present) : h1 { } color: #CC3300; 2) Login to the CMS and go to your website. Make sure you are at the root or home directory of your website. You can do this by selecting Pages from the top nav link, Content and then by subsequently clicking the house icon that displays over the file and folder listing. 3) Navigate to the folder, _resources, and then to the css folder. If the css folder doesn t exist, a user can create that by clicking on the dropdown arrow on the right side of the +New green button at the top right of the webpage while in the _resources directory,

then select Folder, and fill in the form, taking note of what the name of the folder is, which should be for this case, css. 4) Click on the css folder, and then click on the Upload button, which is the icon that looks like a green arrow pointing up, and located right next to the green +New button. Click the gray Add Files button in the modal window and select the CSS file that you created on your desktop, and finally, click the blue Start Upload button in the bottom right corner of the modal window. 5) Check out the newly uploaded CSS file and then publish it to production.

6) If the user had to create the css folder, then email lucero@uark.edu with a request to publish the css folder to production. Please be sure to give the URL or site name in the request. Now, link to the new CSS file: 1) While in the CMS on your website, click Pages from the top nav link, Content, and then go to the house icon for home or root directory. 2) The user should then see a file called, _site-headcode.inc. Check out this file, and hover over to the right link, Edit, and then click Source,

and add (append) the following line at the end of the file (given that the directory name, location or filepath, and CSS filename are what is indicated below. If not, point to the correct filepath): <link href="_resources/css/test.css" rel="stylesheet" /> 3) Save the file, _site-headcode.inc, and then publish it to production.

4) Upon refreshing your web page(s) in your browser, you should see the elements now being affected by the new CSS file. If your new CSS is not displaying, go back and be sure that you have published all the newly files and that the file path of your new CSS file is correct when making that link declaration in the file, _siteheadcode.inc.