Advertisement
Guest User

Untitled

a guest
Sep 8th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.27 KB | None | 0 0
  1. ----ContentArea on start page-----
  2.  
  3. <div id="startPage">
  4.     <div class="jumbotron-image">
  5.         <span class="jumbotron-text">
  6.             @Html.PropertyFor(t => t.JumbotronText, new { CustomTag = "h1" })
  7.         </span>
  8.     </div>
  9.     <div id="start-main-block" class="container">
  10.         @Html.PropertyFor(c => c.ContentAreaMain, new {CssClass ="row"})
  11.     </div>
  12.     <div class="clearfix"></div>
  13. </div>
  14.  
  15. ----BLOCK-----    
  16.  
  17. <div class="teaser-block col-sm-4">
  18.         <div class="teaser-block-tumbnail">
  19.             <img src="@UrlResolver.Current.GetUrl(Model.Thumbnail, null, new VirtualPathArguments()
  20.             { ContextMode = ContextMode.Default })" />
  21.         </div>
  22.         <div class="teaser-block-headline">
  23.             <h3>
  24.                 @Html.PropertyFor(m => m.Headline)
  25.             </h3>
  26.         </div>
  27.         <div class="teaser-block-description">
  28.             @Html.PropertyFor(d => d.Description)
  29.         </div>
  30.     </div>
  31.  
  32.  
  33. ----CSS----
  34. #start-main-block {
  35.     max-width: 950px;
  36.     margin: 0 auto;
  37.     height: 100%;
  38.     max-height: 480px;
  39.     padding-top: 100px;
  40.     background-color: red;
  41. }
  42.  
  43.     .teaser-block img {
  44.         width: 300px;
  45.         max-height: 200px;
  46.     }
  47.  
  48.     .teaser-block h3 {
  49.         font-weight: bold;
  50.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement