From 662bffcdf0cfc02ef8c85d55170243a44beee22b Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 17 Apr 2017 20:33:38 -0400 Subject: [PATCH] Resize images --- Project-Unite/Content/Site.css | 6 ++++++ Project-Unite/Views/Forum/ViewTopic.cshtml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Project-Unite/Content/Site.css b/Project-Unite/Content/Site.css index 1de4445..58678b4 100644 --- a/Project-Unite/Content/Site.css +++ b/Project-Unite/Content/Site.css @@ -16,6 +16,12 @@ white-space: normal; } +#forum_post_body img{ + max-width:100%; + width:auto; + height:auto; +} + /*.modal { padding-top:10%; padding-right:50%; diff --git a/Project-Unite/Views/Forum/ViewTopic.cshtml b/Project-Unite/Views/Forum/ViewTopic.cshtml index ceeaa97..a9272b6 100644 --- a/Project-Unite/Views/Forum/ViewTopic.cshtml +++ b/Project-Unite/Views/Forum/ViewTopic.cshtml @@ -60,7 +60,7 @@

} -
+

@Model.Subject

@Html.UserLink(post.AuthorId) at @post.PostedAt

@Html.Markdown(post.Body)