Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Background CSS for overlaid new widget areas


  #1  
Old Dec 23, 2010, 11:46 AM
Wimbledon's Avatar
Wimbledon
 
320 posts · Apr 2009
[VA & AZ], USA
Background CSS for overlaid new widget areas

Site created with Atahualpa 3.5.3 and Wordpress 3.0.1 here:

www.lotuseterneforum.com

I have created two widget areas:
  1. HeaderArea, which is split into two cells.
  2. HeaderBG, which is currently colored green and is one cell. HeaderBG is greater in height than HeaderArea.

If you look at the site, you will see the second "HeaderArea" cell at the top which holds a 468x60 ad. You will also see img.logo ("Lotus Enthusiast") on the left side.

I am trying to move the green-colored HeaderBG behind HeaderArea and img.logo, to create a background behind the two. HeaderBG needs to span the entire width of the layout, which is fixed at 1189px. When positioned lower, HeaderBG does already span the layout with its green color.

How do I force the color of HeaderBG to be "shown through" the empty spaces in HeaderArea and img.logo?

For maximum clarity, here is a rendering of what I am trying to accomplish:



Here are the relevant CSS inserts I already have:

img.logo {
position: absolute;
top: 30px;
left:18px;
z-index: 59;
}

div#text-6.widget{
position: absolute;
top: 30px;
right: 18px;
z-index:60;
}

div#headerbg.bfa_widget_area{
background: #097054; [This is the green color]
height: 100px !important;
z-index:55;
position: absolute;
top: 25px;
}

Without success, I have tried to add the following to img.logo and div#text-6.widget:

background: transparent !important;

Can anyone figure out what I'm doing wrong? What else should I try?

I greatly appreciate any help!
  #2  
Old Dec 23, 2010, 01:19 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
As a start use a width in the following as shown. You will have to tweak the measurements. Also I would try to use relative positioning where possible. If you want the green to be slightly transparent you could add opacity: .8 (or .7 or .9 etc.) to the code
HTML Code:
div#headerbg.bfa_widget_area{
background: #097054;                [This is the green color]
height: 100px !important;
z-index:55;
position: absolute;
top: 25px;
width: 1189px;
}
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Dec 23, 2010, 01:29 PM
Wimbledon's Avatar
Wimbledon
 
320 posts · Apr 2009
[VA & AZ], USA
Perfect, what a simple fix!

I will definitely work on the relative positioning as well.

Thanks
  #4  
Old Dec 24, 2010, 10:17 PM
Wimbledon's Avatar
Wimbledon
 
320 posts · Apr 2009
[VA & AZ], USA
Quote:
Originally Posted by lmilesw
I'd try to use relative positioning where possible.
I decided to work on the relative positioning, as I said I would.

For the logo, I am working with this CSS now:

img.logo {
position: absolute;
top: 40px;
left: 2%;
z-index: 59;
}

Yet when I changed the position to relative, I see this:



Somehow, it appears the header images were also moved down unlike the absolute positioning scenario. To remedy this, I tried replacing top with:

top: -40px;
bottom: 40px;
bottom: -40px;

Nothing seems able to replicate the look accomplished by absolute positioning, as you can see on the live site now. I tried studying W3 Schools but cannot find my error. What else should I be doing to make the relative positioning work? I also tried different CSS IDs for the logo area, from Firebug.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] styling background in header widget areas emanuel1969 Sidebars & Widgets 5 Apr 30, 2010 08:40 PM
How to change widget areas order on widget page JFG Sidebars & Widgets 0 Apr 19, 2010 02:07 PM
[SOLVED] Background Image in New Widget Areas? Rashell Sidebars & Widgets 2 Dec 31, 2009 05:18 PM
Widget areas 1 to 4 Ddabrai Sidebars & Widgets 2 Aug 15, 2009 02:48 AM


All times are GMT -6. The time now is 10:12 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.