Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Add class to div

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
T00N Posted - 17 Nov 2008 : 10:26:27
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!" />
6   L A T E S T    R E P L I E S    (Newest First)
T00N Posted - 18 Nov 2008 : 20:06:36
Great, I tested it as well and it works.
Tonivel Posted - 18 Nov 2008 : 19:56:24
quote:
That's like a div in a div, do you think thiss will work?

Yes works.
I did the test.
T00N Posted - 18 Nov 2008 : 18:36:32
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?
s.dav Posted - 18 Nov 2008 : 16:57:33
Hello Toon,

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

Before Tag: <div class=cushycms>
After Tag: </div>
T00N Posted - 18 Nov 2008 : 11:19:55
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?!
s.dav Posted - 18 Nov 2008 : 10:41:47
Yes, simply add the code before and after the tag ;-)

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000