Difference between revisions of "Template:Navigation"

Line 1: Line 1:
 +
ul.nav {
 +
  padding-left: 0px;
 +
  background-color: #3D99CE;
 +
  text-align: center;
 +
}
 +
ul.nav > li {
 +
  display: inline-block;
 +
  padding: 10px 20px;
 +
}
 +
ul.nav > li:hover {
 +
  background-color: #2779BF;
 +
}
 +
ul.nav > li > a {
 +
  color: white;
 +
  text-decoration: none;
 +
}
 
<div style="background-color:aliceblue; border-style:solid; border-color:gray; width:75%; margin:auto" >
 
<div style="background-color:aliceblue; border-style:solid; border-color:gray; width:75%; margin:auto" >
 
<div class="mw-collapsible mw-collapsed">
 
<div class="mw-collapsible mw-collapsed">
Line 6: Line 22:
 
|-
 
|-
 
|{{#if:{{{group1|}}}|{{{group1}}} }}
 
|{{#if:{{{group1|}}}|{{{group1}}} }}
|{{#if:{{{list1|}}}|<div style="display:inline">{{{list1}}}</div> }}
+
|{{#if:{{{list1|}}}|<ul class="nav">{{{list1}}}</ul> }}
 
|-
 
|-
 
|{{#if:{{{group2|}}}|{{{group2}}} }}
 
|{{#if:{{{group2|}}}|{{{group2}}} }}

Revision as of 13:16, 1 March 2023

ul.nav {

 padding-left: 0px;
 background-color: #3D99CE;
 text-align: center;

} ul.nav > li {

 display: inline-block;
 padding: 10px 20px;

} ul.nav > li:hover {

 background-color: #2779BF;

} ul.nav > li > a {

 color: white;
 text-decoration: none;

}