Quantcast
Channel: Atozed Forums - All Forums
Viewing all articles
Browse latest Browse all 268

setting a simple style-sheet for a dbedit not working

$
0
0
Hello all,

I try to apply a simple style-sheet to an IWDbEdit-component. This is only a test of how to use stylesheets and will be expanded later with more useful style changes. I do it like this:
  • set the css-property of the IWDbEdit to "IWMYDBEDIT"
  • set the stylesheet.filename-property of the form to "mystylesheet.css" --&t this seems to work, see code-snippet
  • place mystylesheet.css into wwwroot-folder
  • content of MyStyleSheet.css is only one line:
    IWMYDBEDIT { font-size: 30px; }
Running the application, the font-size isn't changed. Looking at the source-code for the web-page shows me this. The link seems to be correct, but the compnent gets a default-style #IWDBEDIT1 instead of the expected MYDBEDIT-style:
Code:
...
&tlink rel="stylesheet" href="/mystylesheet.css" nonce="CbJRCUdc/AO61BxCnTlOqe6BwII"&t
...
&tstyle data-type="iw" nonce="CbJRCUdc/AO61BxCnTlOqe6BwII"&t

#IWDBEDIT1{position: absolute; left: 144px; top: 16px;z-index: 100; width: 289px; height: 43px; padding: 0; font-weight: bold; font-style: normal; font-size: 13px; text-decoration: none;overflow: hidden;}
...

What am I doing wrong?
I tried several combinations of css-property and naming the style in the css-file like IWMYDBEDIT, .IWMYDBEDIT,...

It seems that Intraweb can't find my style and replaces it with the default-style using #IWDBEDIT1{...}. The css-file is referenced in &tlink rel="stylesheet". The file is placed in wwwroot so I think this part is OK. So I am sure to make any mistake in naming the style, but can't figure out what I am doing wrong.

Can anyone give me an advice?

Many thank for your help
Siegbert

Viewing all articles
Browse latest Browse all 268

Trending Articles