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 » Header configuration & styling »

Negative margin for horizontal bars in header - good or bad?


 
Prev Previous Post   Next Post Next
  #1  
Old Feb 22, 2009, 03:13 PM
upscho's Avatar
upscho
 
30 posts · Feb 2009
Negative margin for horizontal bars in header - good or bad?

Hi,

I'm using the header area with two bars between the logo area and the image:
Code:
%pages %logo %bar1 %bar2 %image
Horizontal bar 1 with
Code:
background: #ffffff;
border-top: solid 4px #374C92;
margin-top: -45px;
margin-bottom: 41px;
position: relative;
z-index: 600;
and horizontal bar 2 with
Code:
margin-top: -41px;
margin-bottom: 0px;
background: #ffffff;
border-top: solid 41px #E8FFFA;
position: relative;
z-index: 300;
The z-index of the logo is in between the bars. So the 2nd bar is behind the logo, the 1st bar is in front of the logo.

The two stripes normally belong to the logo. But by cutting them from the logo file and adding them through the bars they dynamically cover the whole header area even if the user changes the window size (see http://baederlandschaft-waldkirch.de).

My question:

Is the usage of negative margins for the bars a "dirty trick" and do I have to fear that some browsers won't display it correctly? Or that this possibility has gone after the next update of Atahualpa? Or is it normal practice?

Best regards,
upscho
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Horizontal Bars & Other Stuff too NoVegans Header configuration & styling 5 Apr 12, 2010 06:40 AM
How do I add spacing (padding?) between the horizontal bars and header image? ftkeeper Header configuration & styling 0 May 16, 2009 11:41 PM
centering the horizontal bars interage Header configuration & styling 2 Apr 25, 2009 08:45 AM
Bad Post Header Links in 3.3 BradBrown Atahualpa 3 Wordpress theme 4 Mar 30, 2009 09:00 PM
Text/images between horizontal bars in header? robertayers Header configuration & styling 5 Mar 14, 2009 09:24 AM


All times are GMT -6. The time now is 07:41 AM.


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