SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
Tutorial	
  1	
  
Crea-ng	
  an	
  HTML	
  page	
  with	
  an	
  External	
  Stylesheet	
  using	
  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”.	
  
Wi-n	
  the	
  “img”	
  folder	
  there	
  should	
  be	
  4	
  images:	
  
	
  
bkg.gif	
  
	
  
coffee.gif	
  
	
  
logo.gif	
  
	
  
tower.png	
  
	
  
	
  
Step	
  1:	
  Open	
  Firefox	
  or	
  Safari	
  and	
  go	
  to:	
  hRp://www.ac-vestate.com/komodo-­‐edit	
  	
  
Click	
  “Download	
  Komodo	
  Edit”	
  
Step	
  2:	
  
When	
  the	
  Komodo	
  Edit	
  dialogue	
  box	
  
appears	
  double-­‐click	
  the	
  Komodo	
  Edit	
  
logo.	
  DO	
  NOT	
  aRempt	
  to	
  drag	
  Komodo	
  
Edit	
  into	
  the	
  Applica-ons	
  folder.	
  	
  
	
  
When	
  the	
  next	
  dialogue	
  box	
  appears	
  click	
  
“OPEN”	
  
	
  
	
  
Step	
  3:	
  
From	
  the	
  menu	
  select:	
  
FILE	
  >	
  NEW	
  >	
  File	
  From	
  Template…	
  
	
  
	
  
Step	
  4:	
  
Select	
  “All	
  Languages”	
  folder	
  under	
  
Categories.	
  
	
  
Select	
  “HTML”	
  under	
  Templates	
  
	
  
Click	
  “OPEN”	
  
	
  
	
  
Your	
  page	
  should	
  look	
  like	
  this.	
  
	
  
	
  
Step	
  5:	
  
1.	
  Select:	
  FILE	
  >	
  SAVE	
  AS…	
  from	
  the	
  menu	
  
	
  
2.	
  Save	
  your	
  file	
  as	
  index.html	
  in	
  the	
  folder	
  
“dropsite”.	
  
	
  
It	
  MUST	
  be	
  one	
  level	
  UP	
  from	
  the	
  “img”	
  
folder.	
  
	
  
Click	
  Save.	
  
	
  
1	
  
2	
  
Step	
  6:	
  
Again,	
  from	
  the	
  menu	
  select:	
  
FILE	
  >	
  NEW	
  >	
  File	
  From	
  Template…	
  
	
  
	
  
Step	
  7:	
  
Select	
  “All	
  Languages”	
  folder	
  under	
  
Categories.	
  
	
  
Select	
  “CSS”	
  under	
  Templates	
  
	
  
Click	
  “OPEN”	
  
	
  
	
  
Step	
  8:	
  
1.	
  Select:	
  FILE	
  >	
  SAVE	
  AS…	
  from	
  the	
  menu	
  
	
  
2.	
  Save	
  your	
  file	
  as	
  styles.css	
  and	
  save	
  the	
  
file	
  to	
  “dropsite”,	
  which	
  is	
  the	
  same	
  folder	
  
you	
  saved	
  the	
  index.html	
  file.	
  
	
  
Click	
  Save.	
  
	
  
You	
  should	
  now	
  have	
  two	
  tabs	
  in	
  Komodo.	
  
One	
  with	
  index.html	
  and	
  one	
  with	
  
styles.css.	
  
	
  
1	
  
2	
  
Step	
  9:	
  
Make	
  sure	
  you	
  are	
  on	
  the	
  tab	
  for	
  
index.html	
  
	
  
1.	
  Click	
  on	
  the	
  Globe	
  icon,	
  this	
  is	
  
the	
  Preview	
  op-on.	
  
	
  
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.	
  
	
  
1	
  
2	
  
Step	
  10:	
  
Between	
  the	
  <body>	
  and	
  </body>	
  tags	
  type:	
  
<span>Hello	
  world!</span>	
  
Next,	
  select	
  File	
  >	
  Save	
  from	
  the	
  menu	
  
or	
  use	
  the	
  shortcut:	
  Command	
  ⌘	
  S	
  to	
  SAVE.	
  
	
  
