Search
 
SCRIPT & CODE EXAMPLE
 

CSS

flexbox navbar fixed top

/* Clear formatting*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Remove formatting from links*/

a {
  color: inherit;
  text-decoration: none;
}
/* Set a max width to the content*/

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  background-color: pink;
  display: flex;
  flex-direction: column;
  /*height: 100vh;  */
}
.parent {
  position: fixed;
  top: 0;
  left: 0;
  margin: auto;
  width: 100%;
}
.navbar {
  display: flex;
  justify-content: space-between;
  background-color: yellow;
  /*   */
}
.logo {
  padding: 20px;
}
.menu {
  display: flex;
  align-items: center;
}
.menu ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  background-color: grey;
}
.menu li {
  padding: 20px;
  margin-left: 20px;
  background-color: orange;
  color: rgba(255, 0, 0, 0.9);
  font-size: 16px;
  font-weight: bold;
}
Comment

PREVIOUS NEXT
Code Example
Css :: select two stuffes css 
Css :: media min height css 
Css :: css color black 
Css :: width fit content 
Css :: centered navigation 
Css :: how to make div scrollable horizontal 
Css :: css overflow-y not working 
Css :: css move inline image up 
Css :: react bootstrap carousel not working 
Css :: Error: Could not find "stylelint-csstree-validator" 
Css :: text-indent 
Css :: css absolute position inside div 
Css :: Media Query Smartphone Portrait 
Css :: writing mode css 
Css :: attribute selectors css 
Css :: how to make a square image round css 
Css :: font family css 
Css :: how to center image in css 
Css :: custom taxonomy pagination 404 
Css :: array_filter use keys 
Css :: css how to make text italic 
Css :: text shadow css generator 
Css :: how to add color to a image css 
Css :: html css bring to page top 
Css :: text color css 
Css :: .txt:hover { text-decoration: underline; } 
Css :: css font color 
Css :: how to make a link into normal text css 
Css :: css after hover 
Css :: vertical center before css 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =