<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: CSS background image trouble! please help...m a newbie!</title><link>http://forums.asp.net/thread/3532471.aspx</link><pubDate>Wed, 25 Nov 2009 14:05:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3532471</guid><dc:creator>catchgani3508</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3532471.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=3532471</wfw:commentRss><description>&lt;p&gt;Hi&amp;nbsp; &lt;strong&gt;johram&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have folder structure like&amp;nbsp;&lt;/p&gt;&lt;pre&gt;|&lt;br /&gt;+--App_Themes (folder)&lt;br /&gt;|  +--Theme1 (folder)&lt;/pre&gt;&lt;pre&gt;|       +--Style1.css&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;+--Images (folder)&lt;br /&gt;|  \--image.jpg&lt;br /&gt;|&lt;br /&gt;\--Default.aspx&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;So, can you please help me in giving path for the &amp;#39;background-image&amp;#39; attribute in my stylesheet. I already tried &lt;/p&gt;
&lt;p&gt;url(../../Images/image.jpg), but its not working.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks and regards&lt;/p&gt;
&lt;p&gt;Ganesh NR&lt;/p&gt;
&lt;p&gt;9849255958&lt;/p&gt;
&lt;p&gt;&lt;a href="mailto:devganesh@aol.in"&gt;devganesh@aol.in&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CSS background image trouble! please help...m a newbie!</title><link>http://forums.asp.net/thread/2355607.aspx</link><pubDate>Tue, 13 May 2008 21:31:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2355607</guid><dc:creator>mandeep123</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2355607.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2355607</wfw:commentRss><description>&lt;p&gt;Thanks Johram.....i guess you are right but am yet to try what you said. But i&amp;#39;ll try this too when am done with my project thing...now i jus don want to mess it up..jus scared. thanks a lot to give the knowledge.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CSS background image trouble! please help...m a newbie!</title><link>http://forums.asp.net/thread/2350642.aspx</link><pubDate>Sun, 11 May 2008 14:13:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2350642</guid><dc:creator>johram</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2350642.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2350642</wfw:commentRss><description>&lt;p&gt;You shouldn&amp;#39;t have to move the CSS file to get things working. Assume you have the following directory structure:&lt;/p&gt;

&lt;pre class="coloredcode"&gt;|&lt;br /&gt;+--Css (folder)&lt;br /&gt;|  \--Stylesheet.css&lt;br /&gt;|&lt;br /&gt;+--Images (folder)&lt;br /&gt;|  \--image.jpg&lt;br /&gt;|&lt;br /&gt;\--Default.aspx&lt;br /&gt;&lt;/pre&gt;
In your Default.aspx, you would do a link rel=&amp;quot;stylesheet&amp;quot; referring to the css file with a &lt;i&gt;relative path&lt;/i&gt; of &amp;quot;Css/Stylesheet.css&amp;quot; just like you did.
&lt;p&gt;Now, in your Stylesheet.css, in order to refer to an image, you need to go up one level (..) - since you&amp;#39;re in Css folder, and then down in the Images folder. The path for this is &amp;quot;../Images/image.jpg&amp;quot;.&lt;/p&gt;
If you have a directory structure similar to the one I&amp;#39;ve shown, things should work for you. Make sure you use forward slash (/) and not backslash (\) in paths.&lt;br /&gt;</description></item><item><title>Re: CSS background image trouble! please help...m a newbie!</title><link>http://forums.asp.net/thread/2350372.aspx</link><pubDate>Sun, 11 May 2008 08:02:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2350372</guid><dc:creator>mandeep123</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2350372.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2350372</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First of all, thank u guys for the replies....but i tried like dat too. didn&amp;#39;t work for me.....then i found a solution for this...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; my .css file was inside a CSS folder then something struck me and i pulled out my .css file and put it in the root directory of my site. guess what.... it worked. But i really hv no idea why it doesn&amp;#39;t work when my .css file is under a folder even though i mention the path in the default.aspx file where the path comes instantly when i drag my .css file and drop it in the default page. thanks neway guys for ur interest. I hope someone tells me the logic behind this thing wat happened wit me!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CSS background image trouble! please help...m a newbie!</title><link>http://forums.asp.net/thread/2350132.aspx</link><pubDate>Sat, 10 May 2008 23:55:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2350132</guid><dc:creator>johram</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2350132.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2350132</wfw:commentRss><description>&lt;p&gt;CSS image paths are always relative to the location of the CSS, not the page that includes it. So in this case, prefixing with .. (parent folder) should probably do the trick.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: CSS background image trouble! please help...m a newbie!</title><link>http://forums.asp.net/thread/2350111.aspx</link><pubDate>Sat, 10 May 2008 23:03:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2350111</guid><dc:creator>avidyarthi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2350111.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2350111</wfw:commentRss><description>&lt;p&gt;You might want to try:&lt;/p&gt;&lt;pre class="coloredcode"&gt;background-image: url(../Images/bannerfinal2.jpg);&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;instead of&lt;/pre&gt;&lt;pre class="coloredcode"&gt;background-image: url(Images/bannerfinal2.jpg);&lt;/pre&gt;&lt;pre class="coloredcode"&gt;depending on where your Images folder is placed.&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;Hope this helps.&amp;nbsp;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>CSS background image trouble! please help...m a newbie!</title><link>http://forums.asp.net/thread/2350012.aspx</link><pubDate>Sat, 10 May 2008 20:03:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2350012</guid><dc:creator>mandeep123</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2350012.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2350012</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i am using Css to get a background image for my header in my default.aspx file but its just not showing up in the design view, not even when i view it in IE. please help.&lt;/p&gt;&lt;p&gt;&lt;span style="text-decoration:underline;font-weight:bold;"&gt;this is my css&lt;/span&gt; :&lt;br /&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt;body&lt;br /&gt;{&lt;br /&gt;	padding-right: 1%;&lt;br /&gt;	padding-left: 1%;&lt;br /&gt;	padding-bottom: 1%;&lt;br /&gt;	margin: 0%;&lt;br /&gt;	padding-top: 1%;&lt;br /&gt;	height: 98%;&lt;br /&gt;	background-color: #cc9966;&lt;br /&gt;	text-align: center;&lt;br /&gt;}&lt;br /&gt;#headerGraphic&lt;br /&gt;{&lt;br /&gt;	background-image: url(Images/bannerfinal2.jpg);&lt;br /&gt;	clear: both;&lt;br /&gt;	&lt;span class="kwd"&gt;float&lt;/span&gt;: none;&lt;br /&gt;	width: 700px;&lt;br /&gt;	height: 246px;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="text-decoration:underline;font-weight:bold;"&gt;and this my default.aspx file&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot; CodeFile=&amp;quot;Default.aspx.cs&amp;quot; Inherits=&amp;quot;_Default&amp;quot; %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;&amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text-align: justify;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .centerAlign&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text-align: center;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link href=&amp;quot;CSS/StyleSheet.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&amp;quot;headerGraphic&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&amp;quot;navigationArea&amp;quot;&amp;gt;| link1 | link2 | link3 |&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&amp;quot;bodyArea&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&amp;quot;bodyLeft&amp;quot;&amp;gt;left text&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&amp;quot;bodyRight&amp;quot;&amp;gt;right text&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&amp;quot;footerArea&amp;quot;&amp;gt;Copyright 2008 - 2009: MySite, Inc.&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>