How to make a input field read-only without affecting to it's CSS in razor mvc?

326
January 12, 2017, at 3:35 PM

I have an input field which should not allow the user to edit. But when I make it read only it shades and all the applied "CSS" properties disappear. How can I make it read-only without affecting to "CSS"?
This is the code I have used

<input id="SID" name="SID" type="text" value="@Model.SID" readonly="readonly">      

Please help.

READ ALSO
Non-rectangular back-ground images

Non-rectangular back-ground images

I saw this PSD of a landing page at Pinterest and I was wondering how I could achieve the same style using css: having a non-rectangular image cutting the one above itIs there any easy way of achieving this?

274
Visual Studio 2015 reinstall: ugly CSS editor, no color picker. Why?

Visual Studio 2015 reinstall: ugly CSS editor, no color picker. Why?

I was forced to reinstall VS 2015 update 3Before reisntall I have this CSS/LESS editor, as I like and working with

340
Changing global font

Changing global font

Alright so I have a font that I use for absolutely everything on my page (besides the logo)

273
Borders only come on top in Android browser

Borders only come on top in Android browser

I'm programming a website which is responsiveAt the end of the page, I want to have a footer

262