Results 1 to 3 of 3

Thread: .CSS style is not getting applied to code?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Kungsbacka, Sweden
    Posts
    680

    Default .CSS style is not getting applied to code?

    Hi!

    I have a custom css code in application.css

    Using inspector i can see that the classes is set in the html code, clicking on the row doesn't show the css class getting applied.

    How ever in anotother sub-div it suddely gets applied.

    What am i missing here?

    Click image for larger version. 

Name:	ClassApplied.PNG 
Views:	29 
Size:	11.7 KB 
ID:	13131Click image for larger version. 

Name:	ClassAppliedHTML.PNG 
Views:	26 
Size:	32.4 KB 
ID:	13132Click image for larger version. 

Name:	ClassNotApplied.PNG 
Views:	27 
Size:	22.6 KB 
ID:	13133Click image for larger version. 

Name:	ClassNotAppliedHTML.PNG 
Views:	25 
Size:	32.3 KB 
ID:	13134

    Code:
    // This DOES NOT get applied
    
     .Article .ArticleItem {
      width: 150px;
      height: 150px;
      background-color: white;
      box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
      margin-top: 10px;
      margin-left: 10px;
      margin-bottom: 25px;
      display: inline-block;
      
    }
    
    // This gets applied
    .Article .ArticleItem .ArticleLabel {
      text-align: center;
      padding: 10px 20px;
    }
    Code:
            Object oGroupsPanel is a cWebPanel
                Set peRegion to prCenter
                Set piColumnCount to 12
    //            Set psCSSClass to "VarorPanel"
                Set piMinWidth to 500
                Set pbScroll to True
                
                Object oGroups is a cWebHtmlBox
                    Set pbServerOnClick to True
                    Set psCSSClass to "Article"
                    Set piColumnSpan to 12
    
                    Procedure Render
                          Move '<div class="ArticleItem" data-ServerOnClick="%1" data-OnClickParam="%2"><img src="%3" alt="bild" /><div class="ArticleLabel"><p>%4</p></div></div>' to htmlTemplate
    
                          Append htmlData (SFormat(htmlTemplate, groups[cPos].groupCode, groups[cPos].supplierID, currentImmage, (ToOEM(groups[cPos].groupName)) ))
                          Send UpdateHtml htmlData
                    End_Procedure
    //This is the output <div class="ArticleItem" data-ServerOnClick="25-009" data-OnClickParam="0"><img src="images/99.System/NoImage.png" alt="bild" /><div class="ArticleLabel"><p>"RÄVSVANS" DELBART</p></div></div>
           ...
    ...
    Last edited by MrHalland; 2-Oct-2019 at 04:30 AM. Reason: New code
    Martin Arvidsson, Data Martin i Kungsbacka AB

    I have six locks on my door all in a row. When I go out, I lock every other one. I figure no matter how long somebody stands there picking the locks, they are always locking three.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •