The Font shall always be ' font-family: Arial, Helvetica, sans-serif' The Font shall always be ' font-family: Arial, Helvetica, sans-serif'
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

The Font shall always be ' font-family: Arial, Helvetica, sans-serif'

Started by sindbad5, December 10, 2014, 08:46:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sindbad5

The font-family is defined in the css in the 'body' as:     font-family: Arial, Helvetica, sans-serif;
Unfortunatey this is not what I get everwhere.

So I have to add a font-tag at many places. Is it possible to define every text of coppermine to have the same font?

I can not give you a link to that specific gallery because it is blocked to everybody outside a small circle. 

Tom 

allvip

1) Open your your_style.css and find all the: font-family: xxx  yyyy , zzz; and delete them;
Keep just the one in the body style.

2) Another way is to add !important to font in the body style.
Like this:


body {
   font-family :  Arial, Helvetica, sans-serif!important;
}


!important will make it important and overwrite other styles.

3) Another way (at the top of your styles):

* {
   font-family :  Arial, Helvetica, sans-serif;
}

* will make it important and overwrite other styles.

First method is the best way.
Is also important to have a small css file for server load and server resources so even for that is the best way.

sindbad5


allvip

If you have inline styles ( embedded in the html or php file ) !important is the one that works.
Inline styles are more powerfull then the style from a .css file. They overwrite the styles from css.

Only important is more powerfull. !important is the most powerfull one.

example of inline styles: <div style="font-family: Arial,sans-serif; border: 1px solid #000000;">the_content_of the_div</div> or <table style="font-family: Arial,sans-serif; border: 1px solid #000000;">the_content_of_the table</table> or <td style="font-family: Arial,sans-serif; border: 1px solid #000000;">the_content_of_the td</td>