# \[SOLVED!\]Title Background image Help!!!

**URL:** <https://forum.phpvms.net/t/solved-title-background-image-help/4733>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [May 18, 2011, 2:14pm UTC](https://forum.phpvms.net/t/solved-title-background-image-help/4733 "2011-05-18T14:14:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blu-Express\_VA](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/b/6de8d8/32.png) [@Blu-Express\_VA](https://forum.phpvms.net/u/Blu-Express_VA)\
**Post date:** [May 18, 2011, 2:14pm UTC](https://forum.phpvms.net/t/solved-title-background-image-help/4733/1 "2011-05-18T14:14:00Z")

</div>

Hi,

I would like to license this image as background ([http://bluepanoramava.joomlafree.it/Background%20Sid.gif](http://bluepanoramava.joomlafree.it/Background%20Sid.gif))

sid in the area of my site

([http://bluepanoramava.joomlafree.it/phpVMS/index.php/](http://bluepanoramava.joomlafree.it/phpVMS/index.php/))

I tried to put this code in your CSS:

```
#sample2 { 

                background: transparent url(http://bluepanoramava.joomlafree.it/Background%20Sid.gif)no-repeat;  

                       color: #FFFFFF;

                       text-align:center;
}

```

connecting it to the title with:

```
<h3 id="sample2">My Title</h3>

```

but does not work, narrows the picture!

is there a way for it to remain the size

Original?

Thanks!

---

<div class="post-metadata">

**Author:** ![James142](https://forum.phpvms.net/user_avatar/forum.phpvms.net/james142/32/92_2.png) [@James142](https://forum.phpvms.net/u/James142)\
**Post date:** [May 18, 2011, 7:45pm UTC](https://forum.phpvms.net/t/solved-title-background-image-help/4733/2 "2011-05-18T19:45:13Z")

</div>

> Hi,
> 
> I would like to license this image as background ([http://bluepanoramava.joomlafree.it/Background%20Sid.gif](http://bluepanoramava.joomlafree.it/Background%20Sid.gif))
> 
> sid in the area of my site
> 
> ([http://bluepanoramava.joomlafree.it/phpVMS/index.php/](http://bluepanoramava.joomlafree.it/phpVMS/index.php/))
> 
> I tried to put this code in your CSS:
> 
> #sample2 {
> 
> background: transparent url([http://bluepanoramava.joomlafree.it/Background%20Sid.gif](http://bluepanoramava.joomlafree.it/Background%20Sid.gif))no-repeat;
> 
> color: #FFFFFF;
> 
> text-align:center;  
> }
> 
> connecting it to the title with:
> 
> ### My Title
> 
> but does not work, narrows the picture!
> 
> is there a way for it to remain the size
> 
> Original?
> 
> Thanks!
> 
> PLEASE HELP ME!!!

In the css code, add:

```
height: 100px;
width: 100px;

```

obviously change the 100 to the actual size of the image.

Hope this helps!

Kindest Regards,

James

---

<div class="post-metadata">

**Author:** ![Blu-Express\_VA](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/b/6de8d8/32.png) [@Blu-Express\_VA](https://forum.phpvms.net/u/Blu-Express_VA)\
**Post date:** [May 20, 2011, 2:40pm UTC](https://forum.phpvms.net/t/solved-title-background-image-help/4733/3 "2011-05-20T14:40:34Z")

</div>

Ok, Thanks,

but I have another question, look at my site:

[http://bluepanoramava.joomlafree.it/phpVMS/index.php/](http://bluepanoramava.joomlafree.it/phpVMS/index.php/)

To the right is written in white, I tried to put

both the center and left, but is evil!, how do

to position it perfectly according to the image?

Thanks!

---

<div class="post-metadata">

**Author:** ![stuartpb](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@stuartpb](https://forum.phpvms.net/u/stuartpb)\
**Post date:** [May 20, 2011, 4:47pm UTC](https://forum.phpvms.net/t/solved-title-background-image-help/4733/4 "2011-05-20T16:47:58Z")

</div>

Apply some padding to the h3 element:

In your css you would do something similar:

```
h3#sample3 {
padding:5px 10px
}

```

You would need to mess around with the padding values to find the best amount for you. I would suggest you do some reading up on CSS, as you are going to keep hitting basic problems like this. I would recommend this website as an excellent starting place: [http://www.w3schools.com/css/](http://www.w3schools.com/css/)

There is also a page dealing specifically with applying padding to elements here: [http://www.w3schools.com/css/](http://www.w3schools.com/css/)css\_padding.asp

Cheers,

Stuart

---

<div class="post-metadata">

**Author:** ![Blu-Express\_VA](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/b/6de8d8/32.png) [@Blu-Express\_VA](https://forum.phpvms.net/u/Blu-Express_VA)\
**Post date:** [May 20, 2011, 4:53pm UTC](https://forum.phpvms.net/t/solved-title-background-image-help/4733/5 "2011-05-20T16:53:49Z")

</div>

Oooohhh,

Thannkkksss!!!
