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 Sat Jan 23, 2016 7: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 Fri Jan 29, 2016 2:13 pm; edited 2 times in total

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by SLGray on Sat Jan 23, 2016 9: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.

avatar
SLGray
Administrator
Administrator

Male Posts : 40195
Reputation : 2715
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on Sat Jan 23, 2016 9: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 : 171
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on Mon Jan 25, 2016 9:59 am

bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on Wed Jan 27, 2016 9:32 am

Bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by Luffy on Wed Jan 27, 2016 10: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.





avatar
Luffy
Manager
Manager

Male Posts : 4788
Reputation : 484
Language : Greek, English
Location : Greece

http://vibes.forumotion.com/

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on Wed Jan 27, 2016 7: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 : 171
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by Luffy on Wed Jan 27, 2016 7:37 pm

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





avatar
Luffy
Manager
Manager

Male Posts : 4788
Reputation : 484
Language : Greek, English
Location : Greece

http://vibes.forumotion.com/

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on Wed Jan 27, 2016 11:20 pm

Thank you anyway luffy

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on Fri Jan 29, 2016 12:10 pm

bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by 10spetter10 on Fri Jan 29, 2016 12: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');
});
avatar
10spetter10
Forumember

Posts : 195
Reputation : 82
Language : Dutch

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia on Fri Jan 29, 2016 1: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 : 171
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by SLGray on Fri Jan 29, 2016 8:14 pm

Topic solved and archived


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40195
Reputation : 2715
Language : English
Location : United States

https://fmthemes.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