Re: Javascript causing CSS margin bug in IE
- From: "Gregory A. Beamer" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 14 Sep 2009 11:55:51 -0700
=?Utf-8?B?TUNN?= <MCM@xxxxxxxxxxxxxxxx> wrote in
news:8B202C13-53E8-4125-A6FA-3627F1C2277D@xxxxxxxxxxxxx:
If you can get the elements with margins outside of hte update panel,
it should solve the issue. If this is impossible, you will need to
examine the source and find what is not being applied.
There is no update panel. Just a table that I am adding rows to as I
receive data in javascript.
Let me make sure I have this correct. You are peforming all of your own
AJAX transactions and not using the ASP.NET AJAX controls?
if so, you are in control of the CSS applied to elements you are
updating.
If not, you have an update panel somewhere or the AJAX would not work.
If the update panel is in a master page, this is a moot point.
One possible solution is
to switch from CSS classes to tags within classes.
..myInnerClass
{
}
becomes something like
..myClass.p
{
}
Sorry, I don't quite understand...
//CSS
..myclass1
{
}
..myclass2
{
}
<!-- tags -->
<div class="myclass1">
<div class="myclass2">
</div>
</div>
can become
//CSS
..myclass1
{
}
..myclass1.div
{
}
<!-- tags -->
<div class="myclass1">
<div>
</div>
</div>
In this way, if the inner DIV is updated, you do not have to reapply the
myclass2 class to the div. This is probably a bad example, as the
elements with classes applied (if classes are, in fact, applied) are
probably not divs.
NOTE: Hit view source and save the source. Then update with AJAX and do
it again. You can then compare the sources and find what portion of the
page needs a bit of tweaking.
Peace and Grace,
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com
My vacation and childhood cancer awareness site:
http://www.crazycancertour.com
*******************************************
| Think outside the box! |
*******************************************
.
- Follow-Ups:
- References:
- Javascript causing CSS margin bug in IE
- From: MCM
- Re: Javascript causing CSS margin bug in IE
- From: Gregory A. Beamer
- Re: Javascript causing CSS margin bug in IE
- From: MCM
- Javascript causing CSS margin bug in IE
- Prev by Date: SV: Why can't i put two controls in the same directory*?
- Next by Date: RE: UpdatePanel with ThirdParty controls
- Previous by thread: Re: Javascript causing CSS margin bug in IE
- Next by thread: Re: Javascript causing CSS margin bug in IE
- Index(es):
Relevant Pages
|