473,699 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prevent insertion of Style="width=.. " tags?

To get my formatting to work with Firefox and IE browsers, I have to be very
careful about the layout. So I'm removing all the Style tags that set the
Height and Width values (and some of these values make no sense). But then
when I go back on look at the HTML later on I see the Style tags have been
added back and my formatting is all screwed up again. Arghh!!

Can someone tell me how to make ASP.NET stop adding these troublesome Style
tags in my HTML? Is this a property I can set somewhere? I want my HTML to
be only what I type in.

Thanks.
Nov 19 '05 #1
2 1341
switch to flowlayout, and don't use the ide to size controls.

-- bruce (sqlwork.com)
"Brian Bischof" <Br***@NoSpamBi schofSystems.co m> wrote in message
news:uH******** ******@TK2MSFTN GP10.phx.gbl...
To get my formatting to work with Firefox and IE browsers, I have to be
very
careful about the layout. So I'm removing all the Style tags that set the
Height and Width values (and some of these values make no sense). But then
when I go back on look at the HTML later on I see the Style tags have been
added back and my formatting is all screwed up again. Arghh!!

Can someone tell me how to make ASP.NET stop adding these troublesome
Style
tags in my HTML? Is this a property I can set somewhere? I want my HTML to
be only what I type in.

Thanks.

Nov 19 '05 #2
Thanks for the reply, but I already do both of these things. Even though the
IDE is nice, I end up doing a lot of my coding in raw HTML and just using
the IDE to preview what the page will look like. The Style tag keeps popping
up and screwing up my clean formatting. I haven't figured out exactly what
action triggers them to be added, I just know that after deleting all the
Style tags I'll come back to the page later on to edit it and find them all
there again. :-(

Brian

"Bruce Barker" <br************ ******@safeco.c om> wrote in message
news:er******** ******@TK2MSFTN GP09.phx.gbl...
switch to flowlayout, and don't use the ide to size controls.

-- bruce (sqlwork.com)
"Brian Bischof" <Br***@NoSpamBi schofSystems.co m> wrote in message
news:uH******** ******@TK2MSFTN GP10.phx.gbl...
To get my formatting to work with Firefox and IE browsers, I have to be
very
careful about the layout. So I'm removing all the Style tags that set the Height and Width values (and some of these values make no sense). But then when I go back on look at the HTML later on I see the Style tags have been added back and my formatting is all screwed up again. Arghh!!

Can someone tell me how to make ASP.NET stop adding these troublesome
Style
tags in my HTML? Is this a property I can set somewhere? I want my HTML to be only what I type in.

Thanks.


Nov 19 '05 #3

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

Similar topics

13
40738
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div style="display:none"> can be displayed by setting the style attribute to "display:", or hidden with "display:none". This gives the illusion that the person filling out the form is switching from page to page...without the overhead of extra hits on the server,...
8
5738
by: Hostile17 | last post by:
Consider the following HTML. ---------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <title>Untitled</title>
4
16650
by: Simon Wigzell | last post by:
Is there a way to prevent a form submitting when you press enter on a text field? Some people press enter when they finish typing in a text field out of habit I guess unconcsciously thinking it will take them to the next field. Instead it submits the form and this causes all kinds of problems in my case. Any javascript solution?
15
122134
by: Gérard Talbot | last post by:
Hello all, I'd like to know and understand the difference between, say, <img src="/ImageFilename.png" width="123" height="456" alt=""> and <img src="/ImageFilename.png" style="width: 123px; height: 456px;" alt="">
5
17696
by: johnsuth | last post by:
I want to produce a trivial demonstration of dynamic modification. I thought that pressing a button might change its color. I studied O'Reillys books and successfully created the button with a fancy style, but the onclick fails to do anything no matter what permutation of parameters I try. <input type=button style=background-color:yellow;color:blue;font-family:Arial;font-style:italic;font-weight:bold name="xyz" value="CHANGE COLOUR"...
2
8684
by: Steve Richter | last post by:
I would like to use display:inline and other CSS attributes to build an entry form. Where the heading to the left of the text box is always a set width. It is not working so I am experimenting with two divs to get them to render side by side: <div style="width:12em;border: 2px solid #EFCE8C; padding: 0.5em;display:inline;">abc</div> <div style="width:12em;border: 2px solid #EFCE8C; padding:
1
6444
by: msg2ajay | last post by:
hi, i am working on <div> i have to hide some part of the table. I am not able to hide that table part can anybady tell me where is the error. <html> <head> <script type="text/javascript"> function callme(){ document.getElementById("hid").style.visibility="visible"; }
5
3061
by: Jean Pierre Daviau | last post by:
Hi to every one. How can I manage to write this kind of css in a style="". img { width: 150 px; height: 100 px; text-align: center; }
0
966
by: DC | last post by:
Hi, I want to use a horizontal tabbed menu and took this solutions as a template: http://www.java2s.com/Code/ASP/Components/TabcontrolDemoC.htm Everything is cool, but in my menu there are no spaces supposed to be seen between the tabs. The menu control seems to render a <tdwith an inline style "width: 3px" between the tabs.
0
8686
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9033
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...
1
8911
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8882
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
7748
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4375
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.