Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Looking for alternate CSS syntax

I find this syntax not too nice:
<a id="htmlLink" class="button inline btnNotification iframe complete"...>

What alternatives are there?

How about in C#, how could I realize the same result with the fluent CSS API?

Thanks.
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

I have no Idea how it would ever be necessary to use that many classes for a single link.  I think you may need to consolidate you stylesheets a little.
Avatar of curiouswebster

ASKER

OK. Then why not create one that's more normal, then show me how to code the same thing using the CSS fluent API?
What alternatives are there?

I gave you the best alternative... clean up your CSS.  

If you want me to show you how then post the CSS that forces you to uses that many classes.  The way it is you might as well be hardcoding the stlye in the tag.

As for C#, I have never written a singe line of code using C#.  It is not something I would ever use instead of PHP.
That was sample CSS, not from my program. I was trying to learn other ways to concatenate classes, aside from just putting a space between them.

Sorry, maybe this fluent API is C# and not CSS. I have seen it before.

is uses
.addAttr() or something of the like.

or add('attr', 'iframe');

I wish I'd saved it when I saw it. Do you know what I am talking about?

I would like to learn PHP, sometime soon...
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the help. I knew nothing about PHP but now know it's like JavaScript, which I really like. See you on the PHP boards!