0

I need to add some CSS to the Register and Login buttons in [partial name="_LoginPartial"] tag in my ASP.NET Core 6 MVC web app project. How could I do that?

I have tried to make them (Register and Login) inline but that didn't work. I have tried to add ids and classes to the partial name tag and add css to them, and tried to add the following way by asking chatGPT

<a href="@Url.Action("_LoginPartial", "/identity/Account/Register")" class="btn btn-outline-primary float-right">Register</a>

<a href="@Url.Action("_LoginPartial", "Account")" class="btn btn-outline-success float-right">Login</a>

That didn't work either

2
  • please show all related codes,It's hard to know what got wrong with the codes you provided Commented Apr 27, 2023 at 2:24
  • This case may help:stackoverflow.com/questions/5040935/… Commented Apr 27, 2023 at 2:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.