pipRaptor
2016-05-03T16:35:09Z
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


.....
// 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>
.....
Sponsor
Ordinary Nimda
2016-05-04T12:23:30Z
This is good, for testing & development, but it might not be really efficient with respect to performance?
pipRaptor
2016-05-06T15:21:29Z
Originally Posted by: Ordinary Nimda 

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

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved