SlideShare ist ein Scribd-Unternehmen logo
1 von 18
CSS
Whats on the menu
Topics

CSS Introduction

CSS and HTML

Stylesheet Types

Stylesheet Examples

Menu Example

Example Explained

Common Mistakes
Welcome to CSS

CSS stands for Cascading Style Sheets

Styles define how to display HTML Elements

Styles were added to HTM4.0 to solve a
problem
HTML & CSS
 HTML was never intended to have tags.
but instead to define the contents of a
document such as heading and paragraph
tags.

In HTML 3.2 <font> and <color> tags were
added which caused NIGHTMARES for
web developers

This was fixed in HTML 4.0 when the W3C
added CSS Style Sheets
Types of Stye Sheets
There are 3 ways to implement CSS on a web page.


    External Style Sheet

    Internal Style Sheet

    Inline Style Sheet
EXTERNAL STYLESHEET
 HTML                                             CSS
<!DOCTYPE html>
<html>                                     h1{
<head>                                           color: blue;
<title>External Stylesheet</title>         }
<link rel=”stylesheet”ref=”style.css” />
</head>                                    p{
<body>                                           margin: 10px;
                                           }
<h1>This is a header.</h1>
<p>This is a paragraph.</p>

</body>
</html>
Internal Style Sheets
<!DOCTYPE html>
<html>
<head>
<title>Internal Stylesheet</title>

<style>
h1{
    color: blue;
}

p{
     margin: 10px;
}
</style>
</head>
<body>

<h1>This is a header.</h1>
<p>This is a paragraph.</p>

</body>
</html>
Inline Styling
<!DOCTYPE html>
<html>
<head>
<title>Inline Styling</title>
</head>
<body>

<h1 style=”color:blue”>This is a header.</h1>
<p style=”margin: 10px”>This is a paragraph.</p>

</body>
</html>
The Menu
This is our goal


To complete our goal we will use an internal
stylesheet so we can easily look back and
forth at the code.
The Code
               HTML                                                CSS
<!DOCTYPE html>                             *{margin: 0; padding: 0;}
<html>                                      ul{
<head>                                          list-style-type: none;
<link rel="stylesheet" href="style.css"/>       margin: 0; padding: 0;
</head>                                     }
<body>
                                            li{
<ul>                                        !     display: inline;
!    <li><a   href="#">Home</a></li>        !     padding: 0; margin: 0;
!    <li><a   href="#">About</a></li>       }
!    <li><a   href="#">Media</a></li>
!    <li><a   href="#">Links</a></li>       a{
!    <li><a   href="#">Contact</a></li>     !     margin:0;
</ul>                                       !     padding: 5px 40px 5px 8px;
                                            !     line-height: 30px;
</body>                                     !     color: white;
</html>                                     !     background-color: red;
                                            !     text-decoration: none;
                                            }
Lists - HTML
The menu is being constructed by an
Unordered List.

Unordered lists are used in so many ways in
web design such as navigation, lists, footers,
twitter feeds, image galleries etc.

Each list has a start and finish tag <ul>, </ul>.

Each list item has a start and finish tag as
well <li>,</li>.

They are used to identify lists and items.
Links - HTML

Each link has a start and end tag<a> and </
a>.

They also have other attributes such as: href,
rel, name .etc.

The hash tag “#” is used to represent a non
used link, like a filler link.
General CSS Information

 Just like the HTML, CSS has beginning and
 ending symbols.

 CSS uses the Curly Brackets { and }.

 Each CSS property requires a semicolon “;”
 at the end of each property declaration.
Reset and 0

* selects ALL elements on a website. and it is
used for a reset such as margin:0; padding:
0;.

When declaring dimensions whether its size
or position, 0 does not need the prefix em,
in, px .etc.
Menu - CSS
There are many property options for list
items bullets, you can make them bullets,
numbers, letters, roman numerals and even
images.

The margin: 0; padding: 0; properties remove
the margin and padding from the un ordered
list as well as from every descendant
element.

Then there are some visual enhancement
properties that are customizable to your
liking.
Common Mistakes
You need to use a doctype (Preferably html5
doctype) <!DOCTYPE html> in your websites
when floating ANYTHING or else it will not
work properly.

* reset should NOT be used with Outline,
Border or anything of that sort because it
may slow your websites performance. the
Margin and padding is the most basic of
stylesheet resets. there are many available
on : http://css-tricks.com/8146-the-lean-
mean-css-reset-machine/.
Resources
W3Schools.com

CSS-Tricks.com - Chris Coyier

