SlideShare a Scribd company logo
Strumenti per il web design [ <a href=“#”> ]
Menu grafico Supponiamo di voler Realizzare un menu grafico Composto da alcune icone Affiancate una accanto all’altra che al passaggio del mouse diventano più scure Per prima cosa  All’interno del file  Index.html creo un div  Principale che conterrà tutti i bottoni e che chiamerò  bottoni E poi quattro div al suo interno che chiamerò Bottone1 Bottone2 Bottone3 Bottone4
Menu grafico <div id=&quot;bottoni&quot;> <a href=&quot;#&quot;><div id=&quot;bottone1&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone2&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone3&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone4&quot;></div></a> </div> E inserisco li link al sito o alle pagine desiderate  (qui per comodità abbiamo inserito solo un simbolo di # e non l’indirizzo vero e proprio
<div id=&quot;bottoni&quot;> <a href=&quot;#&quot;><div id=&quot;bottone1&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone2&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone3&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone4&quot;></div></a> </div> Nel foglio di stile definisco le caratteristiche del div “bottoni” tenedo conto che le immagini che devo inserire sono 4 e di grandezza 103px X 103px Quindi l’altezza dovrà essere appunto 103 e la larghezza 103x4 quindi almeno412. Per comodità lo faremo largo 500px #bottoni { width:500px; height:103px;  } 103px 103px
#bottoni { width:500px; height:103px;  } Successivamente definisco le caratteristiche di bottone 1 2 3 e 4  Ad ogni bottone metto come sfondo una delle quattro immagini che come sempre si trovano nella cartellina delle immagini che si chiama  img Inoltre inserisco il comando  float:left Affinché gli elementi possano affiancarsi l’uno all’altro e non stare uno sotto l’altro #bottone1 { height:103px; width:103px; background: url (img/but1.jpg) no-repeat; float:left; } #bottone2 { height:103px; width:103px; background:url(img/but2.jpg)no-repeat; float:left; } 103px 103px
Per fare in modo che al passaggio del mouse il bottone diventi + scuro, oltre a definire bottone1, bottone2, ecc, definisco anche il suo comportamento in  hover . Le caratteristiche saranno le stesse di bottone 1, bottone2, ecc ma a cambiare è l’immagine di sfondo e l’indicazione di hover #bottone1 { height:103px; width:103px; background: url (img/but1.jpg) no-repeat; float:left; } #bottone1:hover  { height:103px; width:103px; background: url  (img/but1_h.jpg ) no-repeat; float:left; } 103px 103px

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
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
Neil 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 2024
Albert 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 Insights
Kurio // 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 2024
Search 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 summary
SpeakerHub
 
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 Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit 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 management
MindGenius
 
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
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
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...
 

Lezione 5

  • 1. Strumenti per il web design [ <a href=“#”> ]
  • 2. Menu grafico Supponiamo di voler Realizzare un menu grafico Composto da alcune icone Affiancate una accanto all’altra che al passaggio del mouse diventano più scure Per prima cosa All’interno del file Index.html creo un div Principale che conterrà tutti i bottoni e che chiamerò bottoni E poi quattro div al suo interno che chiamerò Bottone1 Bottone2 Bottone3 Bottone4
  • 3. Menu grafico <div id=&quot;bottoni&quot;> <a href=&quot;#&quot;><div id=&quot;bottone1&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone2&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone3&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone4&quot;></div></a> </div> E inserisco li link al sito o alle pagine desiderate (qui per comodità abbiamo inserito solo un simbolo di # e non l’indirizzo vero e proprio
  • 4. <div id=&quot;bottoni&quot;> <a href=&quot;#&quot;><div id=&quot;bottone1&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone2&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone3&quot;></div></a> <a href=&quot;#&quot;><div id=&quot;bottone4&quot;></div></a> </div> Nel foglio di stile definisco le caratteristiche del div “bottoni” tenedo conto che le immagini che devo inserire sono 4 e di grandezza 103px X 103px Quindi l’altezza dovrà essere appunto 103 e la larghezza 103x4 quindi almeno412. Per comodità lo faremo largo 500px #bottoni { width:500px; height:103px; } 103px 103px
  • 5. #bottoni { width:500px; height:103px; } Successivamente definisco le caratteristiche di bottone 1 2 3 e 4 Ad ogni bottone metto come sfondo una delle quattro immagini che come sempre si trovano nella cartellina delle immagini che si chiama img Inoltre inserisco il comando float:left Affinché gli elementi possano affiancarsi l’uno all’altro e non stare uno sotto l’altro #bottone1 { height:103px; width:103px; background: url (img/but1.jpg) no-repeat; float:left; } #bottone2 { height:103px; width:103px; background:url(img/but2.jpg)no-repeat; float:left; } 103px 103px
  • 6. Per fare in modo che al passaggio del mouse il bottone diventi + scuro, oltre a definire bottone1, bottone2, ecc, definisco anche il suo comportamento in hover . Le caratteristiche saranno le stesse di bottone 1, bottone2, ecc ma a cambiare è l’immagine di sfondo e l’indicazione di hover #bottone1 { height:103px; width:103px; background: url (img/but1.jpg) no-repeat; float:left; } #bottone1:hover { height:103px; width:103px; background: url (img/but1_h.jpg ) no-repeat; float:left; } 103px 103px