The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Host css in a html page

View previous topic View next topic Go down

Solved Host css in a html page

Post by fascicularia on January 23rd 2016, 8:22 pm

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Opera
Who the problem concerns : All members
When the problem appeared : Recently
Forum link : http://altitudetropicale.forums-actifs.com

Description of problem

Hello,
my style sheet reaches the limit allowed even through a css reducer.
I 'd like to know if it is possible to host a game on a css html page on the same principle as the tutorial of the Spanish media.
http://asistencia.foroactivo.com/t144438-como-anadir-css-desde-fuera-del-p-a-y-como-hacer-un-skin-selector

I know that we can go through the template overall_header which is also limited by number of characters .
There is indeed the possibility of using Javascript to and including the css but with certain constraints ( no background , image , of after and before) .

Thank you in advance for your assistance.


Last edited by fascicularia on January 29th 2016, 3:13 pm; edited 2 times in total

fascicularia
Forumember

Posts : 121
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by SLGray on January 23rd 2016, 10:23 pm

Are you wanting to add a game to a HTML page?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36712
Reputation : 2446
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on January 23rd 2016, 10:57 pm

Hello SLGray,
just add the css as with the style sheet but on a html page.
I has used the tutorial Spanish suport forum for topics selector and I'd like to do the same for the basic theme.

fascicularia
Forumember

Posts : 121
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on January 25th 2016, 10:59 am

bump

fascicularia
Forumember

Posts : 121
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on January 27th 2016, 10:32 am

Bump

fascicularia
Forumember

Posts : 121
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by Luffy on January 27th 2016, 11:23 am

Hello @fascicularia,

To add a CSS code in your HMTL Page you must contain the code with the tags
Code:
<style></style>
and for the javascript you must contain them into the tags
Code:
<script></script>
in order to work in a HTML Page.






Luffy
Manager
Manager

Male Posts : 4252
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on January 27th 2016, 8:20 pm

Hello Luffy,
we misunderstood each other.

I'm not talking about how to structure an html page but to use an HTML page as a style sheet. In the same manner as the forum style sheet.

Here is an html page used as a style sheet for the theme selector:
http://altitudetropicale.forums-actifs.com/h42-theme-complet-floraria-hydra

I am doing the same thing but the main theme.

fascicularia
Forumember

Posts : 121
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by Luffy on January 27th 2016, 8:37 pm

Oh!! Hehe, then i am sorry i am not really sure how to do that! Smile






Luffy
Manager
Manager

Male Posts : 4252
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on January 28th 2016, 12:20 am

Thank you anyway luffy

fascicularia
Forumember

Posts : 121
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on January 29th 2016, 1:10 pm

bump

fascicularia
Forumember

Posts : 121
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by 10spetter10 on January 29th 2016, 1:34 pm

This seems to work:

Code:
$(function() {
  $('head').append('<style id="externcss"></style>');
  $('#externcss').load('http://altitudetropicale.forums-actifs.com/h42-theme-complet-floraria-hydra');
});

10spetter10
Forumember

Posts : 195
Reputation : 81
Language : Dutch

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on January 29th 2016, 2:36 pm

10spetter10,What can I say except that your js works great. banana banana banana banana

I'll add more as the loading is much faster if the CSS was installed in the stylesheet.

This piece of code will appeal to those who want to compartmentalize their css and provide an interim temporary theme without having to delete the original theme.

10spetter10 , as we say at home, I will not kiss you but the heart is Good

fascicularia
Forumember

Posts : 121
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by SLGray on January 29th 2016, 9:14 pm

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36712
Reputation : 2446
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum