PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Scroller CSS (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Scroller CSS


#2861
3cellhosting (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Scroller CSS 10 Months, 2 Weeks ago Karma: 0  
Hello all,

I have a client who is using this scroller and they have 8 instances in one article.

Already found the post on having different CSS styles e.g. pscroller1, pscroller2 or pscroller3

Is it possible to add more styles? I tried on the CSS but it didn't make any difference.

Ideally client wants all instances to be style of pscroller1 so is there a way to do this?

Regards

David
 
  The administrator has disabled public write access.

#2863
kksou (Admin)
Admin
Posts: 1240
graph
User Online Now Click here to see the profile of this user
Re:Scroller CSS 10 Months, 2 Weeks ago Karma: 20  
Hi,

Please take a look at the css file: pausing_up_down_scroller.css. The original content was

Code:
#pscroller1{
width: {$width};
height: {$height};
border: 1px solid #9A9A9A;
padding: 5px;
background-color: lightyellow;
}

#pscroller2{
width: 240px;
height: 60px;
border: 1px solid #9A9A9A;
padding: 5px;
background-color: #DDFEE9;
}

#pscroller3{
width: 350px;
height: 17px;
border: 1px solid #dddddd;
padding: 3px;
}
From the css, you will know that #pscroller1, #pscroller2 and #pscroller3 refers to unique id. That's the reason why when you use two pscroller1, it won't work. It has to be unique id for each scroller.
    If you want multiple instance of pscroller1, all you need to do is to make pscroller2 and pscroller3 css definitions the same as pscroller1, as illustrated below:
      Code:
      #pscroller1{
      width: {$width};
      height: {$height};
      border: 1px solid #9A9A9A;
      padding: 5px;
      background-color: lightyellow;
      }
      
      #pscroller2{
      width: {$width};
      height: {$height};
      border: 1px solid #9A9A9A;
      padding: 5px;
      background-color: lightyellow;
      }
      
      #pscroller3{
      width: {$width};
      height: {$height};
      border: 1px solid #9A9A9A;
      padding: 5px;
      background-color: lightyellow;
      }
      
      Make sure you use id:pscroller1 for scroll1, id:pscroller2 for scroll2, and id:pscroller3 for scroll3.
        Regards,
          /kksou
           
            The administrator has disabled public write access.

          #2864
          3cellhosting (User)
          Fresh Boarder
          Posts: 2
          graphgraph
          User Offline Click here to see the profile of this user
          Re:Scroller CSS 10 Months, 2 Weeks ago Karma: 0  
          Thanks /kksou

          I already tried that and got nowhere.

          However, I just downloaded my CSS file again and it appears that it is still the original even though FireFTP showed the new file date after upload.

          Having amended the file and loaded it again I still had the same problem.

          My final effort involved deleting the CSS file from my client's site. Then I uploaded again and now it is working.

          So my piece of advice for today is don't always believe your FTP software!

          Many thanks

          David
           
            The administrator has disabled public write access.



          Go to top Post Reply
          Powered by FireBoardget the latest posts directly to your desktop

          Blog - Forum - Privacy Policy - Contact Us
          Copyright © 2006-2009. kksou.com. All Rights Reserved