Jump to content
  • 0

Помогите убрать отступ от шапки


ewee
 Share

Question

6 answers to this question

Recommended Posts

  • 0

Код меню


* {box-sizing: border-box;}

nav {
  display: ;


}
ul {
  
  list-style: none;
  margin: 0 px;
  padding: 0px;
  
}
a {
  text-decoration: none;
  outline: none;
}
.topmenu {
  -webkit-backface-visibility:border-box ;
  -moz-backface-visibility:border-box ;
  backface-visibility:border-box ;
  position: relative;
  background: #003559 ;rgba(255,255,255,.8)
margin: 0 px;
  padding: 0px;

}
.topmenu:before, .topmenu:after {
  content: "";
  display: table;
  clear: both;
}
.topmenu li {
  display: inline-block;
  position: relative;

}
.link {
  font-family: 'Exo 2', sans-serif;
  display: block;
  height: 70px;
  line-height: 70px;
  padding: 0 70px;
  font-weight: bold;
  color: rgba(255,255,255,.8);#003559
  text-transform: uppercase;
  -webkit-transition: color 0.4s ease-in-out;
  -moz-transition: color 0.4s ease-in-out;
  -o-transition: color 0.4s ease-in-out;
  transition: color 0.4s ease-in-out;

}
.down:after {
  content:"\f107";
  
  font-family: FontAwesome;
}
.link:hover {
  color: #E6855F;
}
.submenu {
  background: white ; 
  border: 2px solid #003559;
  position: absolute;
  left: 55;
  visibility: hidden;
  opacity: 0;
  z-index: 10;
  width: 150px;
  -webkit-transform: perspective(600px) rotateX(-90deg);
  -moz-transform: perspective(600px) rotateX(-90deg);
  -ms-transform: perspective(600px) rotateX(-90deg);
  transform: perspective(600px) rotateX(-90deg);
  -webkit-transform-origin: 0% 0%;
  -moz-transform-origin: 0% 0%;
  -ms-transform-origin: 0% 0%;
  transform-origin: 0% 0%;
  -webkit-transition: color 0.4s ease-in-out;
  -moz-transition: color 0.4s ease-in-out;
  -o-transition: color 0.4s ease-in-out;
  transition: 0.6s ease-in-out;
margin: 0 px;
  padding: 0px;
}
.submenu > li {
  display: block;
}
.topmenu li:hover > .submenu{
  visibility: visible;
  opacity: 1;
  -webkit-transform: perspective(600px) rotateX(0deg);
  -moz-transform: perspective(600px) rotateX(0deg);
  -ms-transform: perspective(600px) rotateX(0deg);
  transform: perspective(600px) rotateX(0deg);

}
.submenu li a {
  display: block;
  color: #7f7f7f;
  font-size: 13px;
  line-height: 36px;
  padding: 0 25px;
  font-family: 'Kurale', serif;

}
.submenu li a:hover {
  color: #003559;

}

 

index.js

site.html

styl.css

Link to comment
Share on other sites

  • 0
11 минуту назад, radioactive сказал:

у вас очень много ошибок

по теме, вот ваше решение


.topmenu {
  margin: 0;
}

 

можете помочь исправить?

5 минут назад, ewee сказал:

можете помочь исправить?

у меня эта команда убирает  отступ внизу, а мне надо что с шапкой было вместе что бы не было промежутка

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy