Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Css in Htlm on SP2010 page

$
0
0

Hi

I have a lot of web pages I wish to apply some Css to. I want to create a file and store it in the style library. I then plan to reference this in the htlm on each page.

The basic htlm i'm testing this with is:

<style>

#s4-leftpanel {

                   DISPLAY: none

}

.s4-ca{

         MARGIN-LEFT:Opx

}</style>

If I copy this in it works as expected. However the minute I reference a file from a location using <link rel="stylesheet" href="style.css" media="screen" /> it applies to the page and works as I would expect. However then when I publish the page, it seems to remove it and when I edit the page the section I entered is no longer there.

Why does this occur and how can you get around this in SharePoint 2010.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>