I am dealing with a chart that has unwanted spacing on left and right side. I've been trying to remove it with no luck, and I don't know what else to do now. I've read the documentation thoroughly, but can't seem to find a solution....
It was my understanding that [some elem].style.maginTop would return a string with the element's top margin.  Instead, I'm always getting a blank string. I want to use this with the body, but I also tried on a div, and that didn't work ei...
Is there a way to detect the true border, padding and margin of elements from Javascript code? If you look at the following code:  <html>     <head>         <style>         <!--         .some_class {             padding-left: 2px...
I have made this website it works fine on Internet Explorer, Firefox and Chrome. But when I try and access it through my mobile it seems to get rid of all the margins which messed up the layout of the website  This is what it looks like on the browse...
I'm looking for a robust way of determining the top margin of any DOM node that is rendered in the browser. This should work in all browsers. How can I do this? (Sometimes an element may have a specified margin in a stylesheet, but it may not act...
I have some pages in my Ionic 2 project. The pages theirselves are ok, but when I push them from another page, an unexpected "margin-top" element appears under the header!   Here's the code of one of the interested pages:   <ion-header...
Here is my code   <script> function showin(box) {         cur = parseInt(document.getElementById(box).style.marginTop);        alert(cur);     }  showin('child');  </script>  <div id="parent" class="parent">...
I have created a simple <ul> list in HTML and assigned different values of margin-right to each of the <li>'s using CSS (jsFiddle). This is the HTML mark-up of it:  <ul>     <li>First</li>     <li>Second</li...
I'm working on an AngularJS app and am experiencing unwanted whitespace.  <div class='user' ng-repeat='session in sessions'>     <div class='text' ng-bind='monologues[session][0]'></div>     <d...
Possible Duplicate:   Why does this CSS margin-top style not work?       Let's say I have two DIVs, one inside the other (DIV1 -> DIV2), and I define a marginTop property on the inner DIV, it should move DIV2 within DIV1...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.