Column Height issue
i looking make custom border looks film strip. have drawn png in photoshop of single cog whole edge of frame , want duplicate match appearance of film strip. put content in "frames" can dynamically change blog entries client enter in on time. thinking best way columns formed using divs have started this:
<div id="leftsidebar"> <!--column wrapper-->
<div id="colleft"> </div> <!--left side border of frame-->
<div id="colcenter"> <!--main content area -->
<p>lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam vel mollis quam. quisque non enim augue. phasellus tincidunt elit in tincidunt lacinia. cras velit massa, vestibulum ac pellentesque id, condimentum id enim. in mollis turpis porttitor, pellentesque diam sed, blandit orci. integer id diam congue, interdum justo in, condimentum leo. nam fermentum urna. sed eleifend vel leo ac interdum. morbi vel dictum mi. pellentesque egestas accumsan orci, sit amet porttitor risus venenatis in. suspendisse vulputate quam eu massa sodales, @ aliquet erat sollicitudin. nam nec mi mauris. </p>
</div>
<div id="colright"> </div> <!--right side border of frame-->
</div>
| #leftsidebar | { |
| width:300px; | |
| max-height:100%; |
}
| #colleft | { |
| background-image: url(images/filmframewhite.png); | |
| background-repeat: repeat-y; | |
| float: left; | |
| width:25px; |
}
#colcenter {
| border-bottom: 5px solid #ffffff; | |
| border-top: 5px solid #ffffff; | |
| float: left; | |
| margin-left: 0; | |
| width: 230px; | |
| padding: 3px 10px; | |
| color:#fff; |
}
| #colright | { |
| background-image:url(images/filmframewhite.png); | |
| background-repeat:repeat-y; | |
| float: left; | |
| width:25px; |
}
the problem background images in left , right columns not repeat height of content in center column. how set height of left , right column 100% of center column no matter how or little content in there?
thanks
one way html5 , css display:table property. view source see code.
http://alt-web.com/templates/equal-height-css-columns.shtml
nancy o.
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment