Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .listings ul li a.thumb{
- float:left;
- width:150px;
- height:130px;
- border:#ededed 3px solid;
- }
- <a href="#" class="thumb">
- if ( checking with is full )
- {
- <img src="@Url.Content( Path.Combine( "~/Uploads/Products/", @item.ImagePath ) )" style = "width: 150px;" alt="" />
- }
- if ( checking height is full )
- {
- <img src="@Url.Content( Path.Combine( "~/Uploads/Products/", @item.ImagePath ) )" style = "height: 130px;" alt="" />
- }
- </a>
- <a href="#" class="thumb"
- style="background-image: url('@Url.Content( Path.Combine( "~/Uploads/Products/", @item.ImagePath ) )')"> </a>
- <!DOCTYPE html>
- <html>
- <body>
- <article style="text-align:center">
- <img src="img/test.png" alt="test" />
- </article>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement