I've just started creating a my first web site using asp.net. I'm using the basic template VS 2010 has given me. I'm changing some design details, like background colors, padding etc. and it shows just fine on the "design" tab of Site.Master.
For some reason, after pressing "ctrl+F5" or just simple debugging, some of the changes don't appear on the page when it's opened in the browser.
Again, in the VS 2010 enviornment it shows perfectly inside this bar but when running it, it is padded down about 10 pixels. I've tried playing around with all kinds of settings, but the difference remains the same. Any idea?
will you please provide snapshot of your output and your css code, so that i can find the problem
Also if your first problem is solved then mark our comments as answer so that other users can get solutions on their issue if they are facing same issue
orik123
Member
1 Points
5 Posts
Changes in Site.css not showing on runtime
May 06, 2012 12:17 AM|LINK
Hi all,
I've just started creating a my first web site using asp.net. I'm using the basic template VS 2010 has given me. I'm changing some design details, like background colors, padding etc. and it shows just fine on the "design" tab of Site.Master.
For some reason, after pressing "ctrl+F5" or just simple debugging, some of the changes don't appear on the page when it's opened in the browser.
Any idea on that?
Thanks!
Ori.
Bimalvv
Contributor
2372 Points
481 Posts
Re: Changes in Site.css not showing on runtime
May 06, 2012 12:49 AM|LINK
Might be cached, try to clear the browser cache and see.
Bimal
orik123
Member
1 Points
5 Posts
Re: Changes in Site.css not showing on runtime
May 06, 2012 10:23 AM|LINK
First of all, big thanks to all of you, it worked!
One problem still prevail - I have the menu bar that is inside the div bar:
<div class="clear hideSkiplink"> <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" Orientation="Horizontal" EnableTheming="True" StaticSubMenuIndent="0px" BorderStyle="None" DynamicEnableDefaultPopOutImage="False" DynamicPopOutImageTextFormatString=""> <Items> <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/> <asp:MenuItem NavigateUrl="~/About.aspx" Text="About" Selected="True"/> <asp:MenuItem NavigateUrl="~/Account/MembersOnly.aspx" Text="Members Only"/> </Items> </asp:Menu> </div>Again, in the VS 2010 enviornment it shows perfectly inside this bar but when running it, it is padded down about 10 pixels. I've tried playing around with all kinds of settings, but the difference remains the same. Any idea?
Thanks again!
res.web
Member
546 Points
138 Posts
Re: Changes in Site.css not showing on runtime
May 06, 2012 12:28 PM|LINK
will you please provide snapshot of your output and your css code, so that i can find the problem
Also if your first problem is solved then mark our comments as answer so that other users can get solutions on their issue if they are facing same issue
orik123
Member
1 Points
5 Posts
Re: Changes in Site.css not showing on runtime
May 06, 2012 05:47 PM|LINK
http://imageshack.us/f/856/screenshot3ika.jpg/
http://imageshack.us/f/651/screenshot2qi.jpg/
You can see the difference between the two screenshots.
Thank you for your help!
res.web
Member
546 Points
138 Posts
Re: Changes in Site.css not showing on runtime
May 07, 2012 04:03 AM|LINK
try this for menu css:
padding-top:0px;
margin-top:0px;
It should work, if still not working then pls post css code for 'menu' class
tarunSaini
Contributor
2948 Points
985 Posts
Re: Changes in Site.css not showing on runtime
May 07, 2012 04:40 AM|LINK
try this
<div class="clear hideSkiplink">
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
<asp:MenuItem Text="Sell">
<asp:MenuItem NavigateUrl="~/sell/howtosell.aspx" Text="How to Sell"
Value="How to Sell"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem NavigateUrl="~/CustomerSupport/customer.aspx"
Text="Give Feed Back" Value="Give Feed Back"></asp:MenuItem>
</Items>
</asp:Menu>
</div>
orik123
Member
1 Points
5 Posts
Re: Changes in Site.css not showing on runtime
May 07, 2012 09:39 AM|LINK
Sorry guys, tried both your advices, still doesn't work.
See the linked screenshots:
http://img690.imageshack.us/img690/6361/screenshot4vqu.jpg
http://img51.imageshack.us/img51/2469/screenshot5if.jpg
http://img233.imageshack.us/img233/5524/screenshot6wa.jpg
Thanks!
res.web
Member
546 Points
138 Posts
Re: Changes in Site.css not showing on runtime
May 08, 2012 04:15 AM|LINK
try this:
.menu ul
{
margin:0px;
padding:0px;
}
.menu ul li
{
list-style-type:none;
list-style-position:inside;
}
orik123
Member
1 Points
5 Posts
Re: Changes in Site.css not showing on runtime
May 08, 2012 08:27 AM|LINK
Sorry, but it still doesn't work. :(