|
| |
|
|
paul rayner
Posts: 232 Joined: 3/15/2001 From: yeppoon, qld, aus Status: offline
|
Z index problem - 9/12/2009 2:40:56
I'm trying to get an image to float in (over the top) of a banner div. You can see the mess I've made of it here. My CSS looks like this:
#banner {
background-image:url(images/filler.png);
background-repeat:;
height: 150px;
}
#banner h1 {
font: 80px Tahoma, Helvetica, Arial, Sans-Serif;
text-align: left;
color: #993300;
text-shadow: 0px 2px 3px #555;
margin-right: 50px;
}
#banner img {
z-index: 2;
float: right;
margin-top:0px;
}
The html looks like this:
<body>
<div id="container">
<div id="banner">
<h1> St Paul's College</h1><img src="images/big brother.png" alt="big_bro" />
</div>
To clarify - i know the image is bigger than the banner div. I would like to make it hang over the div to give a 3D kind of look. I thought that would be possible by using the Z index. Look forward to your advice.
_____________________________
" In theory, there is no difference between theory and practice. But, in practice, there is!"
|
|
|
|
paul rayner
Posts: 232 Joined: 3/15/2001 From: yeppoon, qld, aus Status: offline
|
RE: Z index problem - 9/12/2009 3:58:53
Thanks Tailside. I added to the image div:
position:absolute;
top: 10px;
right: 100px;
What do I need to add to the containing div, just:
position: relative;
Is that all? And what does that do?
_____________________________
" In theory, there is no difference between theory and practice. But, in practice, there is!"
|
|
|
|
paul rayner
Posts: 232 Joined: 3/15/2001 From: yeppoon, qld, aus Status: offline
|
RE: Z index problem - 9/13/2009 2:42:00
Thanks Tailslide always helpful!!!!! Cheers
_____________________________
" In theory, there is no difference between theory and practice. But, in practice, there is!"
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|