Go to the menu - Go to the contents

[Site map] You are here --- > Newbies Paradise > Forums > Website > XHTML / CSS / JS > order > Read the topic

order

non background picture

You have to be registered to post messages

SolvedThis topic's problem has been solved

Page 1 
Author Message
1 visitor on this topic (1 anonymous user)
Page 1 
Offline jixer # Posted on 04/21/2007 01:44:56 PM
Avatar
Translators
Can I put a picture behind text without making it the background? eg, different layers

thanks for the help, jixer
Edited on 04/21/2007 06:42:08 PM by jixer
Offline ixM # Posted on 04/21/2007 08:19:11 PM
Made in Belgium
Avatar
Admins
Yes, if you use a div for example.

Code: xHTML
<body>
<p>lalallalalala it's just some text. <span style="background-image: url('./images/not_a_background.png');">This is text with a local different background :)</span>...
Yeah</body>


Hope it helped ;)
Cya

Everything's a fallacy
 
Offline asmodeus # Posted on 04/28/2008 04:25:02 AM
Avatar
Group : Members
Another possible way is, in the style tag insert something like this:

#image{z-index:1;}
#text{z-index:2;}

This will place the container with the id of "text" in front of the image with the id of "image" (Keep in mind that a z-index of 0 is the default)

User image
 
Offline Slycooper # Posted on 07/11/2008 11:02:50 AM
Avatar
Group : Members
You can use CSS :

Code: HTML
1
2
3
4
5
6
7
<p><!-- Normal text -->
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed non lectus quis nibh gravida vulputate. Aliquam blandit leo id odio. 
</p>

<p class="back2"><!-- Text  whit another background -->
Mauris nunc. Sed eros metus, sollicitudin quis, dictum sed, tempor pretium, risus. Aliquam erat volutpat. Suspendisse viverra tincidunt magna! 
</p>



Code: CSS
1
2
3
4
.back2
{
   background-image: url('images/background2.jpg')
}
Edited on 07/11/2008 11:03:07 AM by Slycooper

I'm French, just French, only French !! ;)
User image
How progress in English?
In reading the "Site du Zér0" in English of course ! User image
 

Back to "XHTML / CSS / JS" or to the boards list

You have to be registered to post messages

Change your template | Learn more about NP | Site map | Terms of use | Rules | RSS feed | XHTML 1.0 | CSS 2.0
Powered by Simple IT SARL: Contact us

There is nothing else to read, you have to go up now !

Do you want to be published here? Contact us.

Number of Newbies connected 4 Newbies Connected | SQL requests 8 Requests | Page loading delay 0.0739s (0.0595s)