PerishablePress.com Jeff Starr
Contact Info

          Name: Attila Hajzer
   Email: Attilahajzer5@gmail.com
Website: http://attilahajzer.host-ed.net/

        Make the next request!

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

Empfohlen

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Empfohlen (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Css whats on the menu.

  • 2. Topics CSS Introduction CSS and HTML Stylesheet Types Stylesheet Examples Menu Example Example Explained Common Mistakes
  • 3. Welcome to CSS CSS stands for Cascading Style Sheets Styles define how to display HTML Elements Styles were added to HTM4.0 to solve a problem
  • 4. HTML & CSS HTML was never intended to have tags. but instead to define the contents of a document such as heading and paragraph tags. In HTML 3.2 <font> and <color> tags were added which caused NIGHTMARES for web developers This was fixed in HTML 4.0 when the W3C added CSS Style Sheets
  • 5. Types of Stye Sheets There are 3 ways to implement CSS on a web page. External Style Sheet Internal Style Sheet Inline Style Sheet
  • 6. EXTERNAL STYLESHEET HTML CSS <!DOCTYPE html> <html> h1{ <head> color: blue; <title>External Stylesheet</title> } <link rel=”stylesheet”ref=”style.css” /> </head> p{ <body> margin: 10px; } <h1>This is a header.</h1> <p>This is a paragraph.</p> </body> </html>
  • 7. Internal Style Sheets <!DOCTYPE html> <html> <head> <title>Internal Stylesheet</title> <style> h1{ color: blue; } p{ margin: 10px; } </style> </head> <body> <h1>This is a header.</h1> <p>This is a paragraph.</p> </body> </html>
  • 8. Inline Styling <!DOCTYPE html> <html> <head> <title>Inline Styling</title> </head> <body> <h1 style=”color:blue”>This is a header.</h1> <p style=”margin: 10px”>This is a paragraph.</p> </body> </html>
  • 9. The Menu This is our goal To complete our goal we will use an internal stylesheet so we can easily look back and forth at the code.
  • 10. The Code HTML CSS <!DOCTYPE html> *{margin: 0; padding: 0;} <html> ul{ <head> list-style-type: none; <link rel="stylesheet" href="style.css"/> margin: 0; padding: 0; </head> } <body> li{ <ul> ! display: inline; ! <li><a href="#">Home</a></li> ! padding: 0; margin: 0; ! <li><a href="#">About</a></li> } ! <li><a href="#">Media</a></li> ! <li><a href="#">Links</a></li> a{ ! <li><a href="#">Contact</a></li> ! margin:0; </ul> ! padding: 5px 40px 5px 8px; ! line-height: 30px; </body> ! color: white; </html> ! background-color: red; ! text-decoration: none; }
  • 11. Lists - HTML The menu is being constructed by an Unordered List. Unordered lists are used in so many ways in web design such as navigation, lists, footers, twitter feeds, image galleries etc. Each list has a start and finish tag <ul>, </ul>. Each list item has a start and finish tag as well <li>,</li>. They are used to identify lists and items.
  • 12. Links - HTML Each link has a start and end tag<a> and </ a>. They also have other attributes such as: href, rel, name .etc. The hash tag “#” is used to represent a non used link, like a filler link.
  • 13. General CSS Information Just like the HTML, CSS has beginning and ending symbols. CSS uses the Curly Brackets { and }. Each CSS property requires a semicolon “;” at the end of each property declaration.
  • 14. Reset and 0 * selects ALL elements on a website. and it is used for a reset such as margin:0; padding: 0;. When declaring dimensions whether its size or position, 0 does not need the prefix em, in, px .etc.
  • 15. Menu - CSS There are many property options for list items bullets, you can make them bullets, numbers, letters, roman numerals and even images. The margin: 0; padding: 0; properties remove the margin and padding from the un ordered list as well as from every descendant element. Then there are some visual enhancement properties that are customizable to your liking.
  • 16. Common Mistakes You need to use a doctype (Preferably html5 doctype) <!DOCTYPE html> in your websites when floating ANYTHING or else it will not work properly. * reset should NOT be used with Outline, Border or anything of that sort because it may slow your websites performance. the Margin and padding is the most basic of stylesheet resets. there are many available on : http://css-tricks.com/8146-the-lean- mean-css-reset-machine/.
  • 17. Resources W3Schools.com CSS-Tricks.com - Chris Coyier PerishablePress.com Jeff Starr
  • 18. Contact Info Name: Attila Hajzer Email: Attilahajzer5@gmail.com Website: http://attilahajzer.host-ed.net/ Make the next request!

Hinweis der Redaktion

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n