SlideShare una empresa de Scribd logo
1 de 33
Joomla! Day UK 2009
Joomla! Day UK 2009 Menus and how to make them look cool Providing a flexible platform for digital publishing and collaboration. Chris Davenport Joomla! Core Team
Choosing a template Choose primarily for layout Menus can usually be customised
All kinds of menus All menus are just HTML unordered lists
Basic menu HTML ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Some tags and attributes stripped for clarity URLs shortened for clarity
Basic CSS styling ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Learn more:  http://www.w3schools.com/css/default.asp
CSS Box Model Margin Padding Border Content box Bounding box
Basic menu styling ,[object Object],ul.menu { list-style: none; margin: 0; padding: 0; } Default Joomla menu class Corresponding class selector Don't need any of these styles if you used a CSS reset script
Vertical menus
Vertical menus ,[object Object],[object Object],[object Object],[object Object],Gives all menu items a fixed width
Horizontal menus
Variable width horizontal ,[object Object],[object Object],[object Object]
Fixed width horizontal ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Basic styling ul.menu a { display: block; width: 8.5em; font-size: 2em; text-decoration: none; margin-top: 10px; padding: 5px 5px 5px 15px; color: #2b3d91; background-color: #f0f0f0; }
Web developer toolbar http://addons.mozilla.org/firefox/60/
Roll-over effects ,[object Object],[object Object],[object Object],[object Object],Reminder: The order of CSS pseudo-classes for link states is important. Mnemonic: “LoVe - HAte” Example ul.menu a:link, ul.menu a:visited { text-decoration: none; } ul.menu a:hover { text-decoration: underline; }
Roll-over effects: Example ul.menu a:hover { color: white; background-color: blue; } ul.menu a:link, ul.menu a:visited { color: blue; background-color: white; } ul.menu a:active { color: white; background-color: red; }
Roll-over effects: Borders ul.menu a:link, ul.menu a:visited { padding: 0.2em 0.4em; border-left: 0.4em solid #2b3d91; color: #2b3d91; background: #f6f6ff; } ul.menu a:hover { border-left: 0.4em solid #aea; color: white; background: #369; } ul.menu a:active { border-left: 0.4em solid red; }
Roll-over effects: submenus ul.menu li ul { position: absolute; width: 300px; left: -999em; } ul.menu li:hover ul { left: auto; margin-left: 352px; margin-top: -15px; } This shifts the sub-menu off the page  This brings the sub-menu back onto the page  Use margins to position the sub-menu http://www.alistapart.com/articles/dropdowns http://htmldog.com/articles/suckerfish/dropdowns/
Joomla menu CSS <ul class=&quot;menu&quot;> <li id=&quot;current&quot; class=&quot;active item1&quot;> <li class=&quot;parent item27&quot;> <li class=&quot;item2&quot;> Sample data: Home page This menu item has an ItemID of 1. There can be only one  current  menu item so it has an  id  of “current” This menu item is the  parent  of at least one sub-menu so it has a class of “parent”.
Joomla menu CSS <ul class=&quot;menu&quot;> <li class=&quot;item1&quot;> <li class=&quot;parent active item27&quot;> <ul> <li id=&quot;current&quot; class=&quot;active item34&quot;> Sample data: What's New in 1.5? page There can be many  active  menu items so they have a  class  of “active”
Joomla menu item states ul.menu li#current a:link, ul.menu li#current a:visited, ul.menu li.active a:link, ul.menu li.active a:visited { color: #f0f0f0; background: #2b3d91; border-left: 0.4em solid #fe3; } ul.menu li#current a:hover, ul.menu li.active a:hover { border-left: 0.4em solid #aea; } Remember: there's only one current item But there can be more than one active item Sometimes you may need to change the hover colour for the current item
Joomla menu CSS cascade /* Basic link styles - Joomla states */ ul.menu li#current a:link, ul.menu li#current a:visited, ul.menu li.active > a:link, ul.menu li.active > a:visited {} /* Basic menu styles */ ul.menu {} /* Hover states */ ul.menu a:hover, ul.menu li#current a:hover, ul.menu li.active a:hover {} /* Suckerfish - Hide/show sub-menus */ ul.menu li ul { position: absolute; left: -999em; } ul.menu li:hover ul { left: auto; margin-left: 342px; margin-top: -44px; } /* Basic link styles */ ul.menu a:link, ul.menu a:visited {} /* Styles for parent menus */ ul.menu li.parent {} /* Active states */ ul.menu a:active, ul.menu li#current a:active, ul.menu li.active a:active {}
Background images ul.menu a:link, ul.menu a:visited { padding: 5px 5px 5px 25px; background: url(../images/arrow.png) no-repeat center left; } The path to the image is relative to the CSS file, not the template root Increase the left padding to allow room for the background image Use “center” to centre the image vertically
Background images ul.menu a:link, ul.menu a:visited { margin-top: 10px; padding: 5px 5px 5px 25px; background: url(../images/button_0.png) no-repeat center left; color: white; } ul.menu a:hover { background: url(../images/button_1.png) no-repeat center left; }
Where to get button images ,[object Object],[object Object],[object Object],[object Object]
Joomla Menu Tag ID Module Manager -> Module: [Edit] <ul class=”menu” id=”main-menu”> Enter an id here and it will be added to the UL here Instead of ul.menu, use ul#main-menu
Joomla Menu Class Suffix <ul class=”menu-main-menu”> Module Manager -> Module: [Edit] Enter a suffix here and it will be added to the UL here
Joomla Menu Class Suffix Tip: If you enter a Menu Class Suffix with a leading space, you will get separate CSS classes in the UL. Tip: You can have as many classes in the UL as you like. <ul class=”menu main-menu”> <ul class=”menu main left rounded”>
Conclusion ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
If you can't be bothered Check out the extensions site: http://extensions.joomla.org/extensions/core-enhancements/menu-systems
Joomla menus Questions?
Copyright and Licence Copyright © 2009 Chris Davenport This presentation is available for use under the Joomla! Electronic Documentation License http://docs.joomla.org/JEDL

Más contenido relacionado

La actualidad más candente

How to Develop a Basic Magento Extension Tutorial
How to Develop a Basic Magento Extension TutorialHow to Develop a Basic Magento Extension Tutorial
How to Develop a Basic Magento Extension TutorialHendy Irawan
 
Resnick webconversion2
Resnick webconversion2Resnick webconversion2
Resnick webconversion2comedyjant
 
In some simple steps, your site can stand out from the rest. Here's how...
In some simple steps, your site can stand out from the rest. Here's how... In some simple steps, your site can stand out from the rest. Here's how...
In some simple steps, your site can stand out from the rest. Here's how... British Council
 
Class 3 create an absolute layout with css abs position (aptana)
Class 3  create an absolute layout with css abs position (aptana)Class 3  create an absolute layout with css abs position (aptana)
Class 3 create an absolute layout with css abs position (aptana)Erin M. Kidwell
 
Develop advance joomla! MVC Component for version 3
Develop advance joomla! MVC Component for version 3Develop advance joomla! MVC Component for version 3
Develop advance joomla! MVC Component for version 3Gunjan Patel
 
Developing new feature in Joomla - Joomladay UK 2016
Developing new feature in Joomla - Joomladay UK 2016Developing new feature in Joomla - Joomladay UK 2016
Developing new feature in Joomla - Joomladay UK 2016Peter Martin
 
Custom Template for Joomla! 3
Custom Template for Joomla! 3Custom Template for Joomla! 3
Custom Template for Joomla! 3Carly Willats
 
How to Create simple One Page site
How to Create simple One Page siteHow to Create simple One Page site
How to Create simple One Page siteMoneer kamal
 
How to create a joomla component from scratch
How to create a joomla component from scratchHow to create a joomla component from scratch
How to create a joomla component from scratchTim Plummer
 
InsideoutLegal's pick of WordPress themes
InsideoutLegal's pick of WordPress themesInsideoutLegal's pick of WordPress themes
InsideoutLegal's pick of WordPress themesnzde
 
Dress Your WordPress with Child Themes
Dress Your WordPress with Child ThemesDress Your WordPress with Child Themes
Dress Your WordPress with Child ThemesLaurie M. Rauch
 
So you want to build a Facebook app
So you want to build a Facebook appSo you want to build a Facebook app
So you want to build a Facebook appkamal.fariz
 
Introduction to building joomla! components using FOF
Introduction to building joomla! components using FOFIntroduction to building joomla! components using FOF
Introduction to building joomla! components using FOFTim Plummer
 
PSD to WordPress
PSD to WordPressPSD to WordPress
PSD to WordPressNile Flores
 
Joomla 3 JLayout's - Joomladay Netherlands 2014 #jd14nl
Joomla 3 JLayout's - Joomladay Netherlands 2014 #jd14nlJoomla 3 JLayout's - Joomladay Netherlands 2014 #jd14nl
Joomla 3 JLayout's - Joomladay Netherlands 2014 #jd14nlPhilip Locke
 
Bootstrap 3 in Joomla!
Bootstrap 3 in Joomla!Bootstrap 3 in Joomla!
Bootstrap 3 in Joomla!Hans Kuijpers
 
Confluence - Improving Space Navigation. London AUG October 2013
Confluence - Improving Space Navigation. London AUG October 2013Confluence - Improving Space Navigation. London AUG October 2013
Confluence - Improving Space Navigation. London AUG October 2013Charles_Hall
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleErin M. Kidwell
 
Alt tab - better apex tabs
Alt tab - better apex tabsAlt tab - better apex tabs
Alt tab - better apex tabsEnkitec
 

La actualidad más candente (20)

How to Develop a Basic Magento Extension Tutorial
How to Develop a Basic Magento Extension TutorialHow to Develop a Basic Magento Extension Tutorial
How to Develop a Basic Magento Extension Tutorial
 
Resnick webconversion2
Resnick webconversion2Resnick webconversion2
Resnick webconversion2
 
In some simple steps, your site can stand out from the rest. Here's how...
In some simple steps, your site can stand out from the rest. Here's how... In some simple steps, your site can stand out from the rest. Here's how...
In some simple steps, your site can stand out from the rest. Here's how...
 
Class 3 create an absolute layout with css abs position (aptana)
Class 3  create an absolute layout with css abs position (aptana)Class 3  create an absolute layout with css abs position (aptana)
Class 3 create an absolute layout with css abs position (aptana)
 
Develop advance joomla! MVC Component for version 3
Develop advance joomla! MVC Component for version 3Develop advance joomla! MVC Component for version 3
Develop advance joomla! MVC Component for version 3
 
Developing new feature in Joomla - Joomladay UK 2016
Developing new feature in Joomla - Joomladay UK 2016Developing new feature in Joomla - Joomladay UK 2016
Developing new feature in Joomla - Joomladay UK 2016
 
Custom Template for Joomla! 3
Custom Template for Joomla! 3Custom Template for Joomla! 3
Custom Template for Joomla! 3
 
How to Create simple One Page site
How to Create simple One Page siteHow to Create simple One Page site
How to Create simple One Page site
 
How to create a joomla component from scratch
How to create a joomla component from scratchHow to create a joomla component from scratch
How to create a joomla component from scratch
 
InsideoutLegal's pick of WordPress themes
InsideoutLegal's pick of WordPress themesInsideoutLegal's pick of WordPress themes
InsideoutLegal's pick of WordPress themes
 
Dress Your WordPress with Child Themes
Dress Your WordPress with Child ThemesDress Your WordPress with Child Themes
Dress Your WordPress with Child Themes
 
So you want to build a Facebook app
So you want to build a Facebook appSo you want to build a Facebook app
So you want to build a Facebook app
 
Introduction to building joomla! components using FOF
Introduction to building joomla! components using FOFIntroduction to building joomla! components using FOF
Introduction to building joomla! components using FOF
 
PSD to WordPress
PSD to WordPressPSD to WordPress
PSD to WordPress
 
Joomla 3 JLayout's - Joomladay Netherlands 2014 #jd14nl
Joomla 3 JLayout's - Joomladay Netherlands 2014 #jd14nlJoomla 3 JLayout's - Joomladay Netherlands 2014 #jd14nl
Joomla 3 JLayout's - Joomladay Netherlands 2014 #jd14nl
 
Bootstrap 3 in Joomla!
Bootstrap 3 in Joomla!Bootstrap 3 in Joomla!
Bootstrap 3 in Joomla!
 
Confluence - Improving Space Navigation. London AUG October 2013
Confluence - Improving Space Navigation. London AUG October 2013Confluence - Improving Space Navigation. London AUG October 2013
Confluence - Improving Space Navigation. London AUG October 2013
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddle
 
Alt tab - better apex tabs
Alt tab - better apex tabsAlt tab - better apex tabs
Alt tab - better apex tabs
 
18. images in symfony 4
18. images in symfony 418. images in symfony 4
18. images in symfony 4
 

Similar a Joomla! Day UK 2009 Menus Presentation

Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)gng542
 
DG Group - Active Or Passive Website
DG Group - Active Or Passive WebsiteDG Group - Active Or Passive Website
DG Group - Active Or Passive WebsiteFranco De Bonis
 
Html structure
Html structureHtml structure
Html structureakkias
 
Drupal Omega and Responsive Build out
Drupal Omega and Responsive Build outDrupal Omega and Responsive Build out
Drupal Omega and Responsive Build outTim Whelan
 
Twitter bootstrap on rails
Twitter bootstrap on railsTwitter bootstrap on rails
Twitter bootstrap on railsMasakuni Kato
 
CSS Disable Button - How to Disable Buttons Using CSS - Blogs
CSS Disable Button - How to Disable Buttons Using CSS - BlogsCSS Disable Button - How to Disable Buttons Using CSS - Blogs
CSS Disable Button - How to Disable Buttons Using CSS - BlogsRonDosh
 
Supercharged HTML & CSS
Supercharged HTML & CSSSupercharged HTML & CSS
Supercharged HTML & CSSMax Kraszewski
 
Stylesheets for Online Help - Scott DeLoach, ClickStart
Stylesheets for Online Help - Scott DeLoach, ClickStartStylesheets for Online Help - Scott DeLoach, ClickStart
Stylesheets for Online Help - Scott DeLoach, ClickStartScott DeLoach
 
BEM it! Introduction to BEM methodology
BEM it! Introduction to BEM methodologyBEM it! Introduction to BEM methodology
BEM it! Introduction to BEM methodologyVarya Stepanova
 
Html basics 8 frame
Html basics 8 frameHtml basics 8 frame
Html basics 8 frameH K
 
Modules and Components Introduction in Joomla! 2.5
Modules and Components Introduction in Joomla! 2.5Modules and Components Introduction in Joomla! 2.5
Modules and Components Introduction in Joomla! 2.5Vishwash Gaur
 
Building websites-with-joomla-1-5-sample-chapter-chapter-7-the-menus-menu
Building websites-with-joomla-1-5-sample-chapter-chapter-7-the-menus-menuBuilding websites-with-joomla-1-5-sample-chapter-chapter-7-the-menus-menu
Building websites-with-joomla-1-5-sample-chapter-chapter-7-the-menus-menuGiang Nguyễn
 
WordPress as a Content Management System
WordPress as a Content Management SystemWordPress as a Content Management System
WordPress as a Content Management SystemValent Mustamin
 
Modifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users groupModifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users groupEvan Mullins
 

Similar a Joomla! Day UK 2009 Menus Presentation (20)

Css
CssCss
Css
 
Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)
 
Accessible code-patterns
Accessible code-patternsAccessible code-patterns
Accessible code-patterns
 
DG Group - Active Or Passive Website
DG Group - Active Or Passive WebsiteDG Group - Active Or Passive Website
DG Group - Active Or Passive Website
 
Html structure
Html structureHtml structure
Html structure
 
Drupal Omega and Responsive Build out
Drupal Omega and Responsive Build outDrupal Omega and Responsive Build out
Drupal Omega and Responsive Build out
 
Twitter bootstrap on rails
Twitter bootstrap on railsTwitter bootstrap on rails
Twitter bootstrap on rails
 
CSS Disable Button - How to Disable Buttons Using CSS - Blogs
CSS Disable Button - How to Disable Buttons Using CSS - BlogsCSS Disable Button - How to Disable Buttons Using CSS - Blogs
CSS Disable Button - How to Disable Buttons Using CSS - Blogs
 
Supercharged HTML & CSS
Supercharged HTML & CSSSupercharged HTML & CSS
Supercharged HTML & CSS
 
Stylesheets for Online Help - Scott DeLoach, ClickStart
Stylesheets for Online Help - Scott DeLoach, ClickStartStylesheets for Online Help - Scott DeLoach, ClickStart
Stylesheets for Online Help - Scott DeLoach, ClickStart
 
BEM it! Introduction to BEM methodology
BEM it! Introduction to BEM methodologyBEM it! Introduction to BEM methodology
BEM it! Introduction to BEM methodology
 
Stole16
Stole16Stole16
Stole16
 
Css(handbook)
Css(handbook)Css(handbook)
Css(handbook)
 
Html basics 8 frame
Html basics 8 frameHtml basics 8 frame
Html basics 8 frame
 
Intro to CSS
Intro to CSSIntro to CSS
Intro to CSS
 
Modules and Components Introduction in Joomla! 2.5
Modules and Components Introduction in Joomla! 2.5Modules and Components Introduction in Joomla! 2.5
Modules and Components Introduction in Joomla! 2.5
 
Building websites-with-joomla-1-5-sample-chapter-chapter-7-the-menus-menu
Building websites-with-joomla-1-5-sample-chapter-chapter-7-the-menus-menuBuilding websites-with-joomla-1-5-sample-chapter-chapter-7-the-menus-menu
Building websites-with-joomla-1-5-sample-chapter-chapter-7-the-menus-menu
 
WordPress as a Content Management System
WordPress as a Content Management SystemWordPress as a Content Management System
WordPress as a Content Management System
 
Bootstrap [part 2]
Bootstrap [part 2]Bootstrap [part 2]
Bootstrap [part 2]
 
Modifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users groupModifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users group
 

Último

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 

Último (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 

Joomla! Day UK 2009 Menus Presentation

  • 2. Joomla! Day UK 2009 Menus and how to make them look cool Providing a flexible platform for digital publishing and collaboration. Chris Davenport Joomla! Core Team
  • 3. Choosing a template Choose primarily for layout Menus can usually be customised
  • 4. All kinds of menus All menus are just HTML unordered lists
  • 5.
  • 6.
  • 7. CSS Box Model Margin Padding Border Content box Bounding box
  • 8.
  • 10.
  • 12.
  • 13.
  • 14. Basic styling ul.menu a { display: block; width: 8.5em; font-size: 2em; text-decoration: none; margin-top: 10px; padding: 5px 5px 5px 15px; color: #2b3d91; background-color: #f0f0f0; }
  • 15. Web developer toolbar http://addons.mozilla.org/firefox/60/
  • 16.
  • 17. Roll-over effects: Example ul.menu a:hover { color: white; background-color: blue; } ul.menu a:link, ul.menu a:visited { color: blue; background-color: white; } ul.menu a:active { color: white; background-color: red; }
  • 18. Roll-over effects: Borders ul.menu a:link, ul.menu a:visited { padding: 0.2em 0.4em; border-left: 0.4em solid #2b3d91; color: #2b3d91; background: #f6f6ff; } ul.menu a:hover { border-left: 0.4em solid #aea; color: white; background: #369; } ul.menu a:active { border-left: 0.4em solid red; }
  • 19. Roll-over effects: submenus ul.menu li ul { position: absolute; width: 300px; left: -999em; } ul.menu li:hover ul { left: auto; margin-left: 352px; margin-top: -15px; } This shifts the sub-menu off the page This brings the sub-menu back onto the page Use margins to position the sub-menu http://www.alistapart.com/articles/dropdowns http://htmldog.com/articles/suckerfish/dropdowns/
  • 20. Joomla menu CSS <ul class=&quot;menu&quot;> <li id=&quot;current&quot; class=&quot;active item1&quot;> <li class=&quot;parent item27&quot;> <li class=&quot;item2&quot;> Sample data: Home page This menu item has an ItemID of 1. There can be only one current menu item so it has an id of “current” This menu item is the parent of at least one sub-menu so it has a class of “parent”.
  • 21. Joomla menu CSS <ul class=&quot;menu&quot;> <li class=&quot;item1&quot;> <li class=&quot;parent active item27&quot;> <ul> <li id=&quot;current&quot; class=&quot;active item34&quot;> Sample data: What's New in 1.5? page There can be many active menu items so they have a class of “active”
  • 22. Joomla menu item states ul.menu li#current a:link, ul.menu li#current a:visited, ul.menu li.active a:link, ul.menu li.active a:visited { color: #f0f0f0; background: #2b3d91; border-left: 0.4em solid #fe3; } ul.menu li#current a:hover, ul.menu li.active a:hover { border-left: 0.4em solid #aea; } Remember: there's only one current item But there can be more than one active item Sometimes you may need to change the hover colour for the current item
  • 23. Joomla menu CSS cascade /* Basic link styles - Joomla states */ ul.menu li#current a:link, ul.menu li#current a:visited, ul.menu li.active > a:link, ul.menu li.active > a:visited {} /* Basic menu styles */ ul.menu {} /* Hover states */ ul.menu a:hover, ul.menu li#current a:hover, ul.menu li.active a:hover {} /* Suckerfish - Hide/show sub-menus */ ul.menu li ul { position: absolute; left: -999em; } ul.menu li:hover ul { left: auto; margin-left: 342px; margin-top: -44px; } /* Basic link styles */ ul.menu a:link, ul.menu a:visited {} /* Styles for parent menus */ ul.menu li.parent {} /* Active states */ ul.menu a:active, ul.menu li#current a:active, ul.menu li.active a:active {}
  • 24. Background images ul.menu a:link, ul.menu a:visited { padding: 5px 5px 5px 25px; background: url(../images/arrow.png) no-repeat center left; } The path to the image is relative to the CSS file, not the template root Increase the left padding to allow room for the background image Use “center” to centre the image vertically
  • 25. Background images ul.menu a:link, ul.menu a:visited { margin-top: 10px; padding: 5px 5px 5px 25px; background: url(../images/button_0.png) no-repeat center left; color: white; } ul.menu a:hover { background: url(../images/button_1.png) no-repeat center left; }
  • 26.
  • 27. Joomla Menu Tag ID Module Manager -> Module: [Edit] <ul class=”menu” id=”main-menu”> Enter an id here and it will be added to the UL here Instead of ul.menu, use ul#main-menu
  • 28. Joomla Menu Class Suffix <ul class=”menu-main-menu”> Module Manager -> Module: [Edit] Enter a suffix here and it will be added to the UL here
  • 29. Joomla Menu Class Suffix Tip: If you enter a Menu Class Suffix with a leading space, you will get separate CSS classes in the UL. Tip: You can have as many classes in the UL as you like. <ul class=”menu main-menu”> <ul class=”menu main left rounded”>
  • 30.
  • 31. If you can't be bothered Check out the extensions site: http://extensions.joomla.org/extensions/core-enhancements/menu-systems
  • 33. Copyright and Licence Copyright © 2009 Chris Davenport This presentation is available for use under the Joomla! Electronic Documentation License http://docs.joomla.org/JEDL