SlideShare una empresa de Scribd logo
1 de 13
Welcome!
Learning CSS From Scratch – Part 2




              @steffbold
Let’s do something from scratch
•   Create a new folder called EAD on your workspace

•   Download the image on this file: http://tinyurl.com/btoxujl
    (make sure it goes inside a folder called images)

•   Download the index.html file (or copy and paste the code
    on a new index.html file you create)

4. Create an external css file (called style.css) on your editor
   (mine is Aptana) save them under EAD folder

•   By now you should have inside your EAD folder:
    - index.html (with some code on it)
    - style.css (without any code on it)
    - images folder with 1 image
<html>
<head>
  <title>Engagement and Wedding Films in California Silicon Valley by EAD Productions</title>
     <link href="style.css" rel="stylesheet" type="text/css">
</head>
 <body>
  <div>
    <h1>Engagement Films & Wedding Films</h1>
    <h2>Interview Style Love Story</h2>
    <p>Below is a sample of a Hollywood interview style video, for the couple who'd love to keep verbal memories</p>
    <h2>Music Video Style Love Story</h2>
    <p>Below is a sample of a Music Video style, for the couple who wants a more romantic video</p>
  </div>
  <div>
    <ul>
       <li><a href="http://eadfilms.com/aboutus.html" title="about us">about us</a></li>
       <li><a href="http://eadfilms.com/services.html" title="services">services</a></li>
       <li><a href="http://eadfilms.com/prices.html" title="prices">prices</a></li>
       <li><a href="http://eadfilms.com/links.html" title="links">links</a></li>
       <li><a href="mailto:s@eadfilms.com" title="contact us">contact us</a></li>
     </ul>
    </div>
     <p>Copyright 2012 EAD Films. All Rights Reserved.</p>
 </body>
</html>
Point your index.html file to your style.css file:

<link href="style.css" rel="stylesheet" type="text/css" />

between </title> and </head>



1. On CSS file: add image to the <body> & style it
                style h1
                style h2
                style p


•   On HTML file: add “page-wrap”
    On CSS file: style #page-wrap
3. On HTML file: add “footer”
   On CSS file: style #footer
                style #footer ul
                style #footer li
                style #footer li a
                style #footer li a:hover


•   On HTML file: add class=“copyright”
    On CSS file: style .copyright


•   On HTML file: add a link to h2
    On CSS file: style h2 a
                 style h2 a:hover
Start a free server on Google App Engine

1. Go to http://python.org/download/
2. Download python for your computer
   (Mac, Windows – check which version you have!)

3. Go here: https://developers.google.com/appengine/
4. Click “Downloads” on the L side
5. Download SDK for Python
6. Sign up: https://developers.google.com/appengine/
7. Create your domain name:




8.   Go to your dashboard
9. Double click on the App Engine on your Desktop:




10.   File / New Application
•     Name your application                8080 is the port that’s under
•     Click “Run”
13.   On your browser go to http://localhost:8080/

14. It should say “Hello world!”
Now let’s change that file to say “Hello CSS Group”

3. Go to the location where you created the file
   Mine is under this path: Users/steffany/learncssyou
1.   Open main.py with your text editor
2.   Find “Hello World” and change it to “Hello CSS Group”
3.   Save it
4.   Go back to localhost:8080 on your browser and refresh the
     page, you should see the changes there

Now let’s deploy it to go live!

8. Go to GoogleAppEngineLauncher on your Desktop
9. Click Deploy


                              The name of the app you created goes here

14. When it’s done, go to http://learncssyou.appspot.com/
if:                  if:




You’re free to go!   Raise your hand
Additional Learning Resources

Free CS101 online class: https://www.coursera.org/course/cs101
Free CS253 online class:
http://www.udacity.com/overview/Course/cs253/CourseRev/apr2012
Class and ID
for any tags you can make a class
class can be repeated
<p class=“copyright”>
the most specific rule overules
css should be
.copyright

id is for one specific element, it is unique and cannot be repeated
<div id=“banner”>
css should be
#banner
                                 what would CSS look like for this class?
<div class="photo">
<img src="holidays.jpg"
alt="Penguins getting frisky"/>
<p>Mom, dad and me on our yearly trip to Antarctica.</p>
</div>



   Demo with validator.w3.org the difference between id and class

Más contenido relacionado

Destacado

Cics cheat sheet
Cics cheat sheetCics cheat sheet
Cics cheat sheet
Rafi Shaik
 
Usee
UseeUsee
Usee
Maria
 
Week 4 Email
Week 4 EmailWeek 4 Email
Week 4 Email
Bei Wu
 
47396377 m2000-operation-guide
47396377 m2000-operation-guide47396377 m2000-operation-guide
47396377 m2000-operation-guide
mahrane trabelsi
 
