473,837 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

controls in grid layout render incorrectly in firefox

I am designing a web page using VS2003 ASP.NET. The page contains various
DIVs (panels), one of which is in grid layout. The controls in this DIV
render correctly in IE, but when using Firefox they are incorrectly
positioned. VS sets the positioning of the controls to absolute, and because
the DIV is to the right of another DIV Firefox (correctly, I suspect)
positions the controls absolutely, which means they are too far to the left,
while IE (and VS design) seems to position them relative to the DIV even
though they are set as absolute. I have tried changing the positioning to
relative manually in the HTML view, but VS just changes it back to absolute
whenever I reposition the controls in design view.
Does this make sense, and can anyone tell me what to do about it? Obviously
I need the page to render correctly in all browsers.
--
Dave
Dec 14 '05 #1
3 2364
Dave-

Grid layout is not correctly supported by all browsers, so it's probably
best to use FlowLayout if you might have users who don't use IE.

In design view, find the properties for your page, and set the pageLayout
property to FlowLayout, and then strip out any preexisting positioning
from the HTML of your aspx page.

Jim

On Wed, 14 Dec 2005, Dave wrote:
I am designing a web page using VS2003 ASP.NET. The page contains various
DIVs (panels), one of which is in grid layout. The controls in this DIV
render correctly in IE, but when using Firefox they are incorrectly
positioned. VS sets the positioning of the controls to absolute, and because
the DIV is to the right of another DIV Firefox (correctly, I suspect)
positions the controls absolutely, which means they are too far to the left,
while IE (and VS design) seems to position them relative to the DIV even
though they are set as absolute. I have tried changing the positioning to
relative manually in the HTML view, but VS just changes it back to absolute
whenever I reposition the controls in design view.
Does this make sense, and can anyone tell me what to do about it? Obviously
I need the page to render correctly in all browsers.
--
Dave


Dec 14 '05 #2
The pagelayout of the page is already set to FlowLayout. There is only one
one panel that is set to GridLayout. I couldn't find a way to change the
layout of this panel in design view, so I changed it to FlowLayout in HTML
view (MS_POSITIONING ="FlowLayout "). Howeverit has had no effect at all on the
layout in either IE or Firefox (or VS for that matter).
Am I correct in thinking that the MS_POSITIONING tag is used only by VS and
ignored by browsers?
I have tried to reporduce the problem in a simpler HTML file but I can't.
Could it be something to do with the asp controls and the way they are
rendered by Firefox?
--
Dave
"Jim Suruda" wrote:
Dave-

Grid layout is not correctly supported by all browsers, so it's probably
best to use FlowLayout if you might have users who don't use IE.

In design view, find the properties for your page, and set the pageLayout
property to FlowLayout, and then strip out any preexisting positioning
from the HTML of your aspx page.

Jim

On Wed, 14 Dec 2005, Dave wrote:
I am designing a web page using VS2003 ASP.NET. The page contains various
DIVs (panels), one of which is in grid layout. The controls in this DIV
render correctly in IE, but when using Firefox they are incorrectly
positioned. VS sets the positioning of the controls to absolute, and because
the DIV is to the right of another DIV Firefox (correctly, I suspect)
positions the controls absolutely, which means they are too far to the left,
while IE (and VS design) seems to position them relative to the DIV even
though they are set as absolute. I have tried changing the positioning to
relative manually in the HTML view, but VS just changes it back to absolute
whenever I reposition the controls in design view.
Does this make sense, and can anyone tell me what to do about it? Obviously
I need the page to render correctly in all browsers.
--
Dave


Dec 15 '05 #3
Further to my previous reply, it is not an ASP problem. I have manged to
reproduce the problem with a simple HTML file, as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Layout test</title>
</HEAD>
<body>
<div>
<div style="WIDTH: 135px; HEIGHT: 272px; float: left;">
<P>This is text in the left hand column which is flow layout.</P>
</div>
<DIV style="WIDTH: 592px; POSITION: relative; HEIGHT: 256px"
MS_POSITIONING= "GridLayout ">
<DIV style="DISPLAY: inline; Z-INDEX: 101; LEFT: 16px; WIDTH: 232px;
POSITION: absolute; TOP: 8px; HEIGHT: 38px" ms_positioning= "FlowLayout ">
This is a text box in the right hand column which is grid layout.
</DIV>
</DIV>
</div>
</body>
</HTML>

