<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://ps.wdka.nl/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Justgerrardz</id>
	<title>Publication Station - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://ps.wdka.nl/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Justgerrardz"/>
	<link rel="alternate" type="text/html" href="https://ps.wdka.nl/wiki/Special:Contributions/Justgerrardz"/>
	<updated>2026-06-02T04:59:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://ps.wdka.nl/wiki/index.php?title=Courses/Design_%26_Technique-Essential_Web_Design/03&amp;diff=6745</id>
		<title>Courses/Design &amp; Technique-Essential Web Design/03</title>
		<link rel="alternate" type="text/html" href="https://ps.wdka.nl/wiki/index.php?title=Courses/Design_%26_Technique-Essential_Web_Design/03&amp;diff=6745"/>
		<updated>2017-09-13T04:07:20Z</updated>

		<summary type="html">&lt;p&gt;Justgerrardz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Styling your Web page with CSS=&lt;br /&gt;
&lt;br /&gt;
==CSS - Cascading Style Sheets ==&lt;br /&gt;
HTML is not meant to style (inline syling eg: &amp;lt;pre&amp;gt;&amp;lt;h1 style=&amp;quot;color:red;background:black&amp;gt;&amp;lt;/pre&amp;gt; is old fashion and discouraged).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSS is the preferred to way to style.&#039;&#039;&#039;&lt;br /&gt;
* HTML tell the browser what content it should display&lt;br /&gt;
* CSS tells the browser &#039;&#039;&#039;how to display&#039;&#039;&#039; that content.&lt;br /&gt;
&lt;br /&gt;
==CSS inside an HTML page==&lt;br /&gt;
* CSS code goes &#039;&#039;&#039;inside the style tags&#039;&#039;&#039; &amp;lt;code&amp;gt;&amp;lt;style&amp;gt; ... &amp;lt;/style&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*  &amp;lt;code&amp;gt;&amp;lt;style&amp;gt; ... &amp;lt;/style&amp;gt;&amp;lt;/code&amp;gt; tags are &#039;&#039;&#039;placed inside the head&#039;&#039;&#039; of the HTML page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     body{&lt;br /&gt;
            background: #FF19DC;&lt;br /&gt;
	    color: black;&lt;br /&gt;
	    font-family: mono;&lt;br /&gt;
			        }&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;/style&amp;gt;&lt;br /&gt;
   &amp;lt;/head&amp;gt;&lt;br /&gt;
   &amp;lt;/html&amp;gt;&lt;br /&gt;
   &amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&lt;br /&gt;
   &amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== anatomy of a css rule ==&lt;br /&gt;
Each CSS style sheet (all the styles of a page) is made of several rules.&lt;br /&gt;
&lt;br /&gt;
Each &#039;&#039;&#039;rule&#039;&#039;&#039; follows the syntax:&lt;br /&gt;
&lt;br /&gt;
[[File:Basic-Anatomy-of-a-CSS-Rule1.png|600px|]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;Source: http://dabrook.org/resources/posters/&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example of a CSS rule==&lt;br /&gt;
* &#039;&#039;&#039;element&#039;&#039;&#039;: what element(s) is being styled e.g. &#039;&#039;div&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;property&#039;&#039;&#039;: what property of that element is being styled e.g. &#039;&#039;color&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;value&#039;&#039;&#039;: how the property is styled e.g. &#039;&#039;white&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
div {&lt;br /&gt;
      background: blue;&lt;br /&gt;
      color: white;&lt;br /&gt;
      width: 500px;&lt;br /&gt;
      height: 250px;&lt;br /&gt;
      font-size:30pt;&lt;br /&gt;
	         }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here we are styling all the div elements in the html page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CSS Properties==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSS Property reference&#039;&#039;&#039; https://developer.mozilla.org/en-US/docs/Web/CSS/Reference&lt;br /&gt;
&lt;br /&gt;
Some properties.&lt;br /&gt;
* color, background-color, width, height&lt;br /&gt;
* border, box-shadow, list-style&lt;br /&gt;
* margin, padding&lt;br /&gt;
* [https://developer.mozilla.org/en-US/docs/Web/CSS/transform transform], gradient, border-radius&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use some of these properties, and others that you discover in your page.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Inspecting a page=&lt;br /&gt;
The browser (Chrome and Firefox) offer the possibility of inspecting a page with the option &#039;&#039;&#039;Inspect Element&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
This possibility allows for prototyping (changing and seeing immediately the result ) a page&#039;s CSS and HTML.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keep in mind that this changes WILL NOT be saved. &lt;br /&gt;
To do so you need to copy them to the editor and save them. &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=id and class attributes=&lt;br /&gt;
Two of the most used attributes in HTML is id and class.&lt;br /&gt;
&lt;br /&gt;
They are important to distinguish and group different elements. And become particularly important in CSS styling.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;id (#) is used to &#039;distinguish&#039;&#039; tags&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;class (.)&#039;&#039;&#039; is used to &#039;&#039;group&#039;&#039; tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==id==&lt;br /&gt;
* &#039;&#039;&#039;id (#) is used to &#039;distinguish&#039;&#039; tags&#039;&#039;&#039;&lt;br /&gt;
* the same id cannot be repeated in the same file. Use only once.&lt;br /&gt;
* The symbol for id is: &#039;&#039;&#039;&amp;lt;code&amp;gt;#&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
p { color: black;&lt;br /&gt;
    font-weight: bold;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
p#special{ color: red;&lt;br /&gt;
           font-weight: normal;&lt;br /&gt;
           transform: matrix(1.0, 2.0, 3.0, 4.0, 5.0, 6.0);&lt;br /&gt;
	}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;p id=&amp;quot;special&amp;quot;&amp;gt;I am specific paragraph with id=&amp;quot;special&amp;quot; &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Just another paragraph under the tag p .&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Another one of the same tag p, without id.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only the paragraph with id=&amp;quot;special&amp;quot; will be effected by the rule above &amp;lt;code&amp;gt;p#special&amp;lt;/code&amp;gt;: red, normal weight, transform. The remaining paragraphs are only affect by the rule &amp;lt;code&amp;gt;p {...}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==class==&lt;br /&gt;
* &#039;&#039;&#039;class (.)&#039;&#039;&#039; is used to &#039;&#039;group&#039;&#039; different tags&#039;&#039;&#039; - They become styled by same CSS rule &lt;br /&gt;
* class can be used INFINITE TIMES in a file&lt;br /&gt;
* The symbol for class is: &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
p {&lt;br /&gt;
       color: black;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
.text{ color: black;&lt;br /&gt;
       font-weight: italic ;&lt;br /&gt;
       background: #003366;&lt;br /&gt;
       color: white;&lt;br /&gt;
		 }&lt;br /&gt;
&lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;div class=&amp;quot;text&amp;quot;&amp;gt;This is a div tag&amp;lt;/div&amp;gt;&lt;br /&gt;
       &amp;lt;span class=&amp;quot;text&amp;quot;&amp;gt;This is a span tag&amp;lt;/span&amp;gt;&lt;br /&gt;
       &amp;lt;p class=&amp;quot;text&amp;quot;&amp;gt;and this is a p tag&amp;lt;/p&amp;gt;&lt;br /&gt;
       &amp;lt;p&amp;gt;Notice how all the above tags with class=&amp;quot;text&amp;quot; are styled the same way.&amp;lt;/p&amp;gt;&lt;br /&gt;
       &amp;lt;p&amp;gt;These 2 last tags, on the other hand have NOT class=&amp;quot;text&amp;quot;, and therefore remain are not affected by the CSS rule&amp;lt;/p&amp;gt;&lt;br /&gt;
       &amp;lt;p&amp;gt;Also notice how 3 different tags can look the same if they share the same class &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
= a separate CSS file  =&lt;br /&gt;
The CSS for a HTML page (or several pages) can stored outside that page, in &#039;&#039;&#039;css file.&lt;br /&gt;
&lt;br /&gt;
To do that we need link the HTML file to the CSS file, using the tag link inside the html head.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;link href=&amp;quot;style.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&lt;br /&gt;
  &amp;lt;link href=&amp;quot;style.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
  ....&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=homework=&lt;br /&gt;
Apply CSS to the content of your weblog&lt;br /&gt;
&lt;br /&gt;
* Make each entry (past or future) in your weblog will be wrapped inside a div&lt;br /&gt;
* Give each entry div an unique id; and a common class. E.g &amp;lt;code&amp;gt;&amp;lt;div id=&amp;quot;entry01&amp;quot; class=&amp;quot;weblog&amp;quot;&amp;gt;&lt;br /&gt;
....&amp;lt;/div&amp;gt;&amp;lt;/code&amp;gt;*&lt;br /&gt;
* Style each entry differently&lt;br /&gt;
* ADD content&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Online Resources on CSS =&lt;br /&gt;
* CSS Property reference https://developer.mozilla.org/en-US/docs/Web/CSS/Reference&lt;br /&gt;
* Lynda.com CSS-Selectors (Part 1) http://www.lynda.com/CSS-tutorials/CSS-Selectors/192036-2.html?org=hr.nl&lt;br /&gt;
* Lynda.com CSS Gradients (Part2,3) http://www.lynda.com/CSS-tutorials/Exploring-linear-syntax/115467/122823-4.html&lt;br /&gt;
* http://www.w3.org/Style/Examples/007/center.en.html&lt;br /&gt;
* [http://www.papdan.com/services/web-design/ Melbourne Web Designer]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Art works, making heavy use of CSS =&lt;br /&gt;
Florian Cramer &#039;&#039;Local Impro Snodge &#039;&#039; http://cramer.pleintekst.nl/deplayer-impro-snodge/ - essencially gifs and CSS&lt;/div&gt;</summary>
		<author><name>Justgerrardz</name></author>
	</entry>
</feed>