-
changing target browser
Hi,
I created a web app in visual studio with a target browser set to IE 5 and above, now i want to change it to Netscape 4 or something more universal
but when i changed the target schema it also changing the whole layout of the page, when i corrected the layout and tried saving, the panels kept changing position and all moved into the middle of the page overlapping each other.
All i want to know how to do is how to change the target schema of my web pages to something less than IE 5 and with minimal effect on my site in terms of panels moving randomely all over the place.
any ideas ???
-
Have you tried viewing your pages in an older browser with your target schema set to ie5. I'm pretty sure it is designed to be optimal for ie5 but still work in earlier versions. Perhaps I'm wrong?
-
Hi
Yes, i did try and view it in older browsers and it did show up, but everything was completely out of proportion.
I started building the projects with target schema set to IE5 and then afterwards i realised i should have had it in an earlier version of a browser like IE3 and netscape 3, but when i tried to change target browser it looked fine, but as soon as i clicked the save button everything lost shape and moved accross the screen into a clutered mess in the middle of the screen.
what i have been told is that the layout changes when you change the browser type, and .Net is supposed to arrange the server controls in a table when the target browser is set to IE3 and Netscape 3, but i don't know what is happening here.
any ideas, i am scared that i will have to redo my project and create the GUI again and just transfer the code accross.
They must have thought this one through.... any ideas?
-
Hi
Another thing i would like to know is this.
I have text boxes with their borders set to flat which is fine in IE, but as soon as i try and view them in Opera or Netscape, they appear as normal boxes.
Is their anyway to get around this and for the text boxes to keep their border style.
thanks.
-
You are using styles for positioning I presume. As for the flat button styles it goes for most browsers that styles will always look different unfotunately. There are a number of things I can suggest.
1. Use browsercaps in asp.net to redirect the user to a page with a template designed for that browser.
2. Get TopStyle Lite and use it to create your stylesheets. Topstyle allows you to select the browsers you want to create styles for and limits your options to style tags that those browsers support.
3. Don't use grid positioning in vs.net. I do not use this option at all. Positioning controls in vs.net uses css positioning which almost always has slight differences in look in different browsers. This is especially pertinent when you want items to appear exactly below, above other items etc. Use html tables to organise your controls into a structured layout.
4. Do nothing and design for ie5 and above. My website monitors visitors to my site. It is an Irish site but with alot of visitors and statistically I get about 90% ie5 or above visitors. This may not be the case for you but almost certainly it will be a majority.
-
thanks
i think i will have to build my apps like that in the future.
one more thing... i have an imagebutton set at a certain size in my app, and the image is by default stretched to the appropriate size, now when i view the image in netscape it shows the image without a strech value.
i had 4 boxes neatly lined up with the images in them stretched appropriately, now in netscape it wont recognise the stretch. i would usually just resize the image, but the problem is i need to populate the image button with dynamic content.
once again thanks.
-
i fixed the problem. see my post on "re-sizing?" or go to this url for more info:
http://www.aspalliance.com/aspxtreme...sCssClass.aspx