Your	
  preview	
  screen	
  should	
  refresh	
  to	
  reflect	
  this	
  change.	
  
Step	
  11:	
  
Now,	
  let’s	
  put	
  the	
  <span>	
  we	
  created	
  within	
  a	
  <div>	
  with	
  an	
  id	
  of	
  “content”.	
  
Between	
  the	
  <body>	
  and	
  <span>	
  type:	
  
	
  
<div	
  id="content">	
  
	
  
Aier	
  the	
  </span>	
  make	
  sure	
  to	
  close	
  your	
  div	
  using	
  </div>	
  
	
  
Then,	
  select	
  File	
  >	
  Save	
  from	
  the	
  menu	
  
or	
  use	
  the	
  shortcut:	
  Command	
  ⌘	
  S	
  to	
  SAVE.	
  
Step	
  12:	
  
Between	
  the	
  <head>	
  tags	
  type:	
  
	
  
<link	
  rel="stylesheet"	
  type="text/css"	
  href="styles.css"	
  />	
  
	
  
You	
  have	
  just	
  “linked”	
  the	
  stylesheet	
  file	
  we	
  created,	
  “styles.css”	
  with	
  this	
  HTML	
  page.	
  
Now	
  the	
  styles	
  that	
  we	
  define	
  in	
  styles.css	
  will	
  apply	
  to	
  the	
  elements	
  we	
  create	
  in	
  this	
  
HTML	
  page.	
  	
  
	
  
Don’t	
  forget	
  to	
  save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
Step	
  13:	
  
Go	
  to	
  the	
  styles.css	
  tab	
  and	
  type:	
  
	
  
body{	
  
	
  	
  	
  font-­‐family:	
  Arial,	
  sans-­‐serif;	
  
}	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
So	
  far	
  we	
  have:	
  
-­‐	
  Created	
  our	
  HTML	
  document	
  and	
  our	
  CSS	
  document.	
  
-­‐	
  WriRen	
  our	
  first	
  bits	
  of	
  code	
  in	
  the	
  HTML	
  document.	
  
-­‐	
  Linked	
  the	
  HTML	
  document	
  to	
  our	
  CSS	
  document.	
  
-­‐	
  WriRen	
  our	
  first	
  CSS	
  selector	
  and	
  declara-on	
  in	
  our	
  CSS	
  document.	
  
	
  
Now	
  that	
  we	
  are	
  a	
  bit	
  more	
  familiar	
  with	
  using	
  Komodo,	
  	
  
let’s	
  pick	
  up	
  the	
  pace	
  a	
  bit!	
  
This	
  is	
  the	
  website	
  we	
  are	
  going	
  to	
  make:	
  
Before	
  we	
  con-nue,	
  let’s	
  break	
  it	
  down	
  into	
  divs:	
  
body	
  
coffee	
  
logo	
  
info	
  
coffeeInfo	
  
tower	
  
featureTxt	
  
infoLei	
  
infoRight	
  
nav	
  
menu	
  
content	
  
Step	
  14:	
  
Let’s	
  con-nue	
  with	
  the	
  body	
  selector	
  	
  
in	
  styles.css.	
  
	
  
	
  
	
  
	
  
Type	
  the	
  following:	
  
	
  
body{	
  
	
  	
  	
  height:	
  100%;	
  
	
  	
  	
  background:	
  #FFF	
  url(‘img/bkg.gif’)	
  repeat-­‐x;	
  
	
  	
  	
  margin:	
  auto;	
  
	
  	
  	
  font-­‐family:	
  Arial,	
  sans-­‐serif;	
  
}	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
	
  	
  
What	
  do	
  the	
  values	
  in	
  the	
  ‘background’	
  property	
  mean?	
  
