Announcement

Collapse
No announcement yet.

<style type = 'text/css'> : does not work properly

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • <style type = 'text/css'> : does not work properly

    Hello to all.
    I have a problem.
    This code:

    PHP Code:
    print ("
    text1
    <style type = 'text/css'>
       body {
       background-repeat: no-repeat;
       background-image: url (../_ lib/img/logo_login.png);
       background-position: center;
       // background-position: 0% 0%;
       background-size: 80% 80%;
       background-color: # 000000;
       background-attachment: fixed;
     }
    </ style>
    text2
    "
    ); 
    It was perfect if generated up to vers. 8:00:47 and php 5.4

    With the upgrade to Scriptcase 8.1 and 5.6 php code is no longer executed correctly!
    The background image is not visible, while the text (text1 and text2) are visible!

    As it is structured the application for me is a problem because the image is configured according to the customer and to the state of the application!
    So I can not create an ad hoc theme.
    In addition each user and each company can select a custom theme!

    -> Scriptcase 8.1.006, php 5.6, Windows 2008 R2 64bit

    Ciao
    Enrico

  • #2
    Perhaps the stylesheets have changed or overruled. Did you try to force settings using 'important'?
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      thanks albert

      PHP Code:
      print("
      <style type = 'text / css'>
         body {
         background-repeat: no-repeat;
         background-image: url (../_ lib/img/logo_login.png) !important;
         background-position: center;
         // background-position: 0% 0%;
         background-size: 80% 80%;
         background-color: # 000000;
         background-attachment: fixed;
         }
      </ style>
      "
      ); 
      Now it works fine!
      Hello
      Enrico
      Last edited by henry1311; 08-27-2015, 11:01 AM.

      Comment

      Working...
      X