SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Tutorial 1B
Finishing our website in Komodo Edit
Step 1A:
You MUST have access to the folder called “dropsite” which I have provided.
Please put the folder on your external drive.
Within the “dropsite” folder, there should be another folder called “img”.
Witin the “img” folder there should be 4 images:

bkg.gif

coffee.gif

logo.gif

tower.png
Step 2:
Open Komodo Edit & open your
index.html and styles.css files.
1       Step 3:
        Make sure you are on the tab for
        index.html

        1. Click on the Globe icon, this is
        the Preview option.

    2   2. A dialogue box will
        appear, Select:
        “Preview with this file.”
        Under Preview Using field, select
        “In a Komodo Tab”

        This will give you a preview of
        your document within Komodo.
At this point your site should look like this:
Step 4:
Go to the index.html tab
We’re going to add the tower div INSIDE the #coffeeinfo div
After the Lorem ipsum text type:

…vestibulum ultrices.

<div id="tower">
    <img src="img/tower.png"/>
</div>

Save the file to apply this change.
Step 5:
Go to the styles.css tab
Now we’re going to add position: relative; to #coffeeInfo
Because a page element with relative positioning gives you the control to absolutely
position children elements inside of it.

#coffeeInfo{
    height: 226px;
    width: 448px;
    border: 3px #13A8A2 solid;
    padding: 12px 80px 12px 12px;
    float: right;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    margin-right: 20px;
    position: relative;
}

Save the file to apply this change.




Tip: In CSS a parent element is an element that contains other elements. All
elements that are contained within that parent are called "child" elements.
http://webdesign.about.com/cs/css/qt/tipcsschild.htm
Step 6:
Now let’s style the #tower div.

#tower{
    position: absolute;
    top: 70px;
    right: -20px;
}

Save the file to apply this change.

Voilà!                                70px



                                      -20px
Step 7:
Make a functioning menu in index.html
Under the logo div create a div with the id nav.
Create an unordered list, with list items that will
be the names of our pages. Then give each list
item an anchor tag to the corresponding html
page (which we will create later).

<div id="nav">
    <ul>
         <li class="menu"><a   href="index.html">Home</a></li>
         <li class="menu"><a   href="coffee.html">Specialty Coffee</a></li>
         <li class="menu"><a   href="cafe.html">Cafe</a></li>
         <li class="menu"><a   href="about.html">About</a></li>
    </ul>
</div>


Save the file to apply this change.
Step 8:
Go to styles.css

1. IMPORTANT: Add position: relative; to #content – so that when we absolutely position
   #nav it will be position relative to the #content div & not the <body>

Then style the #nav div.

#nav{
    width: 520px;
    height: 50px;
    border-bottom: 14px solid #13a8a2;
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
}

Save the file to apply this change.
Step 9:
Go to styles.css

Then style the ul in the #nav div to float right.

#nav ul{
    float: right;
}

Save the file to apply this change.
Step 10:
Now style the links by starting with the li.
Notice we are styling the li’s using the menu class.
The . signifies that we are styling a class.
Why are we using a class instead of an id?
Because we are styling multiple occurrences of an
element on the same page.

#nav li.menu {
    display: block;
    float: left;
    height: 40px;
}
                                                       li   li   li   li



Notice that the li is the child
and #nav is the parent.

In essence this code is saying,

“In the instance of the element
with the id of nav, all instances of li
that have the class of menu will
have these following attributes.”
Step 11:
Let’s give our links some room to b r e a t h e
and get rid of the underline.

#nav li.menu a {
    text-decoration: none;
    padding-left: 30px;
    font-weight: bold;
}

                                                  30px   30px   30px   30px
Save the file to apply this change.

TIP:
By default the browser puts an
underline underneath links to
show that it is a link.
Browsers also have a default
ACTIVE color, HOVER color and
VISITED color.
Step 12:
Now let’s style the default colors and create a
rollover effect when we hover over the link.

#nav li.menu a:link, #nav li.menu a:visited       {
    color: #000;
}

#nav li.menu a:active, #nav li.menu
a:hover, #nav li.menu a:focus {
    color: #13A8A2;
}



Save the file to apply this change.




You just used a pseudo class!

…wait… what?
CSS pseudo-classes are used to add special effects to some selectors.

The syntax of pseudo-classes:
selector:pseudo-class {property:value;}

CSS classes can also be used with pseudo-classes:
selector.class:pseudo-class {property:value;}


A pseudo-class starts with a colon :
No whitespace may appear between a type selector or universal selector and the colon, nor can
whitespace appear after the colon.



   selector          pseudo-class

              a:link {
                  color: #000;
              }   property  value
a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!!

a:active MUST come after a:hover in the CSS definition in order to be effective!!




                                                 Image via:
                                                 http://reference.sitepoint.com/css/pseudoclasses




Link Psuedo-Classes




                                                                             Image via:
                                                                             http://www.w3schools.com/cssref/css_selectors.asp
Step 13:
Now let’s add the café info in the index.html
Within the nav div create a div with an id of info.
Within the info div create two spans, one with the id leftInfo
and one with an id of rightInfo then input the information.

 <div id="info">
    <span id="leftInfo">620 State St. New Haven, CT</span>
    <span id="rightInfo">Hours: Monday - Friday 6am - 11pm<br/>
             Saturday 9am - 6pm<br/>
             Sundays: Closed</span>
</div>

Save the file to apply this change.
Step 14:
Style #info in styles.css.

#info{
    display: block;
    width: 520px;
    height: 55px;
    float: right;
    font-weight: bold;
    font-size: 11px;
    color: #13A8A2;
    margin-top: 5px;
    margin-left: 20px;
}

Save the file to apply this change.
Step 15:
Style #leftInfo and #rightInfo.

#leftInfo{
    float: left;
}

#rightInfo{
    float: right;
}



Save the file to apply this change.
Now the first page to the website is complete! You also have the styles set for adding other pages to your website.
When you create coffee.html, about.html and cafe.html remember to link to the styles.css file using:

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

Weitere ähnliche Inhalte

Was ist angesagt?

Things you should know about WordPress (but were always too afraid to ask): W...
Things you should know about WordPress (but were always too afraid to ask): W...Things you should know about WordPress (but were always too afraid to ask): W...
Things you should know about WordPress (but were always too afraid to ask): W...Michael McNeill
 
WordPress Multisite at WordCamp Columbus by Angie Meeker
WordPress Multisite at WordCamp Columbus by Angie MeekerWordPress Multisite at WordCamp Columbus by Angie Meeker
WordPress Multisite at WordCamp Columbus by Angie MeekerAngela Meeker
 
Dissecting WordPress Themes and Page Templates, WordPress Columbus Meetup
Dissecting WordPress Themes and Page Templates, WordPress Columbus MeetupDissecting WordPress Themes and Page Templates, WordPress Columbus Meetup
Dissecting WordPress Themes and Page Templates, WordPress Columbus MeetupAngela Meeker
 
Building a Mobile Drupal Site
Building a Mobile Drupal SiteBuilding a Mobile Drupal Site
Building a Mobile Drupal SiteMark Jarrell
 
Keyboard and Interaction Accessibility Techniques
Keyboard and Interaction Accessibility TechniquesKeyboard and Interaction Accessibility Techniques
Keyboard and Interaction Accessibility TechniquesJared Smith
 
Web Accessibility Gone Wild (Now Even MORE Wilder!)
Web Accessibility Gone Wild (Now Even MORE Wilder!)Web Accessibility Gone Wild (Now Even MORE Wilder!)
Web Accessibility Gone Wild (Now Even MORE Wilder!)Jared Smith
 
Extending WordPress Multisite for Fun and Profit by Angie Meeker at WordPress...
Extending WordPress Multisite for Fun and Profit by Angie Meeker at WordPress...Extending WordPress Multisite for Fun and Profit by Angie Meeker at WordPress...
Extending WordPress Multisite for Fun and Profit by Angie Meeker at WordPress...Angela Meeker
 
Building, Collaborating and Scaling Drupal Distributions for Federated Organi...
Building, Collaborating and Scaling Drupal Distributions for Federated Organi...Building, Collaborating and Scaling Drupal Distributions for Federated Organi...
Building, Collaborating and Scaling Drupal Distributions for Federated Organi...Acquia
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4imdurgesh
 
Hacking MediaWiki (For Users)
Hacking MediaWiki (For Users)Hacking MediaWiki (For Users)
Hacking MediaWiki (For Users)Brianna Laugher
 
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}Eric Carlisle
 
Bringing "real life" relations to Plone
Bringing "real life" relations to PloneBringing "real life" relations to Plone
Bringing "real life" relations to PloneMassimo Azzolini
 
Wordless, stop writing WordPress themes like it's 1998
Wordless, stop writing WordPress themes like it's 1998Wordless, stop writing WordPress themes like it's 1998
Wordless, stop writing WordPress themes like it's 1998Filippo Dino
 
Build a WordPress theme from HTML5 template @ Telerik
Build a WordPress theme from HTML5 template @ TelerikBuild a WordPress theme from HTML5 template @ Telerik
Build a WordPress theme from HTML5 template @ TelerikMario Peshev
 
CSMess to OOCSS: Refactoring CSS with Object Oriented Design
CSMess to OOCSS: Refactoring CSS with Object Oriented DesignCSMess to OOCSS: Refactoring CSS with Object Oriented Design
CSMess to OOCSS: Refactoring CSS with Object Oriented DesignKate Travers
 
One Man Band - Drupal Lightning Talks
One Man Band - Drupal Lightning TalksOne Man Band - Drupal Lightning Talks
One Man Band - Drupal Lightning TalksMark Jarrell
 
CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)Zoe Gillenwater
 
Artdm170 Week4 Java Script Effects
Artdm170 Week4 Java Script EffectsArtdm170 Week4 Java Script Effects
Artdm170 Week4 Java Script EffectsGilbert Guerrero
 

Was ist angesagt? (19)

Things you should know about WordPress (but were always too afraid to ask): W...
Things you should know about WordPress (but were always too afraid to ask): W...Things you should know about WordPress (but were always too afraid to ask): W...
Things you should know about WordPress (but were always too afraid to ask): W...
 
WordPress Multisite at WordCamp Columbus by Angie Meeker
WordPress Multisite at WordCamp Columbus by Angie MeekerWordPress Multisite at WordCamp Columbus by Angie Meeker
WordPress Multisite at WordCamp Columbus by Angie Meeker
 
Dissecting WordPress Themes and Page Templates, WordPress Columbus Meetup
Dissecting WordPress Themes and Page Templates, WordPress Columbus MeetupDissecting WordPress Themes and Page Templates, WordPress Columbus Meetup
Dissecting WordPress Themes and Page Templates, WordPress Columbus Meetup
 
Building a Mobile Drupal Site
Building a Mobile Drupal SiteBuilding a Mobile Drupal Site
Building a Mobile Drupal Site
 
Keyboard and Interaction Accessibility Techniques
Keyboard and Interaction Accessibility TechniquesKeyboard and Interaction Accessibility Techniques
Keyboard and Interaction Accessibility Techniques
 
Web Accessibility Gone Wild (Now Even MORE Wilder!)
Web Accessibility Gone Wild (Now Even MORE Wilder!)Web Accessibility Gone Wild (Now Even MORE Wilder!)
Web Accessibility Gone Wild (Now Even MORE Wilder!)
 
Extending WordPress Multisite for Fun and Profit by Angie Meeker at WordPress...
Extending WordPress Multisite for Fun and Profit by Angie Meeker at WordPress...Extending WordPress Multisite for Fun and Profit by Angie Meeker at WordPress...
Extending WordPress Multisite for Fun and Profit by Angie Meeker at WordPress...
 
Building, Collaborating and Scaling Drupal Distributions for Federated Organi...
Building, Collaborating and Scaling Drupal Distributions for Federated Organi...Building, Collaborating and Scaling Drupal Distributions for Federated Organi...
Building, Collaborating and Scaling Drupal Distributions for Federated Organi...
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
 
Hacking MediaWiki (For Users)
Hacking MediaWiki (For Users)Hacking MediaWiki (For Users)
Hacking MediaWiki (For Users)
 
What is jQuery?
What is jQuery?What is jQuery?
What is jQuery?
 
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
 
Bringing "real life" relations to Plone
Bringing "real life" relations to PloneBringing "real life" relations to Plone
Bringing "real life" relations to Plone
 
Wordless, stop writing WordPress themes like it's 1998
Wordless, stop writing WordPress themes like it's 1998Wordless, stop writing WordPress themes like it's 1998
Wordless, stop writing WordPress themes like it's 1998
 
Build a WordPress theme from HTML5 template @ Telerik
Build a WordPress theme from HTML5 template @ TelerikBuild a WordPress theme from HTML5 template @ Telerik
Build a WordPress theme from HTML5 template @ Telerik
 
CSMess to OOCSS: Refactoring CSS with Object Oriented Design
CSMess to OOCSS: Refactoring CSS with Object Oriented DesignCSMess to OOCSS: Refactoring CSS with Object Oriented Design
CSMess to OOCSS: Refactoring CSS with Object Oriented Design
 
One Man Band - Drupal Lightning Talks
One Man Band - Drupal Lightning TalksOne Man Band - Drupal Lightning Talks
One Man Band - Drupal Lightning Talks
 
CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)
 
Artdm170 Week4 Java Script Effects
Artdm170 Week4 Java Script EffectsArtdm170 Week4 Java Script Effects
Artdm170 Week4 Java Script Effects
 

Andere mochten auch

Acids & Bases Day 3
Acids & Bases   Day 3Acids & Bases   Day 3
Acids & Bases Day 3jmori1
 
Tutorial1
Tutorial1Tutorial1
Tutorial1hstryk
 
The Hackathon Zoo
The Hackathon ZooThe Hackathon Zoo
The Hackathon ZooKevin Lewis
 
長野市のふるさと納税、小泉提案でようやくここまで来た!!
 長野市のふるさと納税、小泉提案でようやくここまで来た!! 長野市のふるさと納税、小泉提案でようやくここまで来た!!
長野市のふるさと納税、小泉提案でようやくここまで来た!!長野市議会議員小泉一真
 
Chuong 5 bien dong lao dong va viec lam
Chuong 5   bien dong lao dong va viec lamChuong 5   bien dong lao dong va viec lam
Chuong 5 bien dong lao dong va viec lamDat Nguyen
 
Social challenges exposition
Social challenges expositionSocial challenges exposition
Social challenges expositionDilsy Sandoval
 
Иммуноблисс «скорая помощь» клеткам иммунной системы
Иммуноблисс «скорая помощь» клеткам иммунной системыИммуноблисс «скорая помощь» клеткам иммунной системы
Иммуноблисс «скорая помощь» клеткам иммунной системыЕлена Шальнова
 
Kudavi 2.19.2016
Kudavi 2.19.2016Kudavi 2.19.2016
Kudavi 2.19.2016Tom Currier
 
Civil Society - recommendations from AIGLIA2014
Civil Society - recommendations from AIGLIA2014Civil Society - recommendations from AIGLIA2014
Civil Society - recommendations from AIGLIA2014futureagricultures
 