#FFF	
  =	
  the	
  background	
  color	
  is	
  white	
  (#FFFFFF)	
  
url(‘img/bkg.gif’)	
  =	
  use	
  bkg.gif	
  found	
  in	
  the	
  file	
  directory	
  “img”	
  as	
  a	
  background	
  image	
  
repeat-­‐x	
  =	
  repeat	
  the	
  image	
  horizontally	
  (x	
  axis)	
  
	
  
TIP:	
  margin:	
  auto;	
  is	
  usually	
  a	
  good	
  way	
  to	
  prevent	
  a	
  gap	
  between	
  the	
  site	
  content	
  and	
  the	
  very	
  top	
  of	
  the	
  page.	
  
Step	
  15:	
  
Go	
  to	
  the	
  index.html	
  tab	
  
Erase	
  <span>Hello	
  world!</span>	
  and	
  type	
  the	
  following	
  in	
  the	
  “content”	
  div:	
  
	
  
	
  <div	
  id="content">	
  
	
  	
  <div	
  id="logo">	
  	
  	
  	
  	
  	
  	
  	
  	
  
	
  	
  <img	
  src="img/logo.gif"/>	
  
	
  	
  </div>	
  
	
  </div>	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
	
  
This	
  means	
  that	
  we	
  put	
  the	
  image	
  logo.gif	
  
within	
  its	
  own	
  div	
  named	
  “logo”.	
  
	
  
Step	
  16:	
  
Go	
  to	
  the	
  styles.css	
  tab.	
  
We	
  are	
  now	
  going	
  to	
  style	
  the	
  content	
  div.	
  
	
  
Remember,	
  we	
  can	
  customize	
  our	
  own	
  selectors	
  by	
  using	
  ID	
  or	
  CLASS.	
  
The	
  ID	
  selector	
  is	
  used	
  to	
  specify	
  a	
  style	
  for	
  a	
  single,	
  unique	
  element.	
  
The	
  ID	
  selector	
  uses	
  the	
  id	
  aRribute	
  of	
  the	
  HTML	
  element	
  (id=“example”)	
  
and	
  is	
  defined	
  with	
  the	
  #	
  sign.	
  
	
  
Type	
  the	
  following:	
  
	
  
#content{	
  
	
  	
  	
  	
  display:	
  block;	
  
	
  	
  	
  	
  background-­‐color:	
  #FFF;	
  
	
  	
  	
  	
  width:	
  900px;	
  
	
  	
  	
  	
  height:	
  760px;	
  
	
  	
  	
  	
  margin:	
  auto;	
  
}	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
	
  
Step	
  17:	
  
Go	
  to	
  the	
  index.html	
  tab	
  
Now	
  let’s	
  create	
  the	
  “coffee”	
  div	
  with	
  the	
  
coffee.gif	
  image.	
  
Aier	
  the	
  closing	
  </div>	
  for	
  the	
  “logo”	
  div,	
  
type	
  the	
  following:	
  
	
  
<div	
  id="coffee">	
  	
  	
  	
  	
  	
  	
  	
  	
  
<img	
  src="img/coffee.gif"/>	
  
</div>	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
Step	
  18	
  (example	
  images	
  on	
  next	
  page):	
  
S-ll	
  in	
  the	
  index.html	
  tab	
  
Create	
  the	
  “coffeeInfo”	
  div	
  aier	
  the	
  coffee	
  div.	
  
	
  
	
  
<div	
  id="coffeeInfo">	
  
French	
  Roast<br/>	
  
Lorem	
  ipsum	
  dolor	
  sit	
  amet,	
  consectetur	
  adipiscing	
  elit.	
  	
  
Ut	
  auctor	
  lorem	
  id	
  nunc	
  sodales	
  scelerisque.	
  In	
  hac	
  	
  
habitasse	
  platea	
  dictumst.	
  Etiam	
  tincidunt	
  lectus	
  urna.	
  	
  
Pellentesque	
  aliquet	
  molestie	
  molestie.	
  Nam	
  lectus	
  	
  
massa,	
  ultrices	
  sed	
  rhoncus	
  sed,	
  iaculis	
  non	
  turpis.	
  	
  
Etiam	
  sollicitudin	
  suscipit	
  nisl	
  pellentesque	
  vehicula.	
  	
  
Integer	
  rutrum,	
  quam	
  vitae	
  vestibulum	
  ultrices.	
  
</div>	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
	
  
Tip:	
  You	
  can	
  get	
  Lorem	
  Ipsum	
  placeholder	
  text	
  by	
  going	
  to	
  :	
  
www.lipsum.com	
  	
  
Tip:	
  HTML	
  comments	
  are	
  a	
  great	
  way	
  to	
  
keep	
  track	
  of	
  which	
  div	
  you	
  are	
  in.	
  
Use:	
  <!-­‐-­‐	
  to	
  open	
  a	
  comment	
  
And:	
  -­‐-­‐>	
  to	
  close	
  a	
  comment	
  
<!-­‐-­‐	
  example	
  -­‐-­‐>	
  
	
  
Remember,	
  text	
  that	
  is	
  within	
  the	
  open	
  &	
  
closing	
  comment	
  tags	
  WILL	
  NOT	
  show	
  up	
  
on	
  your	
  webpage.	
  
It	
  is	
  best	
  prac-ce	
  to	
  use	
  comments	
  for	
  
your	
  closing	
  tag,	
  because	
  the	
  opening	
  tag	
  
usually	
  is	
  described	
  by	
  the	
  class	
  or	
  id.	
  
	
  
Step	
  19:	
  
Go	
  to	
  the	
  styles.css	
  tab	
  
Now	
  we’re	
  going	
  to	
  style	
  #coffeeInfo:	
  
	
  
#coffeeInfo{	
  
	
  	
  	
  	
  height:	
  226px;	
  
	
  	
  	
  	
  width:	
  448px;	
  
	
  	
  	
  	
  border:	
  3px	
  #13A8A2	
  solid;	
  
	
  	
  	
  	
  padding:	
  12px	
  80px	
  12px	
  12px;	
  
	
  	
  	
  	
  float:	
  right;	
  
}	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
Step	
  20:	
  
Now	
  we’re	
  going	
  to	
  style	
  #logo:	
  
	
  
#logo{	
  
	
  	
  	
  	
  width:	
  240px;	
  
	
  	
  	
  	
  height:	
  200px;	
  
	
  	
  	
  	
  display:	
  block;	
  	
  	
  	
  	
  	
  	
  	
  	
  
}	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
Step	
  21:	
  
Style	
  #coffee:	
  
	
  
#coffee{	
  
	
  	
  	
  	
  display:	
  block;	
  
	
  	
  	
  	
  width:	
  283px;	
  
	
  	
  	
  	
  height:	
  270px;	
  
	
  	
  	
  	
  float:	
  left;	
  	
  	
  	
  	
  
}	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
	
  
Now,	
  #coffee	
  and	
  #coffeeInfo	
  
should	
  be	
  next	
  to	
  each	
  other.	
  
Step	
  22:	
  
Let’s	
  fix	
  #coffeeInfo	
  to	
  look	
  more	
  like	
  the	
  
finished	
  design.	
  	
  
Add	
  the	
  following	
  to	
  #coffeeInfo:	
  
	
  
	
  -­‐webkit-­‐border-­‐radius:	
  5px;	
  
	
  	
  	
  	
  border-­‐radius:	
  5px;	
  
	
  	
  	
  	
  margin-­‐right:	
  20px;	
  
	
  
Save	
  the	
  file	
  to	
  apply	
  this	
  change.	
  
At	
  this	
  point	
  your	
  site	
  should	
  look	
  like	
  this:	
  

Contenu connexe

En vedette

Esa essential facts_2010
Esa essential facts_2010Esa essential facts_2010
Esa essential facts_2010Tiit Remmel
 
Kotak Warna Game by Fakhri
Kotak Warna Game by FakhriKotak Warna Game by Fakhri
Kotak Warna Game by Fakhrifakhriariza
 
How are drugs developed?
How are drugs developed?How are drugs developed?
How are drugs developed?Xplore Health
 
Программа здоровье опорно двигательного аппарата
Программа здоровье опорно двигательного аппарата Программа здоровье опорно двигательного аппарата
Программа здоровье опорно двигательного аппарата Елена Шальнова
 
Photos de Paris - France
Photos de Paris - France Photos de Paris - France
Photos de Paris - France sioalex
 
Zoyo Branding Local Search with Google Places
Zoyo Branding Local Search with Google PlacesZoyo Branding Local Search with Google Places
Zoyo Branding Local Search with Google PlacesBeth Abate Bacon
 
