How to resize this CSS property?

Asked

Viewed 28 times

-2

Preciso que fique mais curto, porém com a mesma altura que esta atualmente.

#msg{
  margin:15px;
  height:auto;
  width: 200px;
  padding: 1px;
  color: #1b196df2;
  box-shadow: 5px 5px 10px black;
}
  • width diminishes him!

  • Important you [Dit] your question and explain objectively and punctually the difficulty found, accompanied by a [mcve] of the problem and attempt to solve. To better enjoy the site, understand and avoid closures and negativities worth reading the Stack Overflow Survival Guide in English.

2 answers

1

Decrease the width should solve your problem.

#msg {
  margin:15px;
  height:auto;
  width: 100px;
  padding: 1px;
  color: #1b196df2;
  box-shadow: 5px 5px 10px black;
}

0

Makes everything Dynamic.
Removes height and width and controls with padding.

#msg {
  margin:15px;
  padding: 5px 15px;
  color: #1b196df2;
  box-shadow: 5px 5px 10px black;
}

Browser other questions tagged

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