Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] Image as vertical divider sidebar/main content


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 15, 2010, 11:17 AM
Maartje
 
13 posts · Oct 2010
[SOLVED] Image as vertical divider sidebar/main content

I'd like to put an image as divider between the main content and the sidebar, and I want it to be fluid with the site length.

I tried playing around with border-image in the css, but that doesn't seem to work. Placing the image as a background-image has the disadvantage that it doesn't scale with the site-height. And of course I only want it to scale in height, not in width. I tried floating the image and a div with the image in it (above the loop) but I couldn't get that to work.

Do you have any ideas about how to get this done? I'm OK with splitting the image into a top, middle (for extension) and bottom, but I need some help with where to put either the whole image or the parts.

The effect I'm after is like the vertical divider at http://www.pragmatichybrid.com, but they have it as part of the site background and I don't think I can pull that trick because I already have 2 images as site background, 1 in the body tag and one in the html tag.

My site is http://playyourwordsright.com

Thanks!
  #2  
Old Dec 15, 2010, 02:36 PM
STB
 
762 posts · Apr 2010
pragmatichybrid uses it like this:

Code:
div#container{
url("images/bgfade.gif") repeat-y scroll 0 0 transparent;
}
(with the full link to the gif being: http://www.pragmatichybrid.com/wp-co...ges/bgfade.gif)

Same/similar method (background image for the container div) should work for your site too I'd think.
  #3  
Old Dec 15, 2010, 02:40 PM
Maartje
 
13 posts · Oct 2010
'fraid not.

That bgfade.gif is just the top 23 pixels of the divider. The rest of the divider is created in the background of the site, it's one picture with the drop shadows that surround the page. Switching off the bgfade.gif in Firebug only takes away the 'fade-out' effect at the very top, leaving the rest of the divider in place.

Nasty little trick, that.
  #4  
Old Dec 15, 2010, 02:58 PM
STB
 
762 posts · Apr 2010
No really Maartje...

bgfade.gif on that site is a 856x1 px gif, which is repeated vertically for the full height of the #container div.

On pragmatichybrid, it both holds the 3d effect on the leftside of the container, as well as the right column background.
But you can of course make your own version as you see fit.
  #5  
Old Dec 15, 2010, 03:01 PM
Maartje
 
13 posts · Oct 2010
Oh yeah, you're completely right. I was confused about the image names. They have one in the background, and a separate pic for the fade at the top and bottom. (He calls everything 'fade.' Confusing.)

Maybe I can try putting it on the #container. I was experimenting with the body and html tags and that didn't work. I'll try that.

They have put the lower fadeout image in the footer, though. My footer is not connected to the central column like theirs is, though. Any idea how I can get both the top and bottom fade pictures to display correctly?
  #6  
Old Dec 15, 2010, 03:13 PM
STB
 
762 posts · Apr 2010
Quote:
Originally Posted by Maartje
<...>
They have put the lower fadeout image in the footer, though. My footer is not connected to the central column like theirs is, though. Any idea how I can get both the top and bottom fade pictures to display correctly?
Instead of just 'footer', you have 'bovenfooter' & 'footer'.
You can set backgroundimages for both, for a seamless effect.
Basically the same method, just spread over 2 div's.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] To much space between Main Content Area and Sidebar/Widget nberryman Atahualpa 3 Wordpress theme 2 Nov 24, 2010 02:10 PM
Making the sidebar narrower, and the main content area wider. ronnielees Sidebars & Widgets 1 Oct 11, 2010 04:53 PM
Content not showing on main page freedomrains Center area post/pages 11 Apr 27, 2010 05:03 AM
Can I overlap the header on my main content area? Masselyn Header configuration & styling 1 Feb 2, 2010 04:41 AM
Style issues with sidebar and main content area jenchilada Post-Kicker, -Byline & -Footer 1 Nov 30, 2009 07:24 PM


All times are GMT -6. The time now is 08:42 PM.


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