SlideShare ist ein Scribd-Unternehmen logo
1 von 36
By Stephanie Huynh
Why have I created this presentation?




• For my web design class assignment based on
  what the class has focused on for the past few
  weeks which are:
           ~HTTP5 (Hyper Text Transfer Protocol)
           ~HTML (Hyper Text Mark up Language)
           ~Cascade Style Sheet (CSS)
What is my chosen
   element?
• To make a
                      difference to your
                      webpage you
                      design.
                    • Changes the
                      audience’s view of
 Why would you        web pages.
 need to use this   • Is creative
type of element?
Which internet browsers support the
       type of code we use?

                            •   Google Chrome
                            •   Internet Explorer
                            •   Firefox
                            •   Opera
                            •   Safari
       HINT - Google Chrome is the
       recommended internet browser to use to
       show CSS at its best potential
How to begin using HTTP/HTML
• You will first have to use a program to build
  your webpage.
• For starters you can use the program notepad.
• I prefer using a program called Notepad++
  which is a free program downloadable from
  the internet.
How to begin using CSS
             • This is a screenshot
               of my webpage html
               using notepad++.
             • To start using my
               CSS, I created a
               external CSS page
               and had to link it with
               my HTML page as
               seen on the
               screenshot.
• To begin demonstrating my element I will first
  have to import a image onto my webpage.




             I have chosen this image to
               focus on in my example.
• Here is a screenshot on how I have
                     imported a image into my html code.
                     I have used <img src=“image
                     name”.image type”/>

                       HINT: Ensure your image is saved in the same
                       folder/area as where your html and CSS code is saved.
In this example my image
name is “Picture1” and the
file type was “jpeg”
• This is what my webpage looks like so far.
• The amazing idea about CSS is that you can
  customise what a image can appear as or
  positioned on your webpage.
Border

   • My first creative CSS
     feature I would like to
     demonstrate is to
     create a border
     surrounding your
     selected image.
• The code displayed above in my CSS file, creates a
  black border 5 pixels thick.
  The code is;
  img {border : pixel size solid;}
Borders
• You can create different coloured borders for
  your image with the code used in the previous
  slide but with a little extra code to add.
   The code is;
  img {border : pixel size solid colour;}
  EG - img {border : 5px solid blue;}
• Next CSS feature I will demonstrate is to edit
  the size of the image displayed on my
  webpage.
  The code is;

  Width: Size in pixels
  Height: Size in pixels
• This is how my webpage is displayed so far
  with the following features on CSS;
  ~A border
  ~The change of size of the image
Positioning CSS
• The next CSS feature I will introduce and
  demonstrate is to have the ability to position
  your image in a certain way on your webpage.
  There are certain element positioning
  techniques available with the following codes;

  ~Static
  ~Absolute
  ~Fixed
  ~Relative
Static positioning
• This is the default setting for every page
  element. Each element that can be used all
  have the same default setting as ‘Static’
  positioning.
• The only reason why you would set an
  element to position: static is to forcefully
  remove some positioning that got applied to
  an element outside of your control.
Static positioning screenshot



                Also known as the default
                setting for all elements.
Relative positioning
• If you set a element to relative position
  without other positioning attributes
  (top, bottom, left or right) there will be no
  difference than the static positioning.
• If a positioning attribute e.g top100px is used
  than it will shift your element 100pixels down
  from where it is normally placed rather than
  100 pixels above the normal position the
  element is placed.
Relative positioning screenshot
Fixed positioning
• This type of positioning is used rarely but is
  also useful.
• It is relative positioned in a browser.
• The special feature of this positioning, is that
  it will not move even if the window is scrolled.
With the two screenshots
demonstrates the positioning set
to fixed. As I scrolled to the
bottom of my webpage the
image stayed in the same exact
position.
Absolute positioning
• This is the best positioning option because
  this technique allows users to place an
  element exactly where you want it to be
  placed.
• Using the positioning attributes top, bottom,
  left and right to set the position.
• Setting the position attribute using pixels on
  the webpage. (E.g Top:100px;)
• As I said before, setting your
  element to absolute, is the most
  ideal positioning as you can
  position your element exactly
  where you prefer.
  As seen on my screenshot I was
  able to position my element in
  the center of my webpage.
REMINDER - Web Browser differences
• As discussed before on a previous
  slide, different web browsers may affect some
  features offered for your element and CSS
  designs, such as my CSS demonstrations.
• I recommend using Google Chrome to ensure
  you are able to sight all features at it’s best
  quality.
Floating
• Elements are floated horizontally meaning
  left and right. (NOT up and down)
• A floated element will move as far either
  left or right depending where you set it.
• Other elements used will flow around the
  floating element.
Floating
                                          • Here are two
                                            screenshots of a
                                            image floating to
ABOVE – Image is floating to the right.     the right and
                                            another floating
                                            to the left.


ABOVE – Image is floating to the left.
• Below is a screenshot of several
  extra images uploaded onto my
  webpage and are all set on floating
  to the right.
• Than we can use a HTML div tag.
HTML Div tag
• Div tags can be viewed as containers as they
  group certain elements of a web page
  together.

• E.G – If I wanted to upload multiple
  images, and each image has different border
  settings, image size etc.
The image below is a screenshot of me using a div class for two images
and also the floating element. One image is floating on the left and the
other image floating on the right.




  The next slide will
  have valid code to
  make your web page
  like the above image.
• Here is the
  code I used
  to have my
  webpage
  displayed like
  the previous
  slide screen
  shot.
Testing
• I have tested my HTML/CSS element on two
  popular web browsers.

• Google Chrome – worked successfully
• Internet Explorer – worked successfully
What we have demonstrated in this
            presentation
• We have learnt how to begin our HTML5 Page and
  connecting a CSS page.
• We have shown you different web browsers you can choose
  to use.
• How to import a image into your web page.
• How to put a border around your image and select the
  colour of the border.
• How to change the size of your image using pixels.
• The different types of positioning for elements.
• How to make your element float to the left or right.
• What the div tag can do
• A result of my testing on two different web browsers.
By Stephanie Huynh

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSAmit Tyagi
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLAmit Tyagi
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSSSiddhantSingh980217
 
Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Devang Garach
 
Introduction to the Web and HTML
Introduction to the Web and HTMLIntroduction to the Web and HTML
Introduction to the Web and HTMLSiddharthBorderwala
 
Advanced dreamweaver
Advanced dreamweaverAdvanced dreamweaver
Advanced dreamweaverSumit Tambe
 
Web Development Basics: HOW TO in HTML
Web Development Basics: HOW TO in HTMLWeb Development Basics: HOW TO in HTML
Web Development Basics: HOW TO in HTMLDer Lo
 
Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxpriyadharshini murugan
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basicsEliran Eliassy
 
HTML CSS JS in Nut shell
HTML  CSS JS in Nut shellHTML  CSS JS in Nut shell
HTML CSS JS in Nut shellAshwin Shiv
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation Salman Memon
 

Was ist angesagt? (20)

HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
html & css
html & css html & css
html & css
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
 
Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3
 
Css
CssCss
Css
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
Introduction to the Web and HTML
Introduction to the Web and HTMLIntroduction to the Web and HTML
Introduction to the Web and HTML
 
Advanced dreamweaver
Advanced dreamweaverAdvanced dreamweaver
Advanced dreamweaver
 
Css ppt
Css pptCss ppt
Css ppt
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
Dhtml ppt (2)
Dhtml ppt (2)Dhtml ppt (2)
Dhtml ppt (2)
 
Web Development Basics: HOW TO in HTML
Web Development Basics: HOW TO in HTMLWeb Development Basics: HOW TO in HTML
Web Development Basics: HOW TO in HTML
 
Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Web Development
Web DevelopmentWeb Development
Web Development
 
HTML CSS JS in Nut shell
HTML  CSS JS in Nut shellHTML  CSS JS in Nut shell
HTML CSS JS in Nut shell
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 

Andere mochten auch

ATOMIC STRUCTURE
ATOMIC STRUCTUREATOMIC STRUCTURE
ATOMIC STRUCTUREmushkaziz02
 
Internet Safety For Parents v3
Internet Safety For Parents v3Internet Safety For Parents v3
Internet Safety For Parents v3MrAColley
 
Html & Css presentation
Html  & Css presentation Html  & Css presentation
Html & Css presentation joilrahat
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksAmit Tyagi
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Chris Poteet
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet pptabhilashagupta
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginnersjeroenvdmeer
 
HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2Sharon Wasden
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS PresentationShawn Calvert
 

Andere mochten auch (19)

ATOMIC STRUCTURE
ATOMIC STRUCTUREATOMIC STRUCTURE
ATOMIC STRUCTURE
 
Internet Safety For Parents v3
Internet Safety For Parents v3Internet Safety For Parents v3
Internet Safety For Parents v3
 
Html & Css presentation
Html  & Css presentation Html  & Css presentation
Html & Css presentation
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Reveal.js
Reveal.jsReveal.js
Reveal.js
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
reveal.js 3.0.0
reveal.js 3.0.0reveal.js 3.0.0
reveal.js 3.0.0
 
HTML/CSS Lecture 1
HTML/CSS Lecture 1HTML/CSS Lecture 1
HTML/CSS Lecture 1
 
HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 

Ähnlich wie CSS Image Styling Techniques

Advanced CSS.pptx
Advanced CSS.pptxAdvanced CSS.pptx
Advanced CSS.pptxDiyonaVas
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Thinkful
 
WordPress Plugins to add style to your website
WordPress Plugins to add style to your websiteWordPress Plugins to add style to your website
WordPress Plugins to add style to your websiteBelinda Johnstone
 
Html 5 and CSS - Image Element
Html 5 and CSS - Image ElementHtml 5 and CSS - Image Element
Html 5 and CSS - Image ElementKempy7000
 
Code & Design your first website 4/18
Code & Design your first website 4/18Code & Design your first website 4/18
Code & Design your first website 4/18TJ Stalcup
 
Elements of html powerpoint
Elements of html powerpointElements of html powerpoint
Elements of html powerpointAnastasia1993
 
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin..."Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...Yandex
 
Optimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereOptimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereStephen Bell
 
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.GaziAhsan
 
wordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemswordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemsDigital Systems
 
Responsive web design
Responsive web designResponsive web design
Responsive web designRicha Goel
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlantaThinkful
 
SIM Digital Marketing COURSES PPT.pptx
SIM Digital Marketing COURSES PPT.pptxSIM Digital Marketing COURSES PPT.pptx
SIM Digital Marketing COURSES PPT.pptxShaileshBone
 
Core Web Vitals Optimization for any website, especially WordPress
Core Web Vitals Optimization for any website, especially WordPressCore Web Vitals Optimization for any website, especially WordPress
Core Web Vitals Optimization for any website, especially WordPressClementYo
 
Minimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tipsMinimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tipsCgColors
 

Ähnlich wie CSS Image Styling Techniques (20)

Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
 
Advanced CSS.pptx
Advanced CSS.pptxAdvanced CSS.pptx
Advanced CSS.pptx
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
 
WordPress Plugins to add style to your website
WordPress Plugins to add style to your websiteWordPress Plugins to add style to your website
WordPress Plugins to add style to your website
 
Html 5 and CSS - Image Element
Html 5 and CSS - Image ElementHtml 5 and CSS - Image Element
Html 5 and CSS - Image Element
 
Code & Design your first website 4/18
Code & Design your first website 4/18Code & Design your first website 4/18
Code & Design your first website 4/18
 
Chapter 7: Images
Chapter 7: ImagesChapter 7: Images
Chapter 7: Images
 
Elements of html powerpoint
Elements of html powerpointElements of html powerpoint
Elements of html powerpoint
 
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin..."Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
 
Content Optimization
Content OptimizationContent Optimization
Content Optimization
 
Optimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereOptimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get there
 
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.
 
Rwd slidedeck
Rwd slidedeckRwd slidedeck
Rwd slidedeck
 
wordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemswordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systems
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Chapter 2.pdf
Chapter 2.pdfChapter 2.pdf
Chapter 2.pdf
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlanta
 
SIM Digital Marketing COURSES PPT.pptx
SIM Digital Marketing COURSES PPT.pptxSIM Digital Marketing COURSES PPT.pptx
SIM Digital Marketing COURSES PPT.pptx
 
Core Web Vitals Optimization for any website, especially WordPress
Core Web Vitals Optimization for any website, especially WordPressCore Web Vitals Optimization for any website, especially WordPress
Core Web Vitals Optimization for any website, especially WordPress
 
Minimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tipsMinimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tips
 

Kürzlich hochgeladen

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
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...Martijn de Jong
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Kürzlich hochgeladen (20)

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

