Hi,
I'm facing a weird problem developing a web application as compatible as possible with most popular browsers :
I've got a HTML which I want to move inside the page from its original position to another just by clicking on a button.
Here is the HTML code :
<div id="content">
text content ...
</div>
The associated CSS :
div#content{
padding: 15px 15px 15px 215px;
}
And the javascipt to move the block when clicking on a button :
document.getElementById('content').style.padding="15px 15px 15px 15px";
=> It works fine in Firefox, IE and Opera (basically, it expands a content block originally filling half of the page to the full page)
=> Whereas in Chrome, the javascript code doesn't expand the block width but move it of 200px with a fixed width (but if I hard code the padding modifications one at a time, it works fine ...)
I hope to be clear enought :s if anybody has a solution .. Thanks in advance.