I’m not able to put my text on the right side of the site

Asked

Viewed 594 times

-4

Estou com problemas para colocar o codigo aqui ent~]ao coloquei uma imagem,ele fica me dando erroa

I have a problem trying to put my text on the right side of the site, the text is on the left side, I want to leave on the right side of the page

  • .menua {
 text-align: right;
} will solve your problem, but I’m voting to close because your question is not in the site quality standard. Try to put your code in text form and not in image form, it makes it easy for someone to copy your code and answer you etc

2 answers

0

In better practices this way of making tags available is not very recommended, since it corresponds to a menu. You should use the UL tag and within each LI put your links, tag A. This is because it ensures a comprehensible structure if css is not loaded for some reason. The idea is that the structure is understandable. I advise to use List and format it instead of link.

ul {
  list-style-type: none;
  overflow: hidden;
}

li {
  float: left;
}

li a {
  display: block;
  text-align: center;
  padding: 16px;
  text-decoration: none;
}

0

Put in your css in class . menua;

 .menua { display: inline-block; float: right;}
  • Float is not to align text to the right. Text alignment is with text-align not with float

  • Dude, try to test the codic, you’d see that text-align didn’t even move the text right, in any of the classes.

Browser other questions tagged

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