Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By darksniperx on
Hi,
I have specified background images in 2 div elements, but they keep overlapping each other, cant figure out how to fix it.
Here is the css code:
/** sidebar-left **/
#sidebar-left
{
background:#ffffff url('./images/navstart.gif') no-repeat top left;
height:44px;
}
#sidebar-left-inner
{
margin: 44px 0 0 0;
background:#ffffff url('./images/navbox_b.gif') repeat-y;
}
sidebar-left-inner image is overlapping sidebar-left. I would like the sidebar-left-inner image below sidebar-left.
I also have a couple more questions.
1. Is it possible to specify footer image for sidebar-left?
2. Is it possible to have a header image for sidebar-left-inner, for example to have a block title there, or a usename there.
Any help would be appreciated,
Thank you!
Comments
Hey
If your looking to change the position of the background image look at this webpage: http://www.w3schools.com/css/css_background.asp
I am not familiar with the Zen theme, other than the fact I hacked it apart once, but if there is a defined block area I don't see why not you can do what you want.
-
Hi,
I have been on that link before, it doesn't contain any useful information for me.
_
I suspect that you need to set the background-position of #sidebar-left-inner to 0 44px
Pete.
-
Hi,
I have modified to code to this:
But there is no change :(
_
Hang on, I'll do a test or two...
Pete.
Hi!
Just to let you know there are 2 css files that zen theme uses.
Here is the code in the first one:
layout.css - fixed grid, I have tried to play with the setting too, but there is no change.
and the other one is the post above.
_
works for me - see http://mongolia.charityrallies.org/sites/all/files/Screenshot-44.png
Is that what you're trying to do?
Pete.
Yup,
That is exactly, what I am trying to do!
But I don't see the difference in your code and my code.
_
Have you got Firefox and Firebug?
Here's another screenshot - http://mongolia.charityrallies.org/sites/all/files/Screenshot-45.png
This is a Zen subtheme - I can post a gzipped tar of the whole thing if it helps...
Pete.
Hi!
Here is the screen shot:
http://www.freeimagehosting.net/uploads/a007345b96.png
There is no need to post your gzipped theme yet, I need to figure out what has happened to mine, otherwise I will be clueless as to why it never worked.
Thank you!
_
If you look closely, your margin: 44px 0 0; is displayed with a strike through, which means it's been overridden in a higher-level or subsequently-defined class.
Pete.
Hi!
I have noticed that too, but I have no idea which class overrides it, I pretty much have a clean installation of zen theme with fixed layout subtheme. Any way as to find out which class overrides margin.
You have clean installation too, there shoulnt be too much of a difference between your installation and mine.
Hi!
Thank you for your assistance, I figured out what was the issue.
I had wireframe enabled, so I have disabled it.
:)
_
Doh!
Pete :-)