General Quiz (Finals) | Elixir '12
General Quiz (Finals) | Elixir '12General Quiz (Finals) | Elixir '12
General Quiz (Finals) | Elixir '12Abinash Shaw
 
Week Aef4 11
Week Aef4 11Week Aef4 11
Week Aef4 11Les Davy
 
KVH プラグ&トレード™
KVH プラグ&トレード™KVH プラグ&トレード™
KVH プラグ&トレード™KVH Co. Ltd.
 
Продукция ТРАДО для вашего здоровья
Продукция ТРАДО для вашего здоровьяПродукция ТРАДО для вашего здоровья
Продукция ТРАДО для вашего здоровьяЕлена Шальнова
 
Empacotamento e backport de aplicações em debian
Empacotamento e backport de aplicações em debianEmpacotamento e backport de aplicações em debian
Empacotamento e backport de aplicações em debianAndre Ferraz
 

Andere mochten auch (20)

Excel professional dummy
Excel professional dummyExcel professional dummy
Excel professional dummy
 
Acids & Bases Day 3
Acids & Bases   Day 3Acids & Bases   Day 3
Acids & Bases Day 3
 
Tutorial1
Tutorial1Tutorial1
Tutorial1
 
05 04 wh_chris_walker
05 04 wh_chris_walker05 04 wh_chris_walker
05 04 wh_chris_walker
 
The Hackathon Zoo
The Hackathon ZooThe Hackathon Zoo
The Hackathon Zoo
 
長野市のふるさと納税、小泉提案でようやくここまで来た!!
 長野市のふるさと納税、小泉提案でようやくここまで来た!! 長野市のふるさと納税、小泉提案でようやくここまで来た!!
長野市のふるさと納税、小泉提案でようやくここまで来た!!
 
Chuong 5 bien dong lao dong va viec lam
Chuong 5   bien dong lao dong va viec lamChuong 5   bien dong lao dong va viec lam
Chuong 5 bien dong lao dong va viec lam
 
Social challenges exposition
Social challenges expositionSocial challenges exposition
Social challenges exposition
 
Иммуноблисс «скорая помощь» клеткам иммунной системы
Иммуноблисс «скорая помощь» клеткам иммунной системыИммуноблисс «скорая помощь» клеткам иммунной системы
Иммуноблисс «скорая помощь» клеткам иммунной системы
 
Kudavi 2.19.2016
Kudavi 2.19.2016Kudavi 2.19.2016
Kudavi 2.19.2016
 
English Presentasi
English PresentasiEnglish Presentasi
English Presentasi
 
Civil Society - recommendations from AIGLIA2014
Civil Society - recommendations from AIGLIA2014Civil Society - recommendations from AIGLIA2014
Civil Society - recommendations from AIGLIA2014
 
Codigos de barras
Codigos de barrasCodigos de barras
Codigos de barras
 
Processor CPU
Processor CPUProcessor CPU
Processor CPU
 
General Quiz (Finals) | Elixir '12
General Quiz (Finals) | Elixir '12General Quiz (Finals) | Elixir '12
General Quiz (Finals) | Elixir '12
 
Week Aef4 11
Week Aef4 11Week Aef4 11
Week Aef4 11
 
KVH プラグ&トレード™
KVH プラグ&トレード™KVH プラグ&トレード™
KVH プラグ&トレード™
 
Продукция ТРАДО для вашего здоровья
Продукция ТРАДО для вашего здоровьяПродукция ТРАДО для вашего здоровья
Продукция ТРАДО для вашего здоровья
 
Empacotamento e backport de aplicações em debian
Empacotamento e backport de aplicações em debianEmpacotamento e backport de aplicações em debian
Empacotamento e backport de aplicações em debian
 
長野市ジビエ振興計画
長野市ジビエ振興計画長野市ジビエ振興計画
長野市ジビエ振興計画
 

Ähnlich wie Tutorial1 - Part 2

CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorialhstryk
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Erin M. Kidwell
 
Tailwind Navbar A Complete Guide for Stunning User Experience.pdf
Tailwind Navbar A Complete Guide for Stunning User Experience.pdfTailwind Navbar A Complete Guide for Stunning User Experience.pdf
Tailwind Navbar A Complete Guide for Stunning User Experience.pdfRonDosh
 
Divs and Links Styles
Divs and Links StylesDivs and Links Styles
Divs and Links StylesDaniel Downs
 
Blog HTML example for IML 295
Blog HTML example for IML 295Blog HTML example for IML 295
Blog HTML example for IML 295Evan Hughes
 
HTML/CSS Web Blog Example
HTML/CSS Web Blog ExampleHTML/CSS Web Blog Example
HTML/CSS Web Blog ExampleMichael Bodie
 
Step by step guide for creating wordpress plugin
Step by step guide for creating wordpress pluginStep by step guide for creating wordpress plugin
Step by step guide for creating wordpress pluginMainak Goswami
 
CSS For Coders
CSS For CodersCSS For Coders
CSS For Codersggfergu
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksAndolasoft Inc
 
Web Frontend development: tools and good practices to (re)organize the chaos
Web Frontend development: tools and good practices to (re)organize the chaosWeb Frontend development: tools and good practices to (re)organize the chaos
Web Frontend development: tools and good practices to (re)organize the chaosMatteo Papadopoulos
 
Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Webinar: Front End Web Development - Trendy Web Designs Using HTML5Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Webinar: Front End Web Development - Trendy Web Designs Using HTML5Edureka!
 
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 Evan Mullins
 
Writing your own WordPress themes and plugins
Writing your own WordPress themes and pluginsWriting your own WordPress themes and plugins
Writing your own WordPress themes and pluginsStephanie Wells
 
Extending & Scaling | Dallas PHP
Extending & Scaling | Dallas PHPExtending & Scaling | Dallas PHP
Extending & Scaling | Dallas PHPrandyhoyt
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucksTim Wright
 

Ähnlich wie Tutorial1 - Part 2 (20)

CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
 
Tailwind Navbar A Complete Guide for Stunning User Experience.pdf
Tailwind Navbar A Complete Guide for Stunning User Experience.pdfTailwind Navbar A Complete Guide for Stunning User Experience.pdf
Tailwind Navbar A Complete Guide for Stunning User Experience.pdf
 
Divs and Links Styles
Divs and Links StylesDivs and Links Styles
Divs and Links Styles
 
Blog HTML example for IML 295
Blog HTML example for IML 295Blog HTML example for IML 295
Blog HTML example for IML 295
 
HTML/CSS Web Blog Example
HTML/CSS Web Blog ExampleHTML/CSS Web Blog Example
HTML/CSS Web Blog Example
 
Step by step guide for creating wordpress plugin
Step by step guide for creating wordpress pluginStep by step guide for creating wordpress plugin
Step by step guide for creating wordpress plugin
 
CSS For Coders
CSS For CodersCSS For Coders
CSS For Coders
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
Web Frontend development: tools and good practices to (re)organize the chaos
Web Frontend development: tools and good practices to (re)organize the chaosWeb Frontend development: tools and good practices to (re)organize the chaos
Web Frontend development: tools and good practices to (re)organize the chaos
 
Class15
Class15Class15
Class15
 
Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Webinar: Front End Web Development - Trendy Web Designs Using HTML5Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Webinar: Front End Web Development - Trendy Web Designs Using HTML5
 
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS Workshop
 
Master page
Master pageMaster page
Master page
 
Writing your own WordPress themes and plugins
Writing your own WordPress themes and pluginsWriting your own WordPress themes and plugins
Writing your own WordPress themes and plugins
 
Fewd week7 slides
Fewd week7 slidesFewd week7 slides
Fewd week7 slides
 
