I have a HTML page which includes some text and formatting. I want to make it have the same font-family and the same text-size ignoring all inner formatting of text.
I want to set a global font format for the HTML page.
How can I achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be able to utilize the asterisk and
!importantelements within CSS.The asterisk matches everything (you could probably get away without the
htmltoo).The
!importantensures that nothing can override what you’ve set in this style (unless it is also important). (this is to help with your requirement that it should “ignore inner formatting of text” – which I took to mean that other styles could not overwrite these)The rest of the style within the braces is just like any other styling and you can do whatever you’d like to in there. I chose to change the font size, color and family as an example.