Question margin css

Solstice

New member
Joined
Apr 1, 2022
Messages
4
Programming Experience
3-5
margin-top margin-bottom margin-left margin-right can be replaced by margin

margin-right:auto;
margin-left:auto;
does not work to center in C# css

It can be replaced with just margin?
 
Last edited:
Also, C# does not have CSS. I suspect what you are trying to do is embed some CSS in a Razor page. But CSS is it'd own technology, much like HTML, JavaScript, and SQL are their own technologies. I'm not seeing how this is a C# question.
 
Back
Top Bottom