<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>www.pinkpetrol.com &#187; CSS</title>
	<atom:link href="http://www.pinkpetrol.com/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pinkpetrol.com</link>
	<description>sams blog</description>
	<lastBuildDate>Tue, 10 Aug 2010 23:30:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Squashed SharePoint site when viewing Properties in Edit Mode</title>
		<link>http://www.pinkpetrol.com/blog/2009/09/squashed-sharepoint-site-when-viewing-properties-in-edit-mode/</link>
		<comments>http://www.pinkpetrol.com/blog/2009/09/squashed-sharepoint-site-when-viewing-properties-in-edit-mode/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 14:26:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Branding]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.pinkpetrol.com/?p=298</guid>
		<description><![CDATA[I have finally found a fix to a really annoying bug in SharePoint that squishes my site when I have edited a Web Part!
In side the SharePoint master page everything is set to Height:100% &#8211; EVERYTHING, even I feel I am set to Height:100% when I have finished looking at the damn code! Removing these [...]]]></description>
			<content:encoded><![CDATA[<p>I have finally found a fix to a really annoying bug in SharePoint that squishes my site when I have edited a Web Part!</p>
<p>In side the SharePoint master page everything is set to Height:100% &#8211; EVERYTHING, even I feel I am set to Height:100% when I have finished looking at the damn code! Removing these can cause all kinds of hidden issues so my rule of thumb is if CSS can bully in line styles then let it go to town them!</p>
<p>The problems crop up when you want to add a custom footer that combined with a small resolution causes this&#8230;</p>
<p style="TEXT-ALIGN: center"><img class="size-full wp-image-299 aligncenter" title="Example of a squashed SharePoint site" src="http://www.pinkpetrol.com/wp-content/uploads/2009/09/squashed.jpg" alt="squashed" width="577" height="238" /></p>
<p>As you can see this isn&#8217;t very user friendly and looks pretty poor. Well I used my trusty tool set of web apps to find out the cause and hopefully a fix and I feel I have found one. If you use this line of CSS code in your style sheets it will increase the height of the properties pane on the right hand side.</p>
<p><strong>#MSO_tblPageBody {<br />
 height:500px !important;<br />
}</strong></p>
<p>This is the fix I have found which has worked for me &#8211; if anyone knows a better one or an improvement on mine then feel free to share!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pinkpetrol.com/blog/2009/09/squashed-sharepoint-site-when-viewing-properties-in-edit-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customising the Content Query Web Part list results</title>
		<link>http://www.pinkpetrol.com/blog/2009/09/customising-the-content-query-web-part-list-results/</link>
		<comments>http://www.pinkpetrol.com/blog/2009/09/customising-the-content-query-web-part-list-results/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 12:42:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Branding]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.pinkpetrol.com/?p=282</guid>
		<description><![CDATA[
The CQWP is a fantasic webpart my only two annoyances are that you can only do 3 rules on the filtering and the second is that the results are a bit rubbish in terms of styling, look and feel.
There are two ways you can customise these results. First way is to put a DIV wrapper [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-283 alignleft" style="margin-bottom: 15px; margin-right: 10px;float:left;" title="Example of Read More links" src="http://www.pinkpetrol.com/wp-content/uploads/2009/09/readmorelinks.jpg" alt="Example of Read More Links" width="314" height="315" /></p>
<p>The CQWP is a fantasic webpart my only two annoyances are that you can only do 3 rules on the filtering and the second is that the results are a bit rubbish in terms of styling, look and feel.</p>
<p>There are two ways you can customise these results. First way is to put a DIV wrapper around the results and style them that way which is ok when you want to do text styling such as color change, style and padding which you can see in the orange box. You can do this by using the styles below but remember &#8211; you need to put a DIV wrapper around the Web Part Zone and/or Web Part.</p>
<p><strong>#blogbox .link-item,<br />
#blogbox .link-item a:link,<br />
#blogbox .link-item a:visited,<br />
#blogbox .link-item a:active<br />
{<br />
color:#990000;<br />
font-family:arial;<br />
font-size:1.15em;<br />
font-weight:bold;<br />
}</strong></p>
<p>When looking into this I first tried to style the <strong>A</strong> tag that is used for the <strong>TITLE</strong> which read &#8216;New version of Free2Teach launched&#8217; which worked ok until there was a long title line that wrapped around and underneath. This caused it to visually break and look poor. I then thought I am going to have to do this properly if I want to do it!</p>
<p>What I did was very very simple, I started by opening up <strong>ItemStyle.xsl</strong> inside the <strong>XSL Style Sheets</strong> within the <strong>Style Library</strong>. Next I took a copy of this file (very important!) and then added the following below. I set the template name to <strong>&#8216;ReadMoreLink&#8217; </strong>so I could remember it when selecting it in the CQWP settings.</p>
<p>&lt;xsl:template name=&#8221;NewLinkDefault&#8221; match=&#8221;Row[@Style='NewLinkDefault']&#8221; mode=&#8221;itemstyle&#8221;&gt;<br />
        &lt;xsl:variable name=&#8221;SafeLinkUrl&#8221;&gt;<br />
            &lt;xsl:call-template name=&#8221;OuterTemplate.GetSafeLink&#8221;&gt;<br />
                &lt;xsl:with-param name=&#8221;UrlColumnName&#8221; select=&#8221;&#8216;LinkUrl&#8217;&#8221;/&gt;<br />
            &lt;/xsl:call-template&gt;<br />
        &lt;/xsl:variable&gt;<br />
        &lt;xsl:variable name=&#8221;SafeImageUrl&#8221;&gt;<br />
            &lt;xsl:call-template name=&#8221;OuterTemplate.GetSafeStaticUrl&#8221;&gt;<br />
                &lt;xsl:with-param name=&#8221;UrlColumnName&#8221; select=&#8221;&#8216;ImageUrl&#8217;&#8221;/&gt;<br />
            &lt;/xsl:call-template&gt;<br />
        &lt;/xsl:variable&gt;<br />
        &lt;xsl:variable name=&#8221;DisplayTitle&#8221;&gt;<br />
            &lt;xsl:call-template name=&#8221;OuterTemplate.GetTitle&#8221;&gt;<br />
                &lt;xsl:with-param name=&#8221;Title&#8221; select=&#8221;@Title&#8221;/&gt;<br />
                &lt;xsl:with-param name=&#8221;UrlColumnName&#8221; select=&#8221;&#8216;LinkUrl&#8217;&#8221;/&gt;<br />
            &lt;/xsl:call-template&gt;<br />
        &lt;/xsl:variable&gt;<br />
        &lt;xsl:variable name=&#8221;LinkTarget&#8221;&gt;<br />
            &lt;xsl:if test=&#8221;@OpenInNewWindow = &#8216;True&#8217;&#8221; &gt;_blank&lt;/xsl:if&gt;<br />
        &lt;/xsl:variable&gt;<br />
        &lt;div id=&#8221;linkitem&#8221; class=&#8221;item&#8221;&gt;<br />
            &lt;div class=&#8221;link-item&#8221;&gt;<br />
             &lt;xsl:call-template name=&#8221;OuterTemplate.CallPresenceStatusIconTemplate&#8221;/&gt;    <br />
                &lt;a href=&#8221;{$SafeLinkUrl}&#8221; target=&#8221;{$LinkTarget}&#8221; title=&#8221;<a href="mailto:{@LinkToolTip">{@LinkToolTip</a>}&#8221;&gt;<br />
                    &lt;xsl:value-of select=&#8221;$DisplayTitle&#8221;/&gt;<br />
                &lt;/a&gt;<br />
                &lt;a href=&#8221;{$SafeLinkUrl}&#8221; target=&#8221;{$LinkTarget}&#8221; title=&#8221;<a href="mailto:{@LinkToolTip">{@LinkToolTip</a>}&#8221; class=&#8221;readmorelink&#8221;&gt;<br />
                  read more<br />
                &lt;/a&gt;</p>
<p>            &lt;/div&gt;<br />
        &lt;/div&gt;<br />
    &lt;/xsl:template&gt;</p>
<p>What I have simply done is coped the full <strong>A</strong> reference and copied it underneath and set the class to <strong>&#8216;readmorelink&#8217;</strong> and added the following css to my style sheet and it should work <img src='http://www.pinkpetrol.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>.readmorelink {<br />
display:block;<br />
text-indent:-9999px;<br />
background:transparent url(&#8216;../Images/ergoimages/readnewsitem.jpg&#8217;) top left no-repeat;<br />
color:#666666;<br />
margin:10px 0 0 0 !important;<br />
padding:0;height:27px;<br />
font-family:arial;<br />
font-size:1.15em;<br />
font-weight:bold;<br />
}</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pinkpetrol.com/blog/2009/09/customising-the-content-query-web-part-list-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Custom Styles to the RichTextEditor (RTE) in SharePoint</title>
		<link>http://www.pinkpetrol.com/blog/2009/09/adding-custom-styles-to-the-richtexteditor-rte-in-sharepoint/</link>
		<comments>http://www.pinkpetrol.com/blog/2009/09/adding-custom-styles-to-the-richtexteditor-rte-in-sharepoint/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 12:11:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Branding]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.pinkpetrol.com/?p=278</guid>
		<description><![CDATA[
Whilst doing some branding work for a client I was asked &#8216;can we have different text colors&#8217;. I instantly thought of hours of HTML teaching and had visions of brightly coloured pages illuminating fire red, yellow and radioactive greens! So what I needed to do was lock it down so the client can dictate the colors but the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-304" title="SharePoint Rich Text Editor" src="http://www.pinkpetrol.com/wp-content/uploads/2009/09/rte.jpg" alt="SharePoint Rich Text Editor" width="577" height="200" /></p>
<p>Whilst doing some branding work for a client I was asked &#8216;can we have different text colors&#8217;. I instantly thought of hours of HTML teaching and had visions of brightly coloured pages illuminating fire red, yellow and radioactive greens! So what I needed to do was lock it down so the client can dictate the colors but the users can set them.  The best way to do this is give them a selection of custom styles they can use for titles that are outside of the standard h1, h2 &amp; h3 that are set.</p>
<p><strong>.ms-rteCustom-CustomStylesh1 { color: #990000; font-size:3em;font-weight:bold;}<br />
.ms-rteCustom-CustomStylesh2{ color: #666666;font-size:2em;font-weight:bold; }<br />
.ms-rteCustom-CustomStylesh3{ color: #cccccc;font-size:1em;font-weight:bold; }</strong></p>
<p>The way it works it by adding <strong>.ms-rteCustom-NEWSTYLENAME</strong> the RTE will pick up this style and will insert the desired styling.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pinkpetrol.com/blog/2009/09/adding-custom-styles-to-the-richtexteditor-rte-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Error when Moving WebParts in a CSS and DIV&#8217;d up MasterPage</title>
		<link>http://www.pinkpetrol.com/blog/2009/04/javascript-error-when-moving-webparts-in-a-css-and-divd-up-masterpage/</link>
		<comments>http://www.pinkpetrol.com/blog/2009/04/javascript-error-when-moving-webparts-in-a-css-and-divd-up-masterpage/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 10:49:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.pinkpetrol.com/?p=67</guid>
		<description><![CDATA[
I spent a lot of time trying to put SharePoint in a nice place where it could flourish without being bullied by other sites that conform to accessibility standards. So you can probably understand my anger when I discovered that my new masterpage and css broke the drag and drop functionality.
When in Edit Mode, you try [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-310" title="Helpful errors" src="http://www.pinkpetrol.com/wp-content/uploads/2009/04/error.jpg" alt="Helpful errors" width="577" height="200" /></p>
<p>I spent a lot of time trying to put SharePoint in a nice place where it could flourish without being bullied by other sites that conform to accessibility standards. So you can probably understand my anger when I discovered that my new masterpage and css broke the drag and drop functionality.</p>
<p>When in Edit Mode, you try and drag and drop a WebPart from one WebZone to another it ill throw up a Javascript Error and the functionality wont work. Even though this functionality only works in IE it does present a customer use problem.</p>
<p>At first I used <a title="Link to Niel Mosafi's blog" href="http://neilmosafi.blogspot.com/2007/11/sharepoint-dragging-webparts-causes.html" target="_blank">Neil Mosafi&#8217;s</a> solution of using his JavaScript fix, at first it worked but I saw it only worked periodically, so the problem still existed.  I searched and I searched and found nothing. I then looked at using the CSS to control the problem which I believe is that the webparts don&#8217;t exist now because they are divs and not tables (?)</p>
<p>I&#8217;m not a techy so I tend not to delve into the problems as much as they do, I just look at why it doesn&#8217;t work and what is the easiest fix.</p>
<p>body {<br />
margin: 5px;<br />
padding: 0;<br />
text-align: center;<br />
font-family:Arial;<br />
font-size:62.5%;<br />
background:#ffffff;<br />
<strong>position:relative;</strong><br />
}</p>
<p>I found adding Position:Relative to the body fixes this, I tried doing this on all the WebPart TD tags but it didn&#8217;t work and it got tiresome and annoying, I have found that this has worked but SharePoint being SharePoint it doesn&#8217;t wondering unexplained things, so time will tell if this has really fixed the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pinkpetrol.com/blog/2009/04/javascript-error-when-moving-webparts-in-a-css-and-divd-up-masterpage/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
