By MihaiP-1 on
As I see, CSS has some predefined units of measure (em, px, pt, % and so on ...). So when I have tospecify the size of a label, I cannot see how to separate the absolute value from the textual measure unit. The reason I want to do this, is that I want to replace the number by an expression, or function (such as Math.random()). Is this anyway possible?
Here's a default block:
h2 {
font-size: 160%;
line-height: 130%;
}
Comments
You cannot use scripts
You cannot use scripts within a .css file. However, jQuery has a beautiful attribute .addClass which can be used to add a class to an element. You should be able to use this method to achieve the effect you are looking for.
--
-- matt tucker
pingVision
-- matt tucker
I'm not 100% on what you
I'm not 100% on what you mean.
for text, I always use px and em, and for widths I *sometimes* use %.
Allright. I was actually
Allright. I was actually thinking of using something like {rand()}em, to have a different page every time you load it.