0
I have this view on MVC
View
@model XXX
@{
}
<link href="/eTeste/Content/AbaDetailsODM.css" rel="stylesheet" type="text/css" />
<div id="consoleAbaDetalhes"></div>
<div id="campos_detail">
@using (Ajax.BeginForm(
"xxxx",
"xxxx",
new AjaxOptions
{
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "consoleAba",
HttpMethod = "POST",
}))
{
@Html.Partial("Validation")
@Html.HiddenFor(i => i.Id)
@Html.HiddenFor(i => i.IdEmpresa)
@Html.HiddenFor(i => i.IdModeloVersao)
[...]
<div id="campos">
<div class="CampoRealyOnly">
@Html.EditorFor(i => i.User)
<div class="clear"></div>
@Html.EditorFor(i => i.Gerente)
<div class="clear"></div>
<div id="chefesDeProjeto">
@Html.EditorFor(i => i.Descricao, "TextArea", new { colunas = 30, linhas = 5 })
</div>
</div>
<div class="CampoRealyOnly clear field-middle">
<h3>@Html.Label(ODMResources.AreaLeader):</h3>
@Html.TextBoxFor(x => x.ResponsaveisFuncao)
</div>
[...] //Vários Campos
</div>
The system has its own field CSS.
I would like to change a part of this CSS, just for this View.
This part is Energy of the system.
The css works as I would like, the problem is that it alters all the other tabs, even though I only referenced it in this view. I believe it is the cascade mode that causes it to be changed in everything.
What could I do to separate it from the system?
CSS
.CampoRealyOnly
input[type=text], textarea, select
{
border: 1px solid #888888;
left: 298px;
position: relative;
top: -29px;
}
h3
{
color: Red;
}
Let me get this straight. You have a view that contains x fields that you want to be visually different from the fields outside of it (in _layout) for example?
– Richard Dias