.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

CSS Positioning shows as centered in Visual Studio 2008 preview area but off to the left when shown

Posted By:      Posted Date: September 26, 2010    Points: 0   Category :ASP.Net

	background-image: url('images/bodyBG_Home.jpg');
	background-repeat: no-repeat;
	background-color: #BBBBBB;
	margin: auto;
	width: 960px;
	margin: auto;
	width: 960px;
	height: 860px;	

The above code shows how I tried to center the #header and #body elements. When viewed in the preview region of Visual Studio 2008 everything looks perfect. Unfortunately when I view it in the browser both the header div and body div are off significantly to the left.

I have no idea what to do. :(

View Complete Post

More Related Resource Links

SSRS 2008 formatting issue - different in visual studio preview/pdf/excel vs. internet explorer


The formatting of the report is perfect when viewed in Visual studio and also after exporting it to pdf or excel. But when I deployed my solution and opened it on IE/Firefox there is a lot of problem in formatting. Specifically the row height is giving me a problem. I manually entered them to be 0.1in and made the CanGrow field as false to force that row height but some rows in the tablix expand ( to 0.15in, which is the height of my header). This is true for a matrix as well. Is there is a feature to lock the row height in IE o any other web browser?


Visual Studio 2008 Memory problems


My memory in task manager reaches about 900,000K  and I don't know why it does this. Definately slows everything down, especially when I rebuild my tableAdapters, takes about 30 seconds sometimes to rebuild the project.

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project


my current project references




i have a very annoying iis problem

iis server stops working until app pool is recycled


i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem


Business Intelligence Reports Project in Visual studio 2008 ?



I wonder how to add a project template called  Intelligence Reports, something like that, to Visual studio 2008. I have SQL 2008 installed. Do I need to install some updates to get Intelligence Reports template to Visual studio 2008 ?

Thank you..

Visual Studio Web Deployment Project for VS 2008


What is the latest version of Visual Studio web deployment project which I can use with  VS 2008 ?

Can I use VS 2010 Web Deployment Project with  VS 2008 ?


crystal report -visual studio 2008 dual axis chart (bar & line)


dear all, 

i use crystal report integrated with  vs.2008, and i want to make chart with dual axis (bar & line).

i have used bar chart and input the data with 2 values..

then in chart options > template, i activated the dual axis..

my question is, how i can change the 2nd value with line chart not bar chart??

i'd tried to find the right settings in "chart options" but still can't find the solution.

for information in "chart options" there are 4 sub menu : template, general,titles,grid..

i read in a tutorial there's more sub menu called "series" in crystal report (stand alone version)..

is it possible doing it in Crystal Report VS. 2008?

please,, i need your advice and solution..

Thanx before..


VSTO 3.0: Developing Office Business Apps with Visual Studio 2008


With custom form regions in Outlook you can pull in data from designated data sources and truly customize your users' Outlook 2007 experience.

Steve Fox

MSDN Magazine Launch 2008

Foundations: What's New for WCF in Visual Studio 2008


Visual Studio 2008 and the .NET Framework 3.5 provide new tools and support that extends Windows Communication Foundation (WCF). Visual Studio 2008 also automates a number of manual WCF tasks for the developer as well.

Juval Lowy

MSDN Magazine February 2008

Speed Up Visual Studio 2008

The article Speed Up Visual Studio 2008 was added by tmorton on Monday, August 09, 2010.

1- Disable toolbox populate from the mainmenu open Tools->Options Select the general tab under Windows Forms Designer Set AutoToolBoxPopulate to false. Although the setting is under Windows Forms Designer, it is just as effective for ASP.Net developers

CSS support in visual studio 2008 express edition


I have several css style sheets I want to work with.  I have copied them into the appropriate directory structure in my project.  The styles are applied correctly.

But the manage CSS styles tool bar on the left margin doesn't seem to work correctly.  At one point I had generated a style sheet and worked with it there, but now it not only can't find the one it generated, but the attach style sheet link doesn't respond at all, nor does anything in this bar.  Same deadness with the CSS Properties bar.  With or without a style sheet loaded in the editor -- a style sheet that is active in the project such that when I run it, the styles are applied.

VB version of studio, running on Vista home basic.

PS, the design mode works a lot better than the professional version I use in my day job on XP and server 2003.

Visual Studio 2010 Shows Blank Page during web development


I just upgraded a web project from VS2008 to VS2010 Ultimate (Windows7 64bit, IE8/Google Chrome. When I run the web project in the development server (by hitting F5) everything acts like it is supposed to except everything comes up blank. Even the directory structure page is blank, just an empty HTML open and close shell. I get no errors no indications of failure, nothing. When I try to use google chrome I get the same blank page no matter where I navigate to, even if I try to navigate to a non-existant location on the dev server. I know the code compiles and acts correctly because I can deploy it to our QA servers without issue. Any ideas? 

How to get information about Sharepoint Running Workflow in Visual Studio 2008

Can any one tell me about. How i can get information about sharepoint running workflow in visual studio 2008.

Where is the Visual Studio 2008 Web Control Library Template


Does a project exist for grouping user controls? Visual Studio 2005 had this template but it does not appear to exist in 2008.

We will be creating several User Controls and would like them grouped accordingly.


Thanks in advance for any responses.

WPF Designer (in VS 2008 and VS 2010) crashes with Visual Studio

Good day all. I have the following question: WPF designer in both VS 2008 and VS 2010 crashes with Visual Studio when I try to edit UI form. Moreover, it crashes even when I try to save .xaml.cs file. Meanwhile, Winforms and Dataset UI editors work as usual. Are there other people met this issue? And how could I fix up this problem? Deleting the .suo file, uninstalling silverlight, repairing visual studio, and further googling did not help me. Thanks in advance.

AdventureWorks and Visual Studio 2008

Would someone please tell me how to get Visual Studio to automatically create the correct SQL statements so that I can stop getting the following error:"there was an error executing the query. please check the syntax of the command and if present the types and values of the parameters and ensure they are correct. Invalid object name 'Product'" 'Product'  gets replaced with whatever table name I drag onto my web form from the server explorer. The only information that may help that I know is that I noticed that Visual Studio creates the following select statement: "SELECT * FROM [BillOfMaterials]" and this generates an error. Where as when I manually type "SELECT * from Production.BillOfMaterials;" Everything works fine. The only issue with this is i would hate to have to manually enter all of the SQL statement into my web app.  Any help would me great appreciate. SQL2008.AdventureWorks_All_Databases.x64 - this is the version of AdventureWorks that I downloaded and installed on my machine.

Visual Studio 2008: having trouble in opening any web page

hi alli am unable to run any web page in the browser that i design in visual studio..i didnt understand that what happened.As the visual studio was working fine and i can easily run my websites that i create in it but now i tried to run different pages in its internal browser,internet explorer,mozilla firefox but they give error(the error which we get when we are not connected to internet and try to open a url).Even i had tried to build a new website and run it but the problem is still..i cant figure it out thats why came here and posted.so can anyone help me out...

where did i put this in web form using visual studio 2008?

(1)Connection String Sql connection conn=new SqlConnetion ("Data Soure=_______; InitialCatalog=_______;integrated Security = "TRUE"); (2)Binding a control SqlCommand=new SqlCommand ("SELECT STATEMENT", Connection String); SqlDataAdapter da=new SqlDataAdapter(comm); DataSet ds=new DataSet(); da.fill(ds); checkedListBox1.DataSource=ds.Tables[0]; checkedListBox1.DisplayMember="_____"; checkedListBox1.ValueMember="_____";
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend