The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Host css in a html page

4 posters

Go down

Solved Host css in a html page

Post by fascicularia 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
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

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

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


Host css in a html page Slgray10

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

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia 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.
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

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

bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

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

Bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by TheCrow 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.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia 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.
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by TheCrow January 27th 2016, 8:37 pm

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

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Host css in a html page

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

Thank you anyway luffy
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

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

bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

Post by 10spetter10 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
10spetter10
Forumember

Posts : 195
Reputation : 82
Language : Dutch

Back to top Go down

Solved Re: Host css in a html page

Post by fascicularia 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
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

Solved Re: Host css in a html page

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

Topic solved and archived


Host css in a html page Slgray10

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

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top


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