No le llames rhonda findling
No le llames   rhonda findlingNo le llames   rhonda findling
No le llames rhonda findling
Carmen Mendoza
 
Recipes tried and true (1894 cookbook)
Recipes tried and true (1894 cookbook)Recipes tried and true (1894 cookbook)
Recipes tried and true (1894 cookbook)
Leonardo Vera López
 
Qué significa comida exótica
Qué significa comida exóticaQué significa comida exótica
Qué significa comida exótica
mike041784
 

Destacado (18)

Viny storage—网络游戏数据存储的终极解决方案
Viny storage—网络游戏数据存储的终极解决方案Viny storage—网络游戏数据存储的终极解决方案
Viny storage—网络游戏数据存储的终极解决方案
 
Kwizda magazin 2015.II
Kwizda magazin 2015.IIKwizda magazin 2015.II
Kwizda magazin 2015.II
 
Cics cheat sheet
Cics cheat sheetCics cheat sheet
Cics cheat sheet
 
Twig in symfony
Twig in symfonyTwig in symfony
Twig in symfony
 
LunarTalk Saclay v1.3
LunarTalk Saclay v1.3LunarTalk Saclay v1.3
LunarTalk Saclay v1.3
 
Usee
UseeUsee
Usee
 
Week 4 Email
Week 4 EmailWeek 4 Email
Week 4 Email
 
Madaras szólások
Madaras szólásokMadaras szólások
Madaras szólások
 
EIN PROZENT IST GENUG
EIN PROZENT IST GENUGEIN PROZENT IST GENUG
EIN PROZENT IST GENUG
 
Publishing companies online strategies
Publishing companies online strategiesPublishing companies online strategies
Publishing companies online strategies
 
47396377 m2000-operation-guide
47396377 m2000-operation-guide47396377 m2000-operation-guide
47396377 m2000-operation-guide
 
No le llames rhonda findling
No le llames   rhonda findlingNo le llames   rhonda findling
No le llames rhonda findling
 
Icd 10 volume-3
Icd 10 volume-3Icd 10 volume-3
Icd 10 volume-3
 
Zarf
ZarfZarf
Zarf
 
Recipes tried and true (1894 cookbook)
Recipes tried and true (1894 cookbook)Recipes tried and true (1894 cookbook)
Recipes tried and true (1894 cookbook)
 
Html5 basics
Html5 basicsHtml5 basics
Html5 basics
 
Qué significa comida exótica
Qué significa comida exóticaQué significa comida exótica
Qué significa comida exótica
 
Message Queues in Ruby - An Overview
Message Queues in Ruby - An OverviewMessage Queues in Ruby - An Overview
Message Queues in Ruby - An Overview
 

Más de ecobold

Partnerships & Is Now a Great Time to Buy Real Estate?
Partnerships & Is Now a Great Time to Buy Real Estate?Partnerships & Is Now a Great Time to Buy Real Estate?
Partnerships & Is Now a Great Time to Buy Real Estate?
ecobold
 
Learn CSS From Scratch
Learn CSS From ScratchLearn CSS From Scratch
Learn CSS From Scratch
ecobold
 
Startup 102
Startup 102Startup 102
Startup 102
ecobold
 

Más de ecobold (10)

Partnerships & Is Now a Great Time to Buy Real Estate?
Partnerships & Is Now a Great Time to Buy Real Estate?Partnerships & Is Now a Great Time to Buy Real Estate?
Partnerships & Is Now a Great Time to Buy Real Estate?
 
How to Run the Perfect Demo for Founders
How to Run the Perfect Demo for FoundersHow to Run the Perfect Demo for Founders
How to Run the Perfect Demo for Founders
 
How to Build a Big Data Application: Serverless Edition
How to Build a Big Data Application: Serverless EditionHow to Build a Big Data Application: Serverless Edition
How to Build a Big Data Application: Serverless Edition
 
Is Open Source a Good Strategy for your Startup?
Is Open Source a Good Strategy for your Startup?Is Open Source a Good Strategy for your Startup?
Is Open Source a Good Strategy for your Startup?
 
SaaS Metrics for Startups
SaaS Metrics for StartupsSaaS Metrics for Startups
SaaS Metrics for Startups
 
How to Build a Real Time Analytics Enterprise with Open Source
How to Build a Real Time Analytics Enterprise with Open Source How to Build a Real Time Analytics Enterprise with Open Source
How to Build a Real Time Analytics Enterprise with Open Source
 
Learn CSS From Scratch
Learn CSS From ScratchLearn CSS From Scratch
Learn CSS From Scratch
 
Startup 102
Startup 102Startup 102
Startup 102
 
Ecobold entrepreneurs roundtable ert
Ecobold entrepreneurs roundtable ertEcobold entrepreneurs roundtable ert
Ecobold entrepreneurs roundtable ert
 
Startup 101
Startup 101Startup 101
Startup 101
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

Learn CSS From Scratch - Part 2

  • 1. Welcome! Learning CSS From Scratch – Part 2 @steffbold
  • 2. Let’s do something from scratch • Create a new folder called EAD on your workspace • Download the image on this file: http://tinyurl.com/btoxujl (make sure it goes inside a folder called images) • Download the index.html file (or copy and paste the code on a new index.html file you create) 4. Create an external css file (called style.css) on your editor (mine is Aptana) save them under EAD folder • By now you should have inside your EAD folder: - index.html (with some code on it) - style.css (without any code on it) - images folder with 1 image
  • 3. <html> <head> <title>Engagement and Wedding Films in California Silicon Valley by EAD Productions</title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <div> <h1>Engagement Films & Wedding Films</h1> <h2>Interview Style Love Story</h2> <p>Below is a sample of a Hollywood interview style video, for the couple who'd love to keep verbal memories</p> <h2>Music Video Style Love Story</h2> <p>Below is a sample of a Music Video style, for the couple who wants a more romantic video</p> </div> <div> <ul> <li><a href="http://eadfilms.com/aboutus.html" title="about us">about us</a></li> <li><a href="http://eadfilms.com/services.html" title="services">services</a></li> <li><a href="http://eadfilms.com/prices.html" title="prices">prices</a></li> <li><a href="http://eadfilms.com/links.html" title="links">links</a></li> <li><a href="mailto:s@eadfilms.com" title="contact us">contact us</a></li> </ul> </div> <p>Copyright 2012 EAD Films. All Rights Reserved.</p> </body> </html>
  • 4. Point your index.html file to your style.css file: <link href="style.css" rel="stylesheet" type="text/css" /> between </title> and </head> 1. On CSS file: add image to the <body> & style it style h1 style h2 style p • On HTML file: add “page-wrap” On CSS file: style #page-wrap
  • 5. 3. On HTML file: add “footer” On CSS file: style #footer style #footer ul style #footer li style #footer li a style #footer li a:hover • On HTML file: add class=“copyright” On CSS file: style .copyright • On HTML file: add a link to h2 On CSS file: style h2 a style h2 a:hover
  • 6. Start a free server on Google App Engine 1. Go to http://python.org/download/ 2. Download python for your computer (Mac, Windows – check which version you have!) 3. Go here: https://developers.google.com/appengine/ 4. Click “Downloads” on the L side 5. Download SDK for Python
  • 7. 6. Sign up: https://developers.google.com/appengine/ 7. Create your domain name: 8. Go to your dashboard
  • 8. 9. Double click on the App Engine on your Desktop: 10. File / New Application • Name your application 8080 is the port that’s under • Click “Run” 13. On your browser go to http://localhost:8080/ 14. It should say “Hello world!”
  • 9. Now let’s change that file to say “Hello CSS Group” 3. Go to the location where you created the file Mine is under this path: Users/steffany/learncssyou
  • 10. 1. Open main.py with your text editor 2. Find “Hello World” and change it to “Hello CSS Group” 3. Save it 4. Go back to localhost:8080 on your browser and refresh the page, you should see the changes there Now let’s deploy it to go live! 8. Go to GoogleAppEngineLauncher on your Desktop 9. Click Deploy The name of the app you created goes here 14. When it’s done, go to http://learncssyou.appspot.com/
  • 11. if: if: You’re free to go! Raise your hand
  • 12. Additional Learning Resources Free CS101 online class: https://www.coursera.org/course/cs101 Free CS253 online class: http://www.udacity.com/overview/Course/cs253/CourseRev/apr2012
  • 13. Class and ID for any tags you can make a class class can be repeated <p class=“copyright”> the most specific rule overules css should be .copyright id is for one specific element, it is unique and cannot be repeated <div id=“banner”> css should be #banner what would CSS look like for this class? <div class="photo"> <img src="holidays.jpg" alt="Penguins getting frisky"/> <p>Mom, dad and me on our yearly trip to Antarctica.</p> </div> Demo with validator.w3.org the difference between id and class

Notas del editor

  1. We are following the book “CSS: The Missing Manual” by David Sawyer McFarland Buy the print version here: http://www.amazon.com/CSS-Missing-David-Sawyer-McFarland/dp/0596802447 Buy and download the ebook version here: http://www.ebooks.com/536649/css-the-missing-manual/mcfarland-david/ Before starting, watch this great CSS Beginners tutorial: http://css-tricks.com/video-screencasts/58-html-css-the-very-basics/ This presentation is targeted towards chapter 4-6 which you should’ve read and done the tutorial by now You should also download http://aptana.com/ to work on your files and the tutorials
  2. For more read: http://www.impressivewebs.com/difference-class-id-css/