p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning HTML, XHTML, CSS, and JavaScript (http://p2p.wrox.com/forumdisplay.php?f=541)
-   -   Gradient background across different divs (http://p2p.wrox.com/showthread.php?t=78205)

sanyam February 15th, 2010 11:27 PM

Gradient background across different divs

I want to have gradient border across my divs for left and right. I have three images for that:
First image: light --> dark
Second image: dark
Third image: dark --> light

I want to join these images and use as border across my divs. Length of divs are not constant.
I have a two column layout.

Please help if anybody has some solution for my problem.

JBab February 16th, 2010 07:22 PM

If you want to have a background across more than one column have you tried putting both columns inside a containing div, and then using a background image on that containing div?



<div class="container">

  <div class="column1">left hand nav - this one has a float:left, width 200px</div>

  <div class="column2">main page - this one also has float:left; width:700px</div>


Now if you make the width of the container 900 and create an image that is repeated vertically, it will ensure that your gradient background is consistent across all columns...

Is that the kinda thing you were trying for?

All times are GMT -4. The time now is 05:00 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.