Copy a class with parameter's to...

User 2120397 Photo


Registered User
96 posts

Using SD3
How do I copy a class with parameter's to another class and then rename the new class so I can change some of the parameter's and have the new class showing up in the selectable list?
http://wilford.no
I may be a little grumpy in the morning, that is, before my first cup of coffee ;)
User 244626 Photo


Registered User
811 posts

After you add the class to your second element, you could assign the second element a id and then you would have to add the additional changes to the id, not the class.
Bootstrap 5 CSS Grid.
User 10077 Photo


Senior Advisor
1,095 posts

If I understand your question correctly, you want two elements that have the same style but different class names. There are two ways to do this.

Method 1
Create element and add class (myclass) with all its stylings.
Create second element and add the same class (myclass).
Now both elements have the same style.

Click the x of the class name of the second element and delete it. BEFORE YOU CLICK ANYWHERE ELSE, add a new class name (myclass2). The result should be that the 2nd element has a different class name but the same styles as the first element.

Method 2
Create element and add class (myclass) with all its stylings.
Create second element and add the same class (myclass).
Now both elements have the same style.
Add a 2nd class name to the second element (otherclass).
Click on the first class name (myclass) so that it is grayed out. Now any styles you change will apply only to the 2nd class (otherclass) so that the 2nd element keeps all the styles of "myclass" and adds the styles of "otherclass."
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
User 2120397 Photo


Registered User
96 posts

Tnx :)
I will test this and make good use of it :)
http://wilford.no
I may be a little grumpy in the morning, that is, before my first cup of coffee ;)
User 2120397 Photo


Registered User
96 posts

Brian Durfee wrote:
If
Method 1
Create element and add class (myclass) with all its stylings.
Create second element and add the same class (myclass).
Now both elements have the same style.
Click the x of the class name of the second element and delete it. BEFORE YOU CLICK ANYWHERE ELSE, add a new class name (myclass2). The result should be that the 2nd element has a different class name but the same styles as the first element.


I'm using Method 1
and it's working perfectly :)
http://wilford.no
I may be a little grumpy in the morning, that is, before my first cup of coffee ;)
User 2120397 Photo


Registered User
96 posts

Thank's to Method 1, all of my classes and elements have meaningful names. No longer container-1, paragraph-3 and so on. :)
http://wilford.no
I may be a little grumpy in the morning, that is, before my first cup of coffee ;)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.