---
title: "CSS Not Working in MVC4 razor view"  
description: "CSS Not Working in MVC4 razor view"  
author: "Anonymous User"  
published: 2017-12-26  
updated: 2017-12-26  
canonical: https://www.mindstick.com/forum/34413/css-not-working-in-mvc4-razor-view  
category: "c#"  
tags: ["asp.net mvc", "mvc4", "razor"]  
reading_time: 2 minutes  

---

# CSS Not Working in MVC4 razor view

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances),

I Used [CSS](https://www.mindstick.com/forum/514/background-gradient-ie7-css-problem) [File](https://www.mindstick.com/articles/59/encrypting-and-decrypting-files-using-c-sharp) in my [razor view](https://www.mindstick.com/forum/155820/how-to-generate-textbox-control-using-htmlhelper-in-razor-view) and use its [class](https://www.mindstick.com/blog/165/generic-class-in-c-sharp) in my [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii). But It's not working and my [layout](https://www.mindstick.com/articles/12853/android-layout-and-its-type) is not up to the mark.

Here is my code,

```
<link src="@Url.Content("~/Content/font-awesome.min.css")" rel="stylesheet"/>
```

```
<div class="col-md-4 header-navigation-col">
          <h4>Footwear</h4>
          <ul>
               <li><a href="index.html">Astro Trainers</a></li>
               <li><a href="index.html">Basketball Shoes</a></li>
               <li><a href="index.html">Boots</a></li>
               <li><a href="index.html">Canvas Shoes</a></li>
               <li><a href="index.html">Football Boots</a></li>
               <li><a href="index.html">Golf Shoes</a></li>
               <li><a href="index.html">Hi Tops</a></li>
               <li><a href="index.html">Indoor Trainers</a></li>
          </ul>
</div>
```

Please give me some solution to accomplish my task.

Thank you!!!

## Replies

### Reply by Hemant Patel

Hi Shaan,

After analyzing your code, I reached the solution, that you can use src instead of href.

Please follow the below line of code to accomplish your task.

```
<link href="@Url.Content("~/Content/font-awesome.min.css")" rel="stylesheet"/>
```

I think it's informative for you...


---

Original Source: https://www.mindstick.com/forum/34413/css-not-working-in-mvc4-razor-view

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