If anyone can explain why this renders differently in IE and Firefox (I
hesitate to categorise either as being 'correct') I would like to know. (NB
Opera renders it as intended, ie. the same as IE).
--
Dave
"Jim Suruda" wrote:
Dave-

Grid layout is not correctly supported by all browsers, so it's probably
best to use FlowLayout if you might have users who don't use IE.

In design view, find the properties for your page, and set the pageLayout
property to FlowLayout, and then strip out any preexisting positioning
from the HTML of your aspx page.

Jim

On Wed, 14 Dec 2005, Dave wrote:
I am designing a web page using VS2003 ASP.NET. The page contains various
DIVs (panels), one of which is in grid layout. The controls in this DIV
render correctly in IE, but when using Firefox they are incorrectly
positioned. VS sets the positioning of the controls to absolute, and because
the DIV is to the right of another DIV Firefox (correctly, I suspect)
positions the controls absolutely, which means they are too far to the left,
while IE (and VS design) seems to position them relative to the DIV even
though they are set as absolute. I have tried changing the positioning to
relative manually in the HTML view, but VS just changes it back to absolute
whenever I reposition the controls in design view.
Does this make sense, and can anyone tell me what to do about it? Obviously
I need the page to render correctly in all browsers.
--
Dave


Dec 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
8926
by: T. Bjarne | last post by:
I'm writing a form with a grid layout (similar to the ones in phpMyAdmin). The form will contain X number of columns and Y rows - all cells containg INPUT elements. As long as the data isn't tabular I want to avoid tables. Is there a smart way (DIVs and CSS) to do this form without a table? Could I consider a form like this as tabular data, and forget making it tableless? Thanks,
4
2351
by: NWx | last post by:
Hi, I develop an ASP.NET app which should be used from Internet, so I don't have control over what browsers will be used. I don't want to target every possible users, so I don't really mind is some user with a very ancient browser (Netscape 3 or 4, or IE 3) won't be able to view the site properly. However, I want that modern browsers (IE 5+, Netscape 6, Mozilla, Opera, and possible other browsers with new versions) to be able to...
6
4661
by: Don Collins | last post by:
Can anyone point me to a white paper discussing the advantages / disadvantages to using “grid layout” vs. “flow layout” on webforms? I’m looking to address performance issues in particular.
10
1946
by: John Wilson | last post by:
My app produces some long datatables to display in a grid. So I put them in a div so users can scroll. But the grid headers scroll out of view. I would like to stop them doing this. Can I fix them in place at the top of the div? -- John Wilson
5
1371
by: sembiance | last post by:
Hi everyone! So I have this webpage that renders fine in both Quirky and Strict modes under Firefox. Website HTML: http://www.telparia.com/layout_cross_platform_test.html Website CSS: http://www.telparia.com/layout_cross_platform_test.css This is how it should correctly render: http://www.telparia.com/layout_cross_platform_correct.jpg
117
18616
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of elements in the HTML to get everything just right. When you consider the class attribute on the DIV elements, there's not much size savings anymore for using DIV. There are other disadvantages to not using TABLE/TR/TD, such as the lack of ability...
2
2067
by: Edward | last post by:
I'm pursuing the holy grail of creating a two-column CSS layout with footer AND where the colors of the columns actually go all the way down. The code is below. Here is a graphic of how it looks in each IE and FIREFOX: http://www.tanguay.info/web/examples/twoColumnWithFooterFirefoxIeProblem.png Does anyone have any idea what I might try to get both IE and FIREFOX
1
1252
by: neeraj | last post by:
Hi all, Can its possible in asp.net application, whenever data grid render in page on run time its render as "HTML DIV Base lay out". Not as "HTML table layout". Thanks
1
1529
by: Scott | last post by:
I've been trying to use css stylesheets to lay out a header, a left column and a main content area using width as percentages so the layout can expand and contract with the browser. I'm using Visual Studio 2008 professional with VB as the codebehind language on the aspx pages as well as having a page master with the header, left nav, and footer contained in it and a ContentPlaceHolder in the main right div to be filled in by the various...
0
9843
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9682
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10875
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10566
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10272
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7001
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5848
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4040
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3124
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.