CSS Image Styling Techniques

  • 2. Why have I created this presentation? • For my web design class assignment based on what the class has focused on for the past few weeks which are: ~HTTP5 (Hyper Text Transfer Protocol) ~HTML (Hyper Text Mark up Language) ~Cascade Style Sheet (CSS)
  • 3. What is my chosen element?
  • 4. • To make a difference to your webpage you design. • Changes the audience’s view of Why would you web pages. need to use this • Is creative type of element?
  • 5. Which internet browsers support the type of code we use? • Google Chrome • Internet Explorer • Firefox • Opera • Safari HINT - Google Chrome is the recommended internet browser to use to show CSS at its best potential
  • 6. How to begin using HTTP/HTML • You will first have to use a program to build your webpage. • For starters you can use the program notepad. • I prefer using a program called Notepad++ which is a free program downloadable from the internet.
  • 7. How to begin using CSS • This is a screenshot of my webpage html using notepad++. • To start using my CSS, I created a external CSS page and had to link it with my HTML page as seen on the screenshot.
  • 8. • To begin demonstrating my element I will first have to import a image onto my webpage. I have chosen this image to focus on in my example.
  • 9. • Here is a screenshot on how I have imported a image into my html code. I have used <img src=“image name”.image type”/> HINT: Ensure your image is saved in the same folder/area as where your html and CSS code is saved. In this example my image name is “Picture1” and the file type was “jpeg”
  • 10. • This is what my webpage looks like so far.
  • 11. • The amazing idea about CSS is that you can customise what a image can appear as or positioned on your webpage.
  • 12. Border • My first creative CSS feature I would like to demonstrate is to create a border surrounding your selected image.
  • 13. • The code displayed above in my CSS file, creates a black border 5 pixels thick. The code is; img {border : pixel size solid;}
  • 14. Borders • You can create different coloured borders for your image with the code used in the previous slide but with a little extra code to add. The code is; img {border : pixel size solid colour;} EG - img {border : 5px solid blue;}
  • 15. • Next CSS feature I will demonstrate is to edit the size of the image displayed on my webpage. The code is; Width: Size in pixels Height: Size in pixels
  • 16. • This is how my webpage is displayed so far with the following features on CSS; ~A border ~The change of size of the image
  • 17. Positioning CSS • The next CSS feature I will introduce and demonstrate is to have the ability to position your image in a certain way on your webpage. There are certain element positioning techniques available with the following codes; ~Static ~Absolute ~Fixed ~Relative
  • 18. Static positioning • This is the default setting for every page element. Each element that can be used all have the same default setting as ‘Static’ positioning. • The only reason why you would set an element to position: static is to forcefully remove some positioning that got applied to an element outside of your control.
  • 19. Static positioning screenshot Also known as the default setting for all elements.
  • 20. Relative positioning • If you set a element to relative position without other positioning attributes (top, bottom, left or right) there will be no difference than the static positioning. • If a positioning attribute e.g top100px is used than it will shift your element 100pixels down from where it is normally placed rather than 100 pixels above the normal position the element is placed.
  • 22. Fixed positioning • This type of positioning is used rarely but is also useful. • It is relative positioned in a browser. • The special feature of this positioning, is that it will not move even if the window is scrolled.
  • 23. With the two screenshots demonstrates the positioning set to fixed. As I scrolled to the bottom of my webpage the image stayed in the same exact position.
  • 24. Absolute positioning • This is the best positioning option because this technique allows users to place an element exactly where you want it to be placed. • Using the positioning attributes top, bottom, left and right to set the position. • Setting the position attribute using pixels on the webpage. (E.g Top:100px;)
  • 25. • As I said before, setting your element to absolute, is the most ideal positioning as you can position your element exactly where you prefer. As seen on my screenshot I was able to position my element in the center of my webpage.
  • 26. REMINDER - Web Browser differences • As discussed before on a previous slide, different web browsers may affect some features offered for your element and CSS designs, such as my CSS demonstrations. • I recommend using Google Chrome to ensure you are able to sight all features at it’s best quality.
  • 27. Floating • Elements are floated horizontally meaning left and right. (NOT up and down) • A floated element will move as far either left or right depending where you set it. • Other elements used will flow around the floating element.
  • 28. Floating • Here are two screenshots of a image floating to ABOVE – Image is floating to the right. the right and another floating to the left. ABOVE – Image is floating to the left.
  • 29. • Below is a screenshot of several extra images uploaded onto my webpage and are all set on floating to the right.
  • 30. • Than we can use a HTML div tag.
  • 31. HTML Div tag • Div tags can be viewed as containers as they group certain elements of a web page together. • E.G – If I wanted to upload multiple images, and each image has different border settings, image size etc.
  • 32. The image below is a screenshot of me using a div class for two images and also the floating element. One image is floating on the left and the other image floating on the right. The next slide will have valid code to make your web page like the above image.
  • 33. • Here is the code I used to have my webpage displayed like the previous slide screen shot.
  • 34. Testing • I have tested my HTML/CSS element on two popular web browsers. • Google Chrome – worked successfully • Internet Explorer – worked successfully
  • 35. What we have demonstrated in this presentation • We have learnt how to begin our HTML5 Page and connecting a CSS page. • We have shown you different web browsers you can choose to use. • How to import a image into your web page. • How to put a border around your image and select the colour of the border. • How to change the size of your image using pixels. • The different types of positioning for elements. • How to make your element float to the left or right. • What the div tag can do • A result of my testing on two different web browsers.