[CLOSED] More questions about Styles
Hi
1 - DisplayField seems to be slightly unaligned with other components by a few pixels. Using a Absolute Layout, same X and Y position, the DisplayFields are render a lite below the Labels...
2 - How I do the Labels, DisplayFields and TextFields follow the same styles? In my test page, the textfield got a style, but the displayField and Label, no...
3 - When I find the documentation about the styles of ext.net 2.x? When I want to change, for example, the font of the labels of all ext.net components, which can easily find which section of the css-file change?
I create an test aspx page for demostrate my doubts...
Code:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Teste4.aspx.vb" Inherits="SuperaWeb.Teste4" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.x-form-field {
font-size:8px !important;
font-family: @FangSong !important;
}
.x-form-item-label {
font-size:8px !important;
font-family: @FangSong !important;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="pt-BR" />
<ext:FieldSet runat="server" ID="fsSolicitacao" Title="Solicitação de Cotação de Preços" Layout="AbsoluteLayout" X="100" Y="100" Height="130px" Width="600px">
<Items>
<ext:Label runat="server" ID="lblFornecedorNome" Text="Label 01" X="5" Y="10" Width="70px" />
<ext:Label runat="server" ID="lblFornecedorTelefone" Text="Label 02" X="5" Y="25" Width="70px" />
<ext:Label runat="server" ID="lblFornecedorContato" Text="Label 03" X="5" Y="40" Width="70px" />
<ext:Label runat="server" ID="lblFornecedorEmail" Text="Label 04" X="200" Y="40" Width="70px" />
<ext:DisplayField runat="server" ID="dsFornecedorNome" Text="Display 01" X="67" Y="10" Width="150px" />
<ext:DisplayField runat="server" ID="dsFornecedorTelefone" Text="Display 02" X="67" Y="25" Width="150px" />
<ext:DisplayField runat="server" ID="dsFornecedorContato" Text="Display 03" X="67" Y="40" Width="150px" />
<ext:DisplayField runat="server" ID="dsFornecedorEmail" Text="Display 04" X="250" Y="40" Width="150px" />
<ext:TextField runat="server" ID="txtNome" FieldLabel="TextField 02 (FieldLabel)" Text="TextField 02 (Text)" X="5" Y="70" LabelWidth="110" Width="300" />
</Items>
</ext:FieldSet>
</form>
</body>
</html>
Thanks for any help!!!