Chamoru 671
New member
Okay I already know the <center></center>.
Here is my code:
<div style="position:relative;border:2px solid red;width:1100px;height:100%">
<div style="position:absolute;margin:0px auto;border:2px solid pink;">
<img src="images/table1.0.png">
</div>
</div>
I have a parent container, but how do I get the child to align to the center of my parent container? I have tried putting the margin:0 auto, but that gives no result. My picture just stays at the top left corner of my parent container...How can I move this from the top left to the center of my parent container?
please help!
Here is my code:
<div style="position:relative;border:2px solid red;width:1100px;height:100%">
<div style="position:absolute;margin:0px auto;border:2px solid pink;">
<img src="images/table1.0.png">
</div>
</div>
I have a parent container, but how do I get the child to align to the center of my parent container? I have tried putting the margin:0 auto, but that gives no result. My picture just stays at the top left corner of my parent container...How can I move this from the top left to the center of my parent container?
please help!