side menu with left margin

Asked

Viewed 52 times

3

I have a div central and a div to put the menu. The problem is that it is with a left margin that I can not take out in any way. I believe it is due to the style of the UL.

https://jsfiddle.net/kar5hfxk/

RESULTADO

  • 1

    Puts margin: 0 and padding: 0 in the UL

  • Thank you, Gumball. You’ve helped so much! :)

  • 1

    Faith in the Father that the enemy falls!

1 answer

2

analyzing your code what is missing is to reset the margin and padding the ul tag, follow the code:

.cardt {
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(63, 63, 68, 0.1);
  background-color: #FFFFFF;
  margin-bottom: 30px;
  
}  
  .panoramamoedas{
    width:100%;
    margin:0;
  }

.panoramamoedas ul{
  margin: 0;
  padding: 0;
}

.panoramamoedas ul li {
  display: block;
  backgroun: red;
  border-bottom: 1px solid #CCC;
  text-align: left;
  list-style-type: none;
}

.panoramamoedas a:link {
  color: #666;
  font-weight: bold;
  text-decoration: none;
  padding: 8px;
  display: block;
}

.panoramamoedas a:hover {
  background: #F5F5F5;
  color: #039;
}
<div class="cardt">
  <div class="panoramamoedas" >
    <ul>

      <li><a href="link1.htm">teste</a></li>
      <li><a href="link1.htm">teste2</a></li>

    </ul>
  </div>
</div>

  • You copied it from my comment.

  • @Gumball No, it was at the same time! I did not respond based on your comment, I’m sorry if you implied.

  • 1

    No, now I’m gonna sue you for copying information.

  • 1

    @Gumball kkkkk

Browser other questions tagged

You are not signed in. Login or sign up in order to post.