Having some trouble with a form i am creating. I am trying to style the labels to match the font of the rest of the site, but i am unable to get the labels to accept it.
If i use one of the built in fonts (sans-serif, fantasy etc) it uses them and changes font, but trying to use my own (edge fonts and google fonts) does nothing.
The fonts work on the rest of the site and i have checked there is nothing overriding it in the css.
We’re going to need more than just that little bit of code to see what is going on. Sometimes the way the different CSS rules interact with each other will affect the end result, and a bit of CSS really is not of much use without the html.
Could you please post the html and css for a working page which contains this form.
The form itself was made with simfatic forms ( I may even just create the forms again with my own code.) and this is the code it produced, i simply targeted the id’s it created.
I will look into changing them now and see if that helps
Also added a link to the page in my original post.
Please focus on “specificity”. One ID “outweighs” all of the classes on a web page. You may need an ID in the form, but the font can still be chosen by targeting a classname or even the tag (element) in the form rather than the ID. If the default font is ID dependent, then specificity may be the problem.
Neither have I and I’ve seen a lot of unconventional writing styles. (including my younger BASIC self
I tend to be over-specific with selectors, I usually try to do the least amount of DOM traveling)
Is it possible that there should be a comma there?
Your modal is an iframe so you will need to include a link to the font files inside the iframe code just like you have done with modalform.css which is contained within the iframe itself.