![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a 3rd party control that spits out an img tag with the vspace and hspace attributes set to some ridiculously high number giving my images too much margin. How can I use css to override these two attributes? |
#3
| |||
| |||
|
|
I have a 3rd party control that spits out an img tag with the vspace and hspace attributes set to some ridiculously high number giving my images too much margin. How can I use css to override these two attributes? You should really get rid of the problem (the 3rd party control, whatever that means) instead of trying to wipe it under the carpet when CSS is in use. There is no _specification_ that says how vspace and hspace are mapped to CSS properties. The natural expectations is that they are mapped to margin properties, and this is how some browsers interpret them, but IE 7 beta seems to treat hspace and vspace as creating special spacing that is applied _in addition to_ margin and padding properties. -- Yucca, http://www.cs.tut.fi/~jkorpela/ |
#4
| |||
| |||
|
|
What do you mean "...3rd party control, whatever that means"? Are you serious, you don't know what this means??? |
|
A 3rd party control is a server side control you buy from some vendor. It is compiled so you have no access to the source hence you can't modify/fix any problems. The HTML it spits out at run time is the html you get. So if there are deprecated tags or attributes in their control, you need to wait until the vendor updates the control. I am well aware of everything you said with respect to the use of css, |
|
but my influence in this world isn't so great that I can just call the vendor up on the phone and make them fix the issue. So you can save your sanctimonious preaching for someone else. You did nothing to answer my question. If I had wanted a sermon I would've asked for one. |
#5
| |||
| |||
|
|
You should really get rid of the problem (the 3rd party control, whatever that means) instead of trying to wipe it under the carpet... |
|
You can't. _Some_ browsers will override them with css margins, others will not. |
|
To further the education of mankind, ctilly (AT) gmail (DOT) com vouchsafed: I have a 3rd party control that spits out an img tag with the vspace and hspace attributes set to some ridiculously high number giving my images too much margin. How can I use css to override these two attributes? You can't. _Some_ browsers will override them with css margins, others will not. Jukka proffered a good answer; you responded childishly. -- Neredbojias Infinity has its limits. |
#6
| |||
| |||
|
|
If you were already well aware that it can't, then why did you ask if it can? |
|
A two-line sentence is a sermon? |
|
ctilly (AT) gmail (DOT) com wrote: What do you mean "...3rd party control, whatever that means"? Are you serious, you don't know what this means??? Not everyone in the world is deeply familiar with features available in .NET or similar technologies for generating HTML code. A 3rd party control is a server side control you buy from some vendor. It is compiled so you have no access to the source hence you can't modify/fix any problems. The HTML it spits out at run time is the html you get. So if there are deprecated tags or attributes in their control, you need to wait until the vendor updates the control. I am well aware of everything you said with respect to the use of css, That implies that you were already well aware about the part where Jukka said CSS can't be used reliably to accomplish what you are trying to accomplish. If you were already well aware that it can't, then why did you ask if it can? but my influence in this world isn't so great that I can just call the vendor up on the phone and make them fix the issue. So you can save your sanctimonious preaching for someone else. You did nothing to answer my question. If I had wanted a sermon I would've asked for one. A two-line sentence is a sermon? (Certainly no more so than your mini-sermon about how Jukka should know what a third-party control is.) Moreover, all Jukka suggested, correctly, was that you might have to use an approach other than the third-party control if you want to get rid of the excessive space. He didn't say anything about telling the vendor to fix the control for you. |
![]() |
| Thread Tools | |
| Display Modes | |
| |