Extending & Scaling | Dallas PHP
Extending & Scaling | Dallas PHPExtending & Scaling | Dallas PHP
Extending & Scaling | Dallas PHP
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 

Mehr von hstryk

CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Propertieshstryk
 
Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2hstryk
 
Lesson1 - Fall 2013
Lesson1 - Fall 2013Lesson1 - Fall 2013
Lesson1 - Fall 2013hstryk
 
Lesson2
Lesson2Lesson2
Lesson2hstryk
 
CSS3 Transitions
CSS3 TransitionsCSS3 Transitions
CSS3 Transitionshstryk
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3hstryk
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovershstryk
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSShstryk
 
Lecture4
Lecture4Lecture4
Lecture4hstryk
 
Project1
Project1Project1
Project1hstryk
 
Lesson 3
Lesson 3Lesson 3
Lesson 3hstryk
 
Lesson2
Lesson2Lesson2
Lesson2hstryk
 
Lesson1
Lesson1Lesson1
Lesson1hstryk
 
Heather Strycharz - Resume
Heather Strycharz - ResumeHeather Strycharz - Resume
Heather Strycharz - Resumehstryk
 

Mehr von hstryk (14)

CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
 
Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2
 
Lesson1 - Fall 2013
Lesson1 - Fall 2013Lesson1 - Fall 2013
Lesson1 - Fall 2013
 
Lesson2
Lesson2Lesson2
Lesson2
 
CSS3 Transitions
CSS3 TransitionsCSS3 Transitions
CSS3 Transitions
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovers
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
 
Lecture4
Lecture4Lecture4
Lecture4
 
Project1
Project1Project1
Project1
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
Lesson2
Lesson2Lesson2
Lesson2
 
Lesson1
Lesson1Lesson1
Lesson1
 
Heather Strycharz - Resume
Heather Strycharz - ResumeHeather Strycharz - Resume
Heather Strycharz - Resume
 

Kürzlich hochgeladen

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 

Kürzlich hochgeladen (20)

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 

Tutorial1 - Part 2

  • 1. Tutorial 1B Finishing our website in Komodo Edit
  • 2. Step 1A: You MUST have access to the folder called “dropsite” which I have provided. Please put the folder on your external drive. Within the “dropsite” folder, there should be another folder called “img”. Witin the “img” folder there should be 4 images: bkg.gif coffee.gif logo.gif tower.png
  • 3. Step 2: Open Komodo Edit & open your index.html and styles.css files.
  • 4. 1 Step 3: Make sure you are on the tab for index.html 1. Click on the Globe icon, this is the Preview option. 2 2. A dialogue box will appear, Select: “Preview with this file.” Under Preview Using field, select “In a Komodo Tab” This will give you a preview of your document within Komodo.
  • 5. At this point your site should look like this:
  • 6. Step 4: Go to the index.html tab We’re going to add the tower div INSIDE the #coffeeinfo div After the Lorem ipsum text type: …vestibulum ultrices. <div id="tower"> <img src="img/tower.png"/> </div> Save the file to apply this change.
  • 7. Step 5: Go to the styles.css tab Now we’re going to add position: relative; to #coffeeInfo Because a page element with relative positioning gives you the control to absolutely position children elements inside of it. #coffeeInfo{ height: 226px; width: 448px; border: 3px #13A8A2 solid; padding: 12px 80px 12px 12px; float: right; -webkit-border-radius: 5px; border-radius: 5px; margin-right: 20px; position: relative; } Save the file to apply this change. Tip: In CSS a parent element is an element that contains other elements. All elements that are contained within that parent are called "child" elements. http://webdesign.about.com/cs/css/qt/tipcsschild.htm
  • 8. Step 6: Now let’s style the #tower div. #tower{ position: absolute; top: 70px; right: -20px; } Save the file to apply this change. Voilà! 70px -20px
  • 9. Step 7: Make a functioning menu in index.html Under the logo div create a div with the id nav. Create an unordered list, with list items that will be the names of our pages. Then give each list item an anchor tag to the corresponding html page (which we will create later). <div id="nav"> <ul> <li class="menu"><a href="index.html">Home</a></li> <li class="menu"><a href="coffee.html">Specialty Coffee</a></li> <li class="menu"><a href="cafe.html">Cafe</a></li> <li class="menu"><a href="about.html">About</a></li> </ul> </div> Save the file to apply this change.
  • 10. Step 8: Go to styles.css 1. IMPORTANT: Add position: relative; to #content – so that when we absolutely position #nav it will be position relative to the #content div & not the <body> Then style the #nav div. #nav{ width: 520px; height: 50px; border-bottom: 14px solid #13a8a2; position: absolute; top: 20px; right: 20px; display: block; } Save the file to apply this change.
  • 11. Step 9: Go to styles.css Then style the ul in the #nav div to float right. #nav ul{ float: right; } Save the file to apply this change.
  • 12. Step 10: Now style the links by starting with the li. Notice we are styling the li’s using the menu class. The . signifies that we are styling a class. Why are we using a class instead of an id? Because we are styling multiple occurrences of an element on the same page. #nav li.menu { display: block; float: left; height: 40px; } li li li li Notice that the li is the child and #nav is the parent. In essence this code is saying, “In the instance of the element with the id of nav, all instances of li that have the class of menu will have these following attributes.”
  • 13. Step 11: Let’s give our links some room to b r e a t h e and get rid of the underline. #nav li.menu a { text-decoration: none; padding-left: 30px; font-weight: bold; } 30px 30px 30px 30px Save the file to apply this change. TIP: By default the browser puts an underline underneath links to show that it is a link. Browsers also have a default ACTIVE color, HOVER color and VISITED color.
  • 14. Step 12: Now let’s style the default colors and create a rollover effect when we hover over the link. #nav li.menu a:link, #nav li.menu a:visited { color: #000; } #nav li.menu a:active, #nav li.menu a:hover, #nav li.menu a:focus { color: #13A8A2; } Save the file to apply this change. You just used a pseudo class! …wait… what?
  • 15. CSS pseudo-classes are used to add special effects to some selectors. The syntax of pseudo-classes: selector:pseudo-class {property:value;} CSS classes can also be used with pseudo-classes: selector.class:pseudo-class {property:value;} A pseudo-class starts with a colon : No whitespace may appear between a type selector or universal selector and the colon, nor can whitespace appear after the colon. selector pseudo-class a:link { color: #000; } property value
  • 16. a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!! a:active MUST come after a:hover in the CSS definition in order to be effective!! Image via: http://reference.sitepoint.com/css/pseudoclasses Link Psuedo-Classes Image via: http://www.w3schools.com/cssref/css_selectors.asp
  • 17. Step 13: Now let’s add the café info in the index.html Within the nav div create a div with an id of info. Within the info div create two spans, one with the id leftInfo and one with an id of rightInfo then input the information. <div id="info"> <span id="leftInfo">620 State St. New Haven, CT</span> <span id="rightInfo">Hours: Monday - Friday 6am - 11pm<br/> Saturday 9am - 6pm<br/> Sundays: Closed</span> </div> Save the file to apply this change.
  • 18. Step 14: Style #info in styles.css. #info{ display: block; width: 520px; height: 55px; float: right; font-weight: bold; font-size: 11px; color: #13A8A2; margin-top: 5px; margin-left: 20px; } Save the file to apply this change.
  • 19. Step 15: Style #leftInfo and #rightInfo. #leftInfo{ float: left; } #rightInfo{ float: right; } Save the file to apply this change.
  • 20. Now the first page to the website is complete! You also have the styles set for adding other pages to your website. When you create coffee.html, about.html and cafe.html remember to link to the styles.css file using: <link rel="stylesheet" type="text/css" href="styles.css" />