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

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

Fixed Div and Screen Resolution

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

Hi All,

I am using Visual Studio 2008 + Enterprise Library 4.1 + SqlServer 2008 for development. I have a fixed div which I am using as a footer in my application. the CSS code is below...Problem is that if I browse the application on 1024 x 768 pixels it works great but when i change the resolution up to 1280 x 800 pixels the image inside the div change its position. I want this to appear same on every resolution...any suggestions or workaround.

     bottom: 0px;  
     left: 91px; 
     width : 783px;

I have a master page where i've defined this div and below is the HTML code.

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <link href="../App_Themes/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/

View Complete Post

More Related Resource Links

Setting Screen Resolution



  I am developing a website in asp.net.How can i make my web pages view same in different screen resolutions.I am using 1024*768 resolution

Screen Resolution.



I am developing a web site which is targeted for 1280x800 screen resolution.

Right now i developing the site in 1024x768 resolution.

I am using percentages only with respect to width & height.

Please help me in achieving this for 1280x800 resolution.

Thanks is advance.


Using Windows 7 my screen resolution changed.

My screen resolution changed to 1280 X 720.The relavent sreen resolution section in windows only now allows me a max of the above.I am using NVIDIA Ge Force 9800GT graphics and ASUS VW220 monitor.Will appreciate any help.Cheers.    

ajax modalpopupextender panel width in different screen resolution

I have a modal pop up window I want to fix the panel width, but  when screen resolution is changed then panel width is also changed and the content is shown out of pop up window. Is there any way to fix the height and width keep fixed in different screen resolutions ?  

Screen resolution issue in MOSS 2007



I have designed the SharePoint landing page with screen resolution of 1024x768. The layout is desined with 3 column. The header images are designed for fixed size for the above resolution only.
It looks good for the users having 1024x768 screen resol. But for few users who have bigger resolution like 1280x720 & wider screens, the header images still shows the same size and thus the body (three column layout) expanded. As a result there is an empty space in the right side of the header.

Is there anyway to get the screen to resize automaticlly for all the users?  


Converting windows form to bmp - image crops when the screen resolution is changed


I am converting windows form to a bitmap file using   DrawToBitmap method.  My code looks like this.

            Dim wid As Integer = 760 '  Me.Width
            Dim hgt As Integer = 780 ' Me.Height
            Dim bm As New Bitmap(wid, hgt)
            Me.DrawToBitmap(bm, New Rectangle(0, 0, wid, hgt))
            bm.Save(CurDir() & "\sample.bmp")

This code work fine on desktop/laptop with the screen resolution 1024 x 768  or above.   If I use app on a table pc – with the screen resolution is 800 x 480, the image gets cropped. 
Any suggestion or alternate mode.


How to change screen resolution to 960*600 or 1366*768

I'm developing a full scrren game for a customer. My customer require to change the screen resolution to 960*600 or 1366*768, I 've download some sample code on Internet but they can only change the screen resolution to 800*600 or 1024*768. Please help me.

SharePoint 2010 screen resolution


We are design page layouts for SharePoint 2010 web site using Divs. What screen resolution should we go for? 1024 * 768 or 1440 * 900?

For what screen resolution, SharePoint 2010 has been designed?


Resizing cotrols based on screen resolution


I have a issue where I need to resolve quickly

I have a div element and within the div element I show a gridview.

The gridview is being rendered with the help of template fields.

I am using

<asp:table width 100%>



           item is bound here


 </asp:table >


 All this is shown within a div element.

I actually have set the width and height of the gridview by setting the height and width of the div element.

However when the screen resolution changes then there is a lot of space left on the bottom and to the right.

Please help..I have gone through other posts and tried setting the height on the onload function but the height is fixed and only a part of the data is shown , one cannot see the entire data.

In my case setting a fixed width and height of the div element(which is being done in CSS) causes the gridview to be small but the entire data is scrollable...

Will it be possible to use fixed width in ListDetails screen upon clicking on the "Edit" button?


Hi All,

I think most of you have noticed that when you click on the "Edit" button in the ListDetails screen, you will see a horizontal scroll bar in your browser becuase a width of fields are increased for edit.

Will it be something that can be controlled in FieldTemplates?

Best regards,

How to detect user's screen resolution


Hello all,

I am using a asp:Label control and I need to set it to visible if the screen resolution of the user is nore then 1000 pixels.

How do I do that?


Adjust application window size per screen resolution on different computers


I have built an  application which calls two dialog boxes defined in a .rc file.

When this application was run on a computer with a screen resolution of 600 x 800

the dialog boxes were not fully displayed.  How can I automatically adjust for different screen resolutions?

Snap It! - How to take screen shot using .Net

We all would have used snap shots (screen shots) to illustrate bugs or behavior or something that others could understand by seeing them. For taking snap shots we just hit the "Print Screen" key and copy it to Ms Paint and save it. Ever wondered how to programmatically take a snap shot? Then this article is for you.

How to Fixed GridViews Header and Footer when scrolling in asp.net?

This article is to show you how to Fix GridView''s Header and Footer in a simple code with CSS and JavaScript

Scrollable GridView with fixed headers in asp.net C# vb.net

In this example i am going to show how to create scrollable GridView with fixed headers which don''t get scrolled with records and stay on the top in asp.net using css, I''ve tested this code on IE7 and Firefox 2.0 , 3.5.

For this we need to add css to headers of gridview to keep them on the top.

First of all place a Panel on the aspx page from thetoolbox. Set height to 200px and width to 200px
and scrollbars to Vertical.
Now add a gridview inside this Panel and set the datasource to populate gridview.
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