# Margin / padding / image in the background

**URL:** https://forum.kirupa.com/t/margin-padding-image-in-the-background/151470
**Category:** Uncategorized
**Created:** [June 15, 2005, 6:22pm UTC](https://forum.kirupa.com/t/margin-padding-image-in-the-background/151470 "2005-06-15T18:22:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![3pinter](https://avatars.discourse-cdn.com/v4/letter/3/9de053/32.png) [@3pinter](https://forum.kirupa.com/u/3pinter)
#### Post date: [June 15, 2005, 6:22pm UTC](https://forum.kirupa.com/t/margin-padding-image-in-the-background/151470/1 "2005-06-15T18:22:22Z")

</div>

Is my assumption true?

I have a centered \<div\> which has a css id … it reffers to a background-image  
In that \<div\> I have some text …

BUT

this text should start about 2em to the right …

If I use margin, the backgroundpicture is moved also, If I you padding, it’s uneffected in IE but correct in Moz.

\>\>\>So I thought: the only way to get rid of the whole margin/padding thing is to create another \<div\> IN the excisting \<div\>

```auto

<div id="firstone">
	   <div id="secondone">
</div></div>

```

[css]  
.secondone{margin-left = 2em;}  
[/css]

Is my assumption correct???

3Pinter  
😏
