Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Add class to div
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

T00N
Super User

573 Posts

Posted - 17 Nov 2008 :  10:26:27  Show Profile  Visit T00N's Homepage  Reply with Quote
I want to use cushycms to edit text in a div.

Is it possible to add a class to a div with the custom code option?

Like this:

<h1 class="cushycms" title="My Heading">This will become editable</h1>
<div class="cushycms" title="Main Content">
<p>More editable stuff here...</p>
</div>
<p>I'm not editable.</p>
<img class="cushycms" src="foo.jpg" alt="I'm an editable image!" />

s.dav
Site Admin

Italy
3364 Posts

Posted - 18 Nov 2008 :  10:41:47  Show Profile  Visit s.dav's Homepage  Reply with Quote
Yes, simply add the code before and after the tag ;-)

Regards, Davide
Go to Top of Page

T00N
Super User

573 Posts

Posted - 18 Nov 2008 :  11:19:55  Show Profile  Visit T00N's Homepage  Reply with Quote
Simply, simply...

Oke,

I made a text label
When I code to Custom code it says:

<div id="ldhelbltext" style="position: absolute; left: 1px; top: 272px; width: 442px; height: 16px; text-align: justify;" align="left">
<span class="verdana100FFFFFFt">text to edit</span></div>


I want to add class="cushycms" to this div like this:

<div id="ldhelbltext" class="cushycms" style="position: absolute; left: 1px; top: 272px; width: 442px; height: 16px; text-align: justify;" align="left">
<span class="verdana100FFFFFFt">text to edit</span></div>


When I add the code before it becomes:


<div id="ldhelbltext" style="position: absolute; left: 1px; top: 272px; width: 442px; height: 16px; text-align: justify;" align="left">
class="cushycms"<span class="verdana100FFFFFFt">text to edit</span></div>


I tried all the different options but I can't get it to work?!
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 18 Nov 2008 :  16:57:33  Show Profile  Visit s.dav's Homepage  Reply with Quote
Hello Toon,

try to use the "Before Tag" and "After Tag" options

Before Tag: <div class=cushycms>
After Tag: </div>

Regards, Davide
Go to Top of Page

T00N
Super User

573 Posts

Posted - 18 Nov 2008 :  18:36:32  Show Profile  Visit T00N's Homepage  Reply with Quote
That will generate code like:

<div id="ldheLabel3" style="position: absolute; left: 65px; top: 407px; width: 335px; height: 98px; text-align: justify;" align="left">
<div class="cushycms"><span class="verdana9808080FFFFFFt">DESINO brings your ideas and designs to life. <br><br>We are specialized in producing small series of high-end stainless products.<br><br>Our customers are designers and artist that take blah blah blah...</span></div></div>


That's like a div in a div, do you think thiss will work?
Go to Top of Page

Tonivel
Practical

27 Posts

Posted - 18 Nov 2008 :  19:56:24  Show Profile  Visit Tonivel's Homepage  Reply with Quote
quote:
That's like a div in a div, do you think thiss will work?

Yes works.
I did the test.

Regards, Tonivel
Go to Top of Page

T00N
Super User

573 Posts

Posted - 18 Nov 2008 :  20:06:36  Show Profile  Visit T00N's Homepage  Reply with Quote
Great, I tested it as well and it works.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000