The best wordpress backlink plugin get 150
The best wordpress backlink plugin   get 150The best wordpress backlink plugin   get 150
The best wordpress backlink plugin get 150trexx101
 
Inanimate Alive Episode 5 by Kye & Charles
Inanimate Alive Episode 5 by Kye & CharlesInanimate Alive Episode 5 by Kye & Charles
Inanimate Alive Episode 5 by Kye & CharlesMrsPrentice
 
Datafesta 20141004_05
Datafesta 20141004_05Datafesta 20141004_05
Datafesta 20141004_05博三 太田
 
SafePeak - How to configure SQL Server agent in a safepeak deployment
SafePeak - How to configure SQL Server agent in a safepeak deploymentSafePeak - How to configure SQL Server agent in a safepeak deployment
SafePeak - How to configure SQL Server agent in a safepeak deploymentVladi Vexler
 
เบาหวาน+~..
เบาหวาน+~..เบาหวาน+~..
เบาหวาน+~..maygaclever
 
Huddle IceCold Overview
Huddle IceCold OverviewHuddle IceCold Overview
Huddle IceCold Overviewtgchristian
 

En vedette (20)

Esa essential facts_2010
Esa essential facts_2010Esa essential facts_2010
Esa essential facts_2010
 
Kotak Warna Game by Fakhri
Kotak Warna Game by FakhriKotak Warna Game by Fakhri
Kotak Warna Game by Fakhri
 
Iu 5 final
Iu 5 finalIu 5 final
Iu 5 final
 
How are drugs developed?
How are drugs developed?How are drugs developed?
How are drugs developed?
 
Программа здоровье опорно двигательного аппарата
Программа здоровье опорно двигательного аппарата Программа здоровье опорно двигательного аппарата
Программа здоровье опорно двигательного аппарата
 
Photos de Paris - France
Photos de Paris - France Photos de Paris - France
Photos de Paris - France
 
Pantheon basics
Pantheon basicsPantheon basics
Pantheon basics
 
Calendars 2010
Calendars 2010Calendars 2010
Calendars 2010
 
Zoyo Branding Local Search with Google Places
Zoyo Branding Local Search with Google PlacesZoyo Branding Local Search with Google Places
Zoyo Branding Local Search with Google Places
 
The best wordpress backlink plugin get 150
The best wordpress backlink plugin   get 150The best wordpress backlink plugin   get 150
The best wordpress backlink plugin get 150
 
Inanimate Alive Episode 5 by Kye & Charles
Inanimate Alive Episode 5 by Kye & CharlesInanimate Alive Episode 5 by Kye & Charles
Inanimate Alive Episode 5 by Kye & Charles
 
Datafesta 20141004_05
Datafesta 20141004_05Datafesta 20141004_05
Datafesta 20141004_05
 
Kua staff ec training
Kua staff ec trainingKua staff ec training
Kua staff ec training
 
SafePeak - How to configure SQL Server agent in a safepeak deployment
SafePeak - How to configure SQL Server agent in a safepeak deploymentSafePeak - How to configure SQL Server agent in a safepeak deployment
SafePeak - How to configure SQL Server agent in a safepeak deployment
 
เบาหวาน+~..
เบาหวาน+~..เบาหวาน+~..
เบาหวาน+~..
 
Insider
InsiderInsider
Insider
 
C 10.1
C 10.1C 10.1
C 10.1
 
Huddle IceCold Overview
Huddle IceCold OverviewHuddle IceCold Overview
Huddle IceCold Overview
 
Network bab1
Network bab1Network bab1
Network bab1
 
Hoteles
HotelesHoteles
Hoteles
 

Similaire à Tutorial1

Joomla! Day UK 2009 Basic Templates
Joomla! Day UK 2009 Basic TemplatesJoomla! Day UK 2009 Basic Templates
Joomla! Day UK 2009 Basic TemplatesAndy Wallace
 
Joomla Day UK 2009 Basic Templates
Joomla Day UK 2009 Basic TemplatesJoomla Day UK 2009 Basic Templates
Joomla Day UK 2009 Basic TemplatesChris Davenport
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2hstryk
 
Learn CSS From Scratch
Learn CSS From ScratchLearn CSS From Scratch
Learn CSS From Scratchecobold
 
9 a0 056
9 a0 0569 a0 056
9 a0 056Almo56
 
Conquering Code with hjc
Conquering Code with hjcConquering Code with hjc
Conquering Code with hjchjc
 
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
 
wd project.pptx
wd project.pptxwd project.pptx
wd project.pptxdsffsdf1
 
PSD to HTML Conversion
PSD to HTML ConversionPSD to HTML Conversion
PSD to HTML ConversionDarryl Sherman
 
Joomla Beginner Template Presentation
Joomla Beginner Template PresentationJoomla Beginner Template Presentation
Joomla Beginner Template Presentationalledia
 
Joomla v-15-squeezebox-in-your-joomla-website
Joomla v-15-squeezebox-in-your-joomla-websiteJoomla v-15-squeezebox-in-your-joomla-website
Joomla v-15-squeezebox-in-your-joomla-websiteRBaggio2000
 
Responsive design in plone
Responsive design in ploneResponsive design in plone
Responsive design in ploneAlin Voinea
 
Oracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialOracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialRakesh Gujjarlapudi
 
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
 

Similaire à Tutorial1 (20)

Joomla! Day UK 2009 Basic Templates
Joomla! Day UK 2009 Basic TemplatesJoomla! Day UK 2009 Basic Templates
Joomla! Day UK 2009 Basic Templates
 
Joomla Day UK 2009 Basic Templates
Joomla Day UK 2009 Basic TemplatesJoomla Day UK 2009 Basic Templates
Joomla Day UK 2009 Basic Templates
 
Fewd week2 slides
Fewd week2 slidesFewd week2 slides
Fewd week2 slides
 
Master page
Master pageMaster page
Master page
 
Fewd week7 slides
Fewd week7 slidesFewd week7 slides
Fewd week7 slides
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2
 
Learn CSS From Scratch
Learn CSS From ScratchLearn CSS From Scratch
Learn CSS From Scratch
 
9 a0 056
9 a0 0569 a0 056
9 a0 056
 
HTML and CSS.pptx
HTML and CSS.pptxHTML and CSS.pptx
HTML and CSS.pptx
 
Conquering Code with hjc
Conquering Code with hjcConquering Code with hjc
Conquering Code with hjc
 
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
 
wd project.pptx
wd project.pptxwd project.pptx
wd project.pptx
 
PSD to HTML Conversion
PSD to HTML ConversionPSD to HTML Conversion
PSD to HTML Conversion
 
Joomla Beginner Template Presentation
Joomla Beginner Template PresentationJoomla Beginner Template Presentation
Joomla Beginner Template Presentation
 
Creating custom themes in AtoM
Creating custom themes in AtoMCreating custom themes in AtoM
Creating custom themes in AtoM
 
Joomla v-15-squeezebox-in-your-joomla-website
Joomla v-15-squeezebox-in-your-joomla-websiteJoomla v-15-squeezebox-in-your-joomla-website
Joomla v-15-squeezebox-in-your-joomla-website
 
Responsive design in plone
Responsive design in ploneResponsive design in plone
Responsive design in plone
 
Oracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialOracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning Tutorial
 
web application.pptx
web application.pptxweb application.pptx
web application.pptx
 
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
 

Plus de 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
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorialhstryk
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3hstryk
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovershstryk
 
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
 

Plus de 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
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovers
 
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
 

Dernier

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 

