I use Armadillo for my sites. Great tool for making blogs. I love it.
This time I’m asking help for a personal project. I need to know if it’s possible with CSS that everytime I post something the title will include an icon in front of the title. It can be. Svg or png or whatever. I played a little bit with css assigning attributes to my blog and I ended up creating card like formatting to every post but that’s not what I want to have. I want plain white text and an icon in front of the title.
If any of you can come up with a css code that can help me I will appreciated it 100%
The answer is: yes. But it depends.
There’s the content-Attribute that allows to add content before or after a class. There’s a bit of debate about this property, as it adds content to a design document, but it’s very handy from time to time. I used it often with Font Awesome Icons.
Wow I didn’t knew that! Well, I really want just plain white fonts. The cards and the colors was just me playing around with css to see if I can change anything on the blog thru Armadillo. Any ideas to achieve that? Plain fonts in white?
Looks like you changed the page since I gave you the code. Yesterday you had multiple entries, and the HTML Armadillo produced was different. I tested the code on your site and it worked fine.
I have changed it for the changes, to the page.
Also this code only is strictly for the pseudo-element ::before and will HAVE NO EFFECT ON ANYTHING ELSE. You added attributes font-size, font-color, border-radius etc. that wouldn’t work. You see the content that is being added is content: ""; is empty. the image is being set as a background URL only. There is no reason to apply fonts or border properties to.nothing.
yes! your help pump my creativity and I start restructuring the site, home page will show the latest post and the others will be on archive page. I will try your code now. that code goes on the inspector CSS area too right?
I can see in the video (darkmode is hard to read) where you put the code.
Looking at the site the new code doesn’t appear to be there. However, the old code I gave you before (with some of those attributes that don’t work text-alignment, border-radius) is still there and working When I hit the detail or archive page.
In the video you can see I published the page and all the icons disappeared. Then I put the old code again and I got them back.
I think I know how to do it manually because the inspector is telling me css page I need to work with, but I want to do it on RW so I can do it only one time without going to the server to add the code.
I went to Armadillo site but it seems you can add css that affect all blogs. I just need this blog with the icon on header.
Not understanding what you are trying to say with “seems you can add css that affect all blog”. Are you using multiple blogs?
Placing the CSS into Armadillo will only affect pages that have Armadillo on them. Plus the CSS rules will only be applied to elements that the CSS selector matches. If you put the CSS in the page inspector or on Armadillo’s online shouldn’t have any impact on the rules being applied.
I honestly couldn’t tell what exactly you did on the video, but if you did republish and cleared your cache then it should have worked or at least been on the site when I looked at it.
Of course, it could be that there is some other CSS you have that’s creating a conflict or syntax error, but if you keep changing things it’s impossible to help you find the issue.
I’m not going to be near a real computer(only an iPad with zero web tools) for a couple of days so perhaps someone else can help.
I can assure you that the code above works for the page as it stood when I tested it. However, you need to stop the changing of other stuff on the page. I or anyone else, won’t be able to help you with a moving target.
No, the code above has no media query connected to it as posted.
So it should still apply to every screen width. What I could make out in your video, it looks like you have other CSS code in place.
Without being able to see all the code you have and whether you might have a syntax error in some other piece of code, Just a missing } on another snippet could easily cause a prior media query not to close.