ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Web Technologies – CS 382
Lecture 2
3 Hrs
ï‚ž Inspecting the layout
ï‚¡ How to represent in HTML
ï‚¡ How to find elements
ï‚ž Floating, Positioning, Stacking
ï‚ž Layouts
ï‚ž Creating From wireframe OR PSD
ï‚ž Shaking Hands with Photoshop
 And of course CSS …
ï‚ž Structure of
ï‚¡ page
ï‚¡ Or even a specific element
ï‚ž Structure of
ï‚¡ page
ï‚¡ Or even a specific element
ï‚ž Styles of
ï‚¡ page
ï‚¡ Or even a specific
element
ï‚ž Its structure is based on some
wireframe
ï‚ž Style is upto designer ability to
visulize
ï‚ž Float
ï‚¡ Values: left | right | none | inherit
ï‚¡ Default: none
ï‚¡ Inherit: no
ï‚ž Always mention width of elements
ï‚ž Clearing Floated elements
ï‚¡ Clear: both | right | left | none | inherit
ï‚ž Floating multiple elements
ï‚ž You can create columns using floats
ï‚ž position
ï‚¡ Values: static | relative | absolute |
fixed | inherit
ï‚¡ Default: static
ï‚¡ Inherit: no
ï‚ž Relative
ï‚¡ Move relative to original position
ï‚¡ Actual position is preserved as space
ï‚ž Absolute
ï‚¡ Removed from flow
ï‚¡ positioned with respect to the
browser window or a containing
element
ï‚ž Fixed
ï‚¡ Stays in document window even
scroll
ï‚ž Specify using offset
ï‚¡ Top | left | right | bottom
ï‚ž Z-index
ï‚¡ Values: number | auto | inherit
ï‚¡ Default: auto
ï‚¡ Inherit: no
ï‚ž See page 367
ï‚ž Fixed
ï‚¡ Fixed in pixels
ï‚¡ Scrolls when window get smaller
ï‚ž Fluid (liquid)
ï‚¡ Adjust according to window
ï‚¡ % used
ï‚ž Elastic
ï‚¡ Width change, element size change
ï‚¡ Em used
ï‚ž Hybrid
ï‚¡ Combination of px, em, %
ï‚ž See Chapter 16
ï‚ž We will be creating today
ï‚ž Open The PSD
ï‚ž Discussion
ï‚ž Run Wamp Server
ï‚ž Create web project in Netbeans
ï‚ž Write HTML
ï‚¡ Discussion
ï‚¡ Assign proper class & id to elements
ï‚ž Write CSS (embedded)
ï‚¡ Discussion
ï‚¡ Be general like one rule all the things
ï‚¡ Positions (float & Clear)
ï‚¡ Style each element (header to footer)
ï‚¡ Hover affects
ï‚ž Done
Lec 2
Lec 2
Lec 2
Lec 2
Lec 2
Lec 2
Lec 2
Lec 2
ï‚ž Find PSD
ï‚¡ Apply formula to get your PSD
ï‚¢ Group# % 6
ï‚ž Due Date
ï‚¡ 16 Feb 2016 8:45AM
ï‚¡ Email: shehzadaslam@uet.edu.pk
ï‚¡ Subject: WT 2014-AS2
ï‚¡ Folder name must be group member rollnos
ï‚ž Book Reading
ï‚¡ Chapter 15, 16 from Learning web design
ï‚¡ Chapter 17 for more visual affects if you want (DYS)

More Related Content

Lec 2

  • 1. Web Technologies – CS 382 Lecture 2 3 Hrs
  • 2. ï‚ž Inspecting the layout ï‚¡ How to represent in HTML ï‚¡ How to find elements ï‚ž Floating, Positioning, Stacking ï‚ž Layouts ï‚ž Creating From wireframe OR PSD ï‚ž Shaking Hands with Photoshop ï‚ž And of course CSS …
  • 3. ï‚ž Structure of ï‚¡ page ï‚¡ Or even a specific element
  • 4. ï‚ž Structure of ï‚¡ page ï‚¡ Or even a specific element ï‚ž Styles of ï‚¡ page ï‚¡ Or even a specific element ï‚ž Its structure is based on some wireframe ï‚ž Style is upto designer ability to visulize
  • 5. ï‚ž Float ï‚¡ Values: left | right | none | inherit ï‚¡ Default: none ï‚¡ Inherit: no ï‚ž Always mention width of elements ï‚ž Clearing Floated elements ï‚¡ Clear: both | right | left | none | inherit ï‚ž Floating multiple elements ï‚ž You can create columns using floats
  • 6. ï‚ž position ï‚¡ Values: static | relative | absolute | fixed | inherit ï‚¡ Default: static ï‚¡ Inherit: no ï‚ž Relative ï‚¡ Move relative to original position ï‚¡ Actual position is preserved as space ï‚ž Absolute ï‚¡ Removed from flow ï‚¡ positioned with respect to the browser window or a containing element
  • 7. ï‚ž Fixed ï‚¡ Stays in document window even scroll ï‚ž Specify using offset ï‚¡ Top | left | right | bottom
  • 8. ï‚ž Z-index ï‚¡ Values: number | auto | inherit ï‚¡ Default: auto ï‚¡ Inherit: no ï‚ž See page 367
  • 9. ï‚ž Fixed ï‚¡ Fixed in pixels ï‚¡ Scrolls when window get smaller ï‚ž Fluid (liquid) ï‚¡ Adjust according to window ï‚¡ % used ï‚ž Elastic ï‚¡ Width change, element size change ï‚¡ Em used ï‚ž Hybrid ï‚¡ Combination of px, em, % ï‚ž See Chapter 16
  • 10. ï‚ž We will be creating today ï‚ž Open The PSD ï‚ž Discussion ï‚ž Run Wamp Server ï‚ž Create web project in Netbeans ï‚ž Write HTML ï‚¡ Discussion ï‚¡ Assign proper class & id to elements ï‚ž Write CSS (embedded) ï‚¡ Discussion ï‚¡ Be general like one rule all the things ï‚¡ Positions (float & Clear) ï‚¡ Style each element (header to footer) ï‚¡ Hover affects ï‚ž Done
  • 19. ï‚ž Find PSD ï‚¡ Apply formula to get your PSD ï‚¢ Group# % 6 ï‚ž Due Date ï‚¡ 16 Feb 2016 8:45AM ï‚¡ Email: shehzadaslam@uet.edu.pk ï‚¡ Subject: WT 2014-AS2 ï‚¡ Folder name must be group member rollnos ï‚ž Book Reading ï‚¡ Chapter 15, 16 from Learning web design ï‚¡ Chapter 17 for more visual affects if you want (DYS)