Hi,
Maybe you can give id to the element and then stylize it?
Then update following code in NxHTML6.pas
procedure TNxStylesSheet6.AssignStyle(Tag: TNxHTMLTag; var Style: TNxCSSStyle);
var
i: Integer;
begin
for i := 0 to Pred(Rules.Count) do
begin
if Rules[i].Name <> '' then
case Rules[i].Selector of
skID:
if Rules[i].Name = Param[Tag, tpId] then
begin
Rules[i].AssignToStyle(Style);
end;
skTag:
if StrToTag(Rules[i].Name) = Tag.Kind then
begin
Rules[i].AssignToStyle(Style);
end;
skClass:
if Rules[i].Name = Param[Tag, tpClass] then
begin
Rules[i].AssignToStyle(Style);
end;
end;
end;
end;
Please tell me how it works.