live demo
Home arrow Support arrow Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Logo and z-index (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Logo and z-index
#1692
Logo and z-index 6 Months, 4 Weeks ago Karma: 0  
Hi guys,

I'm trying to modify the Scroller template with some logo's and backgrounds. I would like the normal "Scroller" logo to overlap the main container. But somehow I can not manage to get this to work the way I want to. I have set several z-indexes, positions, etc.

Does anybody have another tip how I can let the logo overlap my main textbox/container?

http://tinyurl.com/yt3932

Thanks in advance!
Arnoud (User)
Fresh Bamboo
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Report to moderator   Logged Logged  
 
The administrator has disabled public write access.  
#1698
Re:Logo and z-index 6 Months, 4 Weeks ago Karma: 31  
For z-index to work the div has to be set to position:absolute ... at the moment its relative so that will probably fix it.

Thanks Anthony.
Anthony Olsen (Admin)
Admin
Posts: 1544
graph
User Online Now Click here to see the profile of this user
Joomla Bamboo
Report to moderator   Logged Logged  
 
Creative Unique Minimal Joomla Templates
 
The administrator has disabled public write access.  
#1711
Re:Logo and z-index 6 Months, 3 Weeks ago Karma: 0  
Thanks Anthony,

what div do you advise to make absolute? Because I tried I think all of them, but it breaks up the background images (the default for Scroller and the one I put inbetween).

Thanks
Arnoud (User)
Fresh Bamboo
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Report to moderator   Logged Logged  
 
The administrator has disabled public write access.  
#1714
Re:Logo and z-index 6 Months, 3 Weeks ago Karma: 31  
Hi Arnoud,

I just did a quick little test on the demo and I found that I had to create a new div to get it to work properly.

So you need to follow these steps:

1. Remove the background image logo.png from the #container div.
2. Create a new div class like this:

Code:

.test_logo {position: absolute;top: 80px;height: 200px;width: 700px;background: url(../images/logo.png) no-repeat right top;left: auto;z-index: 200;}
and then add the following to the index file inside the outer container. 3. <div class="test_logo"></div> The width, top, height all depend on the size of your logo. You may need to tweak the css above to get a better fit for your site but that should basically deliver what you have asked for. I didnt test it in ie 6 or 7 but it should be ok ... although ie6 may need afew hacks to get it to work properly. Cheers Anthony.
Anthony Olsen (Admin)
Admin
Posts: 1544
graph
User Online Now Click here to see the profile of this user
Joomla Bamboo
Report to moderator   Logged Logged  
 
Creative Unique Minimal Joomla Templates
 
The administrator has disabled public write access.  
Go to top Post Reply
Powered by FireBoard
,