Margin-Right on css not Working

2024/2/27 8:42:20

I have been messing with Coding during school because it interests me the most out of anything at school, and have been self-teaching myself Html-Css-and Js for most of the school year.

I have been re-creating my school's website, and I have run into some problems.

My CSS "Margin-Right" command has not been working. I have been trying to center a <Div> area with CSS and the "Style" command using margin left and right, and the right will never work.
I don't want to just use the position: absolute; command because I want some space on the side so you can see the background.
Here is my Html code.

CSS:

    .Isaac {width: 100%;padding: 4px;margin-right:100px;background-color: white;-webkit-box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.4);-moz-box-shadow: 0px 2px 12px rgba(23, 69, 88, .5);-webkit-border-radius: 100px;-moz-border-radius: 100px;border-radius: 10px;}

HTML:

  <div class="Isaac" Style="Background-color: #E6E6E6 ; Margin-Top: 40px"><!-- div content --></div>

Edit: The "100x" thing was just a silly error on my part, I meant to have "100px"
Also, I changed Margin-Right: 100x ; to margin-right:100px; and it still have no difference
I hope you can help me

Answer

Change:

Margin-Right: 100x;

to:

margin-right: 100px;
http://en.ppmy.cn/q/41715.html

Related Q&A

JavaScript Bitwise Masking

This question is similar to this other question; however, Id like to understand why this is working as it is.The following code:console.log((parseInt(0xdeadbeef, 16) & parseInt(0x000000ff, 16)).toS…

ember js get meta informations from json

i have a json data from my server:{"post": {"id": 1,"title": "Progressive Enhancement is Dead","comments": ["1", "2"],"links&q…

Disable script if user browsing using IE8

i want a javascript code to disable the script i made if the user is browsing using Internet explorer 8.

Recovering elements of a Javascript Path2D

I want to examine the individual path segments of a Path2D object. For example, suppose that path = new Path2D(); path.ellipse(70,90,2,2,0,0,2*Math.PI);I want to pass path to some other function and pu…

How can I apply a variable as an element ID with JavaScript?

I saw in the firebug the ID is like this whereas I want the value of existingProductArray[i] to be the ID. What am I doing wrong? var html =<li id="existingProductArray[i]">+ <input…

Why javascript array element cant be accessed with dot notation?

Why its not possible to access to array element with dot notation?var arr = [Apple, Mango, Pineapple, Orange, {name: Banana, color: yellow}];console.log( arr[0] ); // "Apple" console.log( ar…

svg to png not working, suspect svg element differences

Im having trouble figuring out why two different svgs would cause my javascript to work in one instance, but not in the other. I have only swapped out the svg elements in both examples, one works, one …

Saving the html 5 canvas image on local harddrive

I had created shapes on html 5 canvas using kineticjs library. Now i want to save the canvas as an image on my local system harddrive. Pls tell me how can i achieve it by using KineticJS library.

.innerHTML br breaking

Why is this breaking? Ive not used .innerHTML correctly before and dont know why this would be wrong.function asdf() {document.getElementById("qwerty").innerHTML="A<br>B<br>…

Pick random value from firebase snapshot

Im using firebases foreach to get each child in a tree from this urlObjective, when the page loads grab a random item from firebase and show itdata structuregrabbit (table name)active (for active items…