• Resolved John

    (@dsl225)


    Hello,

    I often use CSS classes for images in corresponding advanced settings.
    But how to use more than 1 class? How to separate them?

    class1, class2, class3 or class1; class2; class3 ?
    or just empty spaces?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Just separate them with spaces.

    class1 class2 class3

    Thread Starter John

    (@dsl225)

    Many thanks!

    Hello @dsl225

    If you are adding a class inside any HTML tag, then you have to add it like this.
    for example :
    <div class="class1 class2 class3" >Example</div>

    If you want to style multiple classes at once, you can do this.

    for example :
    <div class="class1 class2 class3" >Example</div>
    css for this html tag => class1.class2.class3 { css apply }

    for example :

    <div class="class1" >Example</div>
    <div class="class2" >Example1</div>
    <div class="class3" >Example2</div>

    css for this html tag => class1, class2, class3 { css apply }

    Please let me know if you have any queries about the same.
    Thanks

    • This reply was modified 2 years, 11 months ago by Aezaz Shekh.
    • This reply was modified 2 years, 11 months ago by Aezaz Shekh.
    Thread Starter John

    (@dsl225)

    @aezazshekh Good to know, many thanks for this but was just asking for the images in WP’s advanced settings and it seems it’s the same.

    Hello @dsl225

    If you want to add multiple classes from the advanced setting, then you can do it like this.

    class1 class2 class3

    Thank You

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CSS classes for images’ is closed to new replies.