Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css

view source
01
@mediascreen and (min-width:992px) {
02
  .navbar {
03
    flex-direction: row;
04
    flex-wrap: wrap;
05
    align-items:center;
06
    border-bottom:1px solid #ddd;
07
    padding:0 5rem;
08
    position:relative;
09
  }
10
  .navbar-toggler {
11
    display:none;
12
  }
13
  .brand-and-icon {
14
    flex:0 0 100px;
15
    border-bottom:none;
16
    padding:0;
17
  }
18
  .navbar-collapse {
19
    display:block!important;
20
    overflow-y:hidden;
21
    flex:1 0 auto;
22
  }
23
  .navbar-nav {
24
    display: flex;
25
    align-items:center;
26
    justify-content:center;
27
  }
28
  .navbar-nav>li>a {
29
    border-bottom:none;
30
    margin:0 0.4rem;
31
    padding:1.7rem1.8rem1.7rem0.8rem;
32
    font-size:0.8rem;
33
  }
34
  .sub-menu {
35
    position:absolute;
36
    left:0;
37
    width:100%;
38
    top:100%;
39
    background:#f8f8f8;
40
  }
41
  .navbar-nav>li:hover .sub-menu {
42
    display: <a href="https://www.jqueryscript.net/tags.php?/grid/">grid</a>!important;
43
    grid-template-columns:repeat(4,1fr);
44
    padding:0 5rem;
45
  }
46
  .navbar-nav>li {
47
    border-bottom:2px solid transparent;
48
    transition: border-bottom 0.4s ease;
49
  }
50
  .navbar-nav>li:hover {
51
    border-bottom-color:#000;
52
  }
53
  .sub-menu-item {
54
    padding-left:0;
55
  }
56
  .sub-menu-item:nth-child(3) {
57
    padding-left:2rem;
58
    padding-right:2rem;
59
  }
60
}
Source by www.jqueryscript.net #
 
PREVIOUS NEXT
Tagged: #css
ADD COMMENT
Topic
Name
5+4 =