473,545 Members | 1,720 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 2352
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
8896
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,...
4
2339
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...
6
4639
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
1918
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
1362
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
18415
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...
2
2050
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...
1
1242
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
1509
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...
0
7459
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...
0
7653
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. ...
0
7803
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...
1
7411
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7749
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...
0
4942
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...
0
3444
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
695
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...

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.