can I implement inline (css) styles in a view in MVC ? How to ... | mvc css style
![can I implement inline (css) styles in a view in MVC ? How to ...](https://i.imgur.com/axBPWDg.jpg)
User508577675postedIamstillprettynewonMVC,views,controllers,....whatIwanttodoistorenderaviewtodisplaycontentliketheimagebelowhere--note: thisispurelyforexerciseforlearningaboutwhatIcandoinviewsandhowtousestyles. How canIrendermyviewtodisplaythiscontent? DoIusestylesoristhereabetterwayinMVC? (IshowhowIdothiswithplanehtmlmarkup andstylesfurtherbelowandthenthe codebehindinmycontrollerclassbelowthatalongwith thecshtmlmarkup)--thisisthecontentIwanttodisplayinmyview(minustheinsidesquares--...
![can I implement inline (css) styles in a view in MVC ? How to ...](https://i.imgur.com/H8YKUrg.jpg)
I am still pretty new on MVC, views, controllers, .... what I want to do is to render a view to display content like the image below here -- note: this is purely for exercise for learning about what I can do in views and how to use styles. How can I render my view to display this content? Do I use styles or is there a better way in MVC? (I show how I do this with plane html markup and styles further below and then the code behind in my controller class below that along with the cshtml markup)
--this is the content I want to display in my view (minus the inside squares -- that was from Word where I created this image)
--here is some html markup where I achieve similar content. How to do this in MVC?
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style> #main { width: 204px; height: 204px; } .mysquare { w...