Board index PBase HTML and Style Sheets Counter & Style sheets

HTML and Style Sheets

Counter & Style sheets

Customize your galleries.
matiasasun
 
Posts: 1493

Counter & Style sheets

Post Thu Sep 23, 2004 1:02 am


This is going to be hard to explain:

I did notice that Alan Grant has created a special div class for his counter:

Code: Select all
/* nedstat counter image */
.counter img
{
  float: right;
  margin: 25px;
}


That works with an HTML code he has in his Description box on his front/main page:

Code: Select all
<div class="counter">
<!-- Begin Nedstat Basic code -->
THIS IS WHERE THE USUAL COUNTER CODE GOES....
<!-- End Nedstat Basic code -->
</div>


So After some weeks I decided to try that, first to see a better solution for the Nedstats indicator and secod to learn more about new classes in CSS.
I´ve tought that maybe it is possible to "hide" the nedstats indicator behind the main image in my page (see HERE)
So my questions here are two:

- Is that possible?

- Wich other CSS codes we can use for this kind of "special" CSS classes (created by ourselves)

Thanks in advanced. I hope it is clear enough.
Matias, Chile - http://www.pbase.com/matiasasun
Resources, HOWTOs, Samples and more! - http://pbasewiki.srijith.net/

srijith
Moderator
 
Posts: 2321
Location: Amsterdam

Re: Counter & Style sheets

Post Thu Sep 23, 2004 6:37 am


matiasasun wrote:So my questions here are two:

- Is that possible?

- Wich other CSS codes we can use for this kind of "special" CSS classes (created by ourselves)

- I have never tried it myself, but there are couple of articles on hiding text using CSS, not sure if it will work with images too. You could try! One example - http://www.webaim.org/discussion/mail_m ... hp?id=4351

- Well, theoretically, any CSS code can added for classes you define. For example, in my gallery, I have defined a class called "latestupdates", which is used to show the latest galleries I have updated, without displacing the image thumbnails table downwards.

matiasasun
 
Posts: 1493

Re: Counter & Style sheets

Post Thu Sep 23, 2004 6:55 am


Yes, thanks Srijith... I was also thinking is that piece of your code too.
Looks like CSS made us think of that old phrase: "where no man as gone before"... It is an unexplored issue around PBase so far.

//Interesting Ideas on that page. But looks like I´m in trouble because Nedstats work with the picture download (right?) so I has to "be there" to do his job. I´ll try what it says...
Matias, Chile - http://www.pbase.com/matiasasun
Resources, HOWTOs, Samples and more! - http://pbasewiki.srijith.net/

ilanphoto
 
Posts: 876


Post Thu Sep 23, 2004 7:36 am


Matias

Although I am sure this is not what you are looking for, there is one simple solution to hide the nedstat image.

If you become a paying user of nedstat you can remove the image

Just thought I should mention it. :D

matiasasun
 
Posts: 1493


Post Thu Sep 23, 2004 12:43 pm


....There are some things we should not know. Now I´m in a dilemma.
To pay or not to pay :roll:
Matias, Chile - http://www.pbase.com/matiasasun
Resources, HOWTOs, Samples and more! - http://pbasewiki.srijith.net/

dievee
 
Posts: 16

Nedstat question

Post Sun Sep 26, 2004 12:39 am


Hi Matiasun,

First thank you for all your very usefull information, that's very kind of you to share that with us. I would like to incorporate Nedstat in my Pbase, can I copy the part of the code from Alan Grant to make that working or do I have to do something on the Nedstat website first to get my own code ? I used Nedstat a few years (but it was the pro or paying section) and this seems to be not so extended but for free (or not) ? Could you inform me on this if you must have some time ?

With kind regards,

Dirk Vermeirre
Dirk

matiasasun
 
Posts: 1493

Re: Nedstat question

Post Sun Sep 26, 2004 1:17 am


dievee wrote:Hi Matiasun,

First thank you for all your very usefull information, that's very kind of you to share that with us.


If it works, be my guest... Any way looks like if you´ll use those stylesheets then some adjustement must be done, so it helps but we´ll have to work a little harder next time.

dievee wrote:I would like to incorporate Nedstat in my Pbase, can I copy the part of the code from Alan Grant to make that working or do I have to do something on the Nedstat website first to get my own code ? I used Nedstat a few years (but it was the pro or paying section) and this seems to be not so extended but for free (or not) ? Could you inform me on this if you must have some time ?


Ley´s see the code that I added to the first post of this threat is part of an Style sheet. That means that the object "nedstat" (in this case named "counter") will have the position refered in the code... But it is not the object itself. Right? The object must be added by putting the HTML that Nedstat will provide you in every description section you want to have information from. This means:

1) Go to http://www.nedstatbasic.net and get a new account. Those account are for free.
2) Create a counter (an account can have a lot of counter, each counter will provide specific information from a gall. or a pic. or a lot of them if placed several times)
3) Copy the provided code they´ll give you
4) Go to the edit page of the gall./pic. here in PBase and copy the code in the description section. Remeber to check the HTML usage box in the gallery edit part.
5) Save the updates & Voilá

Just an extra note: Maybe it is also useful to explain that Counter have nothing to do with stylesheets (at least that´s what I know so far). Counter is HTML wich means description sections... and CSS is related to formats, sizes, colors, and stuff like that.

Other useful information about those issues can be found doing a forum search on "nedstat" or "nedstats".

So Dirk, how did the Swam exposition ended?

Matias, Chile
Matias, Chile - http://www.pbase.com/matiasasun
Resources, HOWTOs, Samples and more! - http://pbasewiki.srijith.net/

dievee
 
Posts: 16

Hi Mathias

Post Sun Sep 26, 2004 2:21 am


Hi Mathias,

Thanks again for the great and fast help. I will visit their site and get an account. I used the codes for clients already on the site I made for them, a payed account of course. I think that I read that you wrote that Dreamweaver was difficult to work with. I don't think so, I build some sites years ago without even reading one line in the manual. For more complicated things you have to search in the help or manual.
Still no swan exposition, I had to contact the gallery but didn't found time, so I think that I will say them to do that next year. In the meantime I'm addicted to a new subject that I already loved whole my life, the sea, I found a region about one hour from my home that I absolutely love and I drove there each time that I found some time (or even when I didn't find time). Great is that a few days after I had made my gallery on Pbase I received a mail of the Tourist organisation of The Netherlands mentioning that they where very interested in buying images for their upcoming publications.
Will search for some time to visit your gallery as I know that you have great images there.

Many thanks and a big cheers,

Dirk
Dirk


Board index PBase HTML and Style Sheets Counter & Style sheets

Who is online

Users browsing this forum: ClaudeBot and 0 guests