Dernier (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

Tutorial1

  • 1. Tutorial  1   Crea-ng  an  HTML  page  with  an  External  Stylesheet  using  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”.   Wi-n  the  “img”  folder  there  should  be  4  images:     bkg.gif     coffee.gif     logo.gif     tower.png      
  • 3. Step  1:  Open  Firefox  or  Safari  and  go  to:  hRp://www.ac-vestate.com/komodo-­‐edit     Click  “Download  Komodo  Edit”  
  • 4. Step  2:   When  the  Komodo  Edit  dialogue  box   appears  double-­‐click  the  Komodo  Edit   logo.  DO  NOT  aRempt  to  drag  Komodo   Edit  into  the  Applica-ons  folder.       When  the  next  dialogue  box  appears  click   “OPEN”      
  • 5. Step  3:   From  the  menu  select:   FILE  >  NEW  >  File  From  Template…       Step  4:   Select  “All  Languages”  folder  under   Categories.     Select  “HTML”  under  Templates     Click  “OPEN”      
  • 6. Your  page  should  look  like  this.       Step  5:   1.  Select:  FILE  >  SAVE  AS…  from  the  menu     2.  Save  your  file  as  index.html  in  the  folder   “dropsite”.     It  MUST  be  one  level  UP  from  the  “img”   folder.     Click  Save.     1   2  
  • 7. Step  6:   Again,  from  the  menu  select:   FILE  >  NEW  >  File  From  Template…       Step  7:   Select  “All  Languages”  folder  under   Categories.     Select  “CSS”  under  Templates     Click  “OPEN”      
  • 8. Step  8:   1.  Select:  FILE  >  SAVE  AS…  from  the  menu     2.  Save  your  file  as  styles.css  and  save  the   file  to  “dropsite”,  which  is  the  same  folder   you  saved  the  index.html  file.     Click  Save.     You  should  now  have  two  tabs  in  Komodo.   One  with  index.html  and  one  with   styles.css.     1   2  
  • 9. Step  9:   Make  sure  you  are  on  the  tab  for   index.html     1.  Click  on  the  Globe  icon,  this  is   the  Preview  op-on.     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.     1   2   Step  10:   Between  the  <body>  and  </body>  tags  type:   <span>Hello  world!</span>   Next,  select  File  >  Save  from  the  menu   or  use  the  shortcut:  Command  ⌘  S  to  SAVE.     Your  preview  screen  should  refresh  to  reflect  this  change.  
  • 10. Step  11:   Now,  let’s  put  the  <span>  we  created  within  a  <div>  with  an  id  of  “content”.   Between  the  <body>  and  <span>  type:     <div  id="content">     Aier  the  </span>  make  sure  to  close  your  div  using  </div>     Then,  select  File  >  Save  from  the  menu   or  use  the  shortcut:  Command  ⌘  S  to  SAVE.  
  • 11. Step  12:   Between  the  <head>  tags  type:     <link  rel="stylesheet"  type="text/css"  href="styles.css"  />     You  have  just  “linked”  the  stylesheet  file  we  created,  “styles.css”  with  this  HTML  page.   Now  the  styles  that  we  define  in  styles.css  will  apply  to  the  elements  we  create  in  this   HTML  page.       Don’t  forget  to  save  the  file  to  apply  this  change.  
  • 12. Step  13:   Go  to  the  styles.css  tab  and  type:     body{        font-­‐family:  Arial,  sans-­‐serif;   }     Save  the  file  to  apply  this  change.   So  far  we  have:   -­‐  Created  our  HTML  document  and  our  CSS  document.   -­‐  WriRen  our  first  bits  of  code  in  the  HTML  document.   -­‐  Linked  the  HTML  document  to  our  CSS  document.   -­‐  WriRen  our  first  CSS  selector  and  declara-on  in  our  CSS  document.     Now  that  we  are  a  bit  more  familiar  with  using  Komodo,     let’s  pick  up  the  pace  a  bit!  
  • 13. This  is  the  website  we  are  going  to  make:  
  • 14. Before  we  con-nue,  let’s  break  it  down  into  divs:   body   coffee   logo   info   coffeeInfo   tower   featureTxt   infoLei   infoRight   nav   menu   content  
  • 15. Step  14:   Let’s  con-nue  with  the  body  selector     in  styles.css.           Type  the  following:     body{        height:  100%;        background:  #FFF  url(‘img/bkg.gif’)  repeat-­‐x;        margin:  auto;        font-­‐family:  Arial,  sans-­‐serif;   }     Save  the  file  to  apply  this  change.       What  do  the  values  in  the  ‘background’  property  mean?   #FFF  =  the  background  color  is  white  (#FFFFFF)   url(‘img/bkg.gif’)  =  use  bkg.gif  found  in  the  file  directory  “img”  as  a  background  image   repeat-­‐x  =  repeat  the  image  horizontally  (x  axis)     TIP:  margin:  auto;  is  usually  a  good  way  to  prevent  a  gap  between  the  site  content  and  the  very  top  of  the  page.  
  • 16. Step  15:   Go  to  the  index.html  tab   Erase  <span>Hello  world!</span>  and  type  the  following  in  the  “content”  div:      <div  id="content">      <div  id="logo">                      <img  src="img/logo.gif"/>      </div>    </div>     Save  the  file  to  apply  this  change.     This  means  that  we  put  the  image  logo.gif   within  its  own  div  named  “logo”.    
  • 17. Step  16:   Go  to  the  styles.css  tab.   We  are  now  going  to  style  the  content  div.     Remember,  we  can  customize  our  own  selectors  by  using  ID  or  CLASS.   The  ID  selector  is  used  to  specify  a  style  for  a  single,  unique  element.   The  ID  selector  uses  the  id  aRribute  of  the  HTML  element  (id=“example”)   and  is  defined  with  the  #  sign.     Type  the  following:     #content{          display:  block;          background-­‐color:  #FFF;          width:  900px;          height:  760px;          margin:  auto;   }     Save  the  file  to  apply  this  change.    
  • 18. Step  17:   Go  to  the  index.html  tab   Now  let’s  create  the  “coffee”  div  with  the   coffee.gif  image.   Aier  the  closing  </div>  for  the  “logo”  div,   type  the  following:     <div  id="coffee">                   <img  src="img/coffee.gif"/>   </div>     Save  the  file  to  apply  this  change.  
  • 19. Step  18  (example  images  on  next  page):   S-ll  in  the  index.html  tab   Create  the  “coffeeInfo”  div  aier  the  coffee  div.       <div  id="coffeeInfo">   French  Roast<br/>   Lorem  ipsum  dolor  sit  amet,  consectetur  adipiscing  elit.     Ut  auctor  lorem  id  nunc  sodales  scelerisque.  In  hac     habitasse  platea  dictumst.  Etiam  tincidunt  lectus  urna.     Pellentesque  aliquet  molestie  molestie.  Nam  lectus     massa,  ultrices  sed  rhoncus  sed,  iaculis  non  turpis.     Etiam  sollicitudin  suscipit  nisl  pellentesque  vehicula.     Integer  rutrum,  quam  vitae  vestibulum  ultrices.   </div>     Save  the  file  to  apply  this  change.     Tip:  You  can  get  Lorem  Ipsum  placeholder  text  by  going  to  :   www.lipsum.com    
  • 20. Tip:  HTML  comments  are  a  great  way  to   keep  track  of  which  div  you  are  in.   Use:  <!-­‐-­‐  to  open  a  comment   And:  -­‐-­‐>  to  close  a  comment   <!-­‐-­‐  example  -­‐-­‐>     Remember,  text  that  is  within  the  open  &   closing  comment  tags  WILL  NOT  show  up   on  your  webpage.   It  is  best  prac-ce  to  use  comments  for   your  closing  tag,  because  the  opening  tag   usually  is  described  by  the  class  or  id.    
  • 21. Step  19:   Go  to  the  styles.css  tab   Now  we’re  going  to  style  #coffeeInfo:     #coffeeInfo{          height:  226px;          width:  448px;          border:  3px  #13A8A2  solid;          padding:  12px  80px  12px  12px;          float:  right;   }     Save  the  file  to  apply  this  change.   Step  20:   Now  we’re  going  to  style  #logo:     #logo{          width:  240px;          height:  200px;          display:  block;                   }     Save  the  file  to  apply  this  change.  
  • 22. Step  21:   Style  #coffee:     #coffee{          display:  block;          width:  283px;          height:  270px;          float:  left;           }     Save  the  file  to  apply  this  change.     Now,  #coffee  and  #coffeeInfo   should  be  next  to  each  other.  
  • 23. Step  22:   Let’s  fix  #coffeeInfo  to  look  more  like  the   finished  design.     Add  the  following  to  #coffeeInfo:      -­‐webkit-­‐border-­‐radius:  5px;          border-­‐radius:  5px;          margin-­‐right:  20px;     Save  the  file  to  apply  this  change.  
  • 24. At  this  point  your  site  should  look  like  this: