Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Offline pipRaptor  
#1 Posted : Tuesday, May 3, 2016 10:35:09 AM(UTC)
pipRaptor


Rank: YAF Camper

Reputation:

Joined: 11/18/2014(UTC)
Posts: 14
Italy

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
This is a very simple trick to make uniform the CSS elements you want in your whole forum, independently form the theme you set

You have only to put this couple of rows at the beginning of the DEFAULT.ASPX page, after the various IMPORT and REGISTER

I set two font properties, but it's applicable to every CSS element

You can play with very great numbers to see the effect in the entire your forum, and you can change back simply re-coding a couple of lines

Code:

.....
// this is only a reference to see where you must put your code
<%@ Register TagPrefix="YAF" Assembly="YAF" Namespace="YAF" %> 

// you simply put an asterisk to include every CSS element
// indeed since "C" stands for Cascade... this propagates the setting to your whole forum
<style>
  * {
        font-family: Tahoma, Verdana, sans-serif !important;
        font-size: 12pt !important;
    }
</style>
.....

Edited by user Tuesday, May 3, 2016 11:26:21 AM(UTC)  | Reason: Some correction to better explain what to do

thanks 1 user thanked pipRaptor for this useful post.
Ordinary Nimda on 5/4/2016(UTC)
Sponsor
Offline Ordinary Nimda  
#2 Posted : Wednesday, May 4, 2016 6:23:30 AM(UTC)
Ordinary Nimda


Rank: YAF Lover

Reputation:

Joined: 2/8/2016(UTC)
Posts: 34
Slovenia
Location: LJ

Thanks: 13 times
Was thanked: 2 time(s) in 2 post(s)
This is good, for testing & development, but it might not be really efficient with respect to performance?
thanks 1 user thanked Ordinary Nimda for this useful post.
pipRaptor on 5/7/2016(UTC)
Offline pipRaptor  
#3 Posted : Friday, May 6, 2016 9:21:29 AM(UTC)
pipRaptor


Rank: YAF Camper

Reputation:

Joined: 11/18/2014(UTC)
Posts: 14
Italy

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: Ordinary Nimda Go to Quoted Post
This is good, for testing & development, but it might not be really efficient with respect to performance?


You are perfectly right!

Indeed I called it a "trick" and I told to play with it... simply it may something interesting to know
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error