cleanup - FORUM - Ning Creators Social Network2024-03-29T12:38:34Zhttps://creators.ning.com/forum/topics/feed/tag/cleanup"TIP" Creating a CSS stylesheet for your network, CSS cleanup design studio, NC custom code box, ad box,https://creators.ning.com/forum/topics/tip-creating-a-css-stylesheet-for-your-network-css-cleanup2012-10-31T19:30:55.000Z2012-10-31T19:30:55.000ZGeorge H. Compton IVhttps://creators.ning.com/members/GeorgeHComptonIV<div><p>You can take all your CSS codes from your design studio,<br />
NC custom code box and your ad boxes and put them on a<br />
stylesheet. This will speed up your network and make more<br />
room in your code box's.</p>
<p><br />
<span class="font-size-5"><strong><span style="color: #0000ff;">(Creating your stylesheet)</span></strong></span></p>
<p>remember to remove all tags from your CSS codes before adding it to a stylesheet</p>
<p>example remove all tags like this <strong>/*end hide modules*/</strong> also remove any style Tags <strong><style></strong> & <strong></style></strong> from any CSS code you got from your <strong>NC custom code box</strong>, <strong>ad box</strong> or your <strong>design studio advanced CSS</strong>..</p>
<p>Just create a new text document on your desktop<br />
and then copy all your CSS codes to the text document<br />
and save. change the file extension of the text document from<br />
.txt to .css</p>
<p>To change the file extension go to your "<span style="color: #0000ff;"><strong>control panel</strong></span>" double click on the "<span style="color: #0000ff;"><strong>folder options</strong></span>" icon. the folder options box will pop up select the "<span style="color: #0000ff;"><strong>view tab</strong></span>" then look down the list until you find The line that says "<span style="color: #0000ff;"><strong>hide extensions of known file types</strong></span>" uncheck that box press apply then okay. The document that you created now shows the file extension .txt at the end of the name of the document. now you can change the .txt to .css<br />
<br />
then upload the stylesheet to your<br />
network and replace the link (<a rel="nofollow" href="http://your_new_stylesheet.css">http://your_new_stylesheet.css</a>) in this code below with<br />
the new link you just created.<br />
<br />
<strong><span class="font-size-5" style="color: #0000ff;">(Uploading the stylesheet)</span></strong><br />
if you have a file manager just upload it with that.<br />
if not just create a new page without saving<br />
press the attachment button and upload the stylesheet<br />
when the upload completes highlight and copy the link<br />
and paste it over the link (<a rel="nofollow" href="http://your_new_stylesheet.css">http://your_new_stylesheet.css</a>) in the code below then hit<br />
ok then cancel the new page.<br />
<br />
<span class="font-size-5"><strong><span style="color: #0000ff;">(Placing the code on your network)</span></strong></span><br />
place the stylesheet code in<br />
your NC custom code box or in any ad box.</p>
<p><strong><span class="font-size-5" style="color: #888888;">CODE</span></strong><br />
<link rel="stylesheet" type="text/css" href="http://your_new_stylesheet.css" /><br />
<br />
<br />
<span class="font-size-5"><strong><span style="color: #ff0000;">Stylesheet limitations</span></strong></span><br />
a stylesheet can not be larger than 288kb</p>
<p><span style="color: #ff0000;">NO JavaScript</span> and <span style="color: #ff0000;">NO</span> <span style="color: #ff0000;">HTML</span>.<br />
Internet Explorer 6 to 9 can only handle 31 stylesheets</p>
<p>most any other browser can handle 4095 or more.</p>
</div>