-
AuthorPosts
-
December 16, 2014 at 6:02 pm #369047
Hi. I have looked at a previous support stream to add a color background to a text box. I followed your instructions per the link below. However, it just is not working. Here is the code in my custom css
.homebox1 .avia_textblock { background-color: #d62222; padding: 10px; }
.homebox2 .avia_textblock { background-color: blue; padding: 10px; }I have in turn added homebox1 to one custom css field for one text box and homebox2 to the other yet with no results.
Help please. Thanks.
https://kriesi.at/support/topic/different-color-for-textbox/#post-295930
December 16, 2014 at 7:24 pm #369101Hey rhsheehan!
Send us a link to your page and we’ll take a look. You can set your reply as private if you wish.
Cheers!
ElliottDecember 16, 2014 at 7:39 pm #369109This reply has been marked as private.December 16, 2014 at 9:27 pm #369170Hey!
It looks like you added your class as “.homebox1” in the custom CSS field. Use just “homebox1” instead, with no period.
When you write your CSS code then you need to use a period to target a class but for adding a class to an element there should not be one.
Cheers!
ElliottDecember 16, 2014 at 9:29 pm #369172I actually tried both and neither worked.
December 16, 2014 at 11:38 pm #369231Hi!
You still have it set to “.homebox2” when it should be “homebox2”. Send us a WordPress login and we’ll fix it for you so you can see how it’s done.
Best regards,
ElliottDecember 17, 2014 at 3:12 pm #369476This reply has been marked as private.December 17, 2014 at 9:35 pm #369744Hey!
It should be working now. I modified the CSS you were using.
Cheers!
ElliottDecember 17, 2014 at 9:54 pm #369756Could you tell me what was wrong with it? Thank you.
December 18, 2014 at 4:57 pm #370052Hey!
You were adding the CSS to the wrong element. You can view the changes in your Quick CSS field.
Best regards,
ElliottDecember 18, 2014 at 5:26 pm #370078I just realized what you changed. I was going by a post from your support in the forum when I added it the first time.
Thanks.
-
AuthorPosts
- The topic ‘Color Text Box’ is closed to new replies.
