Results 1 to 2 of 2

Thread: trying to get image to fill in three column DIV

  1. #1
    Join Date
    Nov 2009
    Posts
    1

    trying to get image to fill in three column DIV

    Hi All. I need help with a three column DIV area of my layout that I put together in Dreamweaver. This is my first website. Here is the URL to see exactly what i mean.
    http://richdesignsit.com/salmonsigns

    My problem is with the DIVs that contain black and gold border images that fill the left and right column on each side of the white pane in the middle of the page that houses the content. I have each of the three DIVs at a fixed height where ultimately I want them to be dynamic (100%) based upon the content in the middle. How do you do this with DIVs and CSS?

    Like I said, this is my first real site. I tried doing as much as possible in CSS and DIVs to avoid tables. Working in Dreamweaver/Flash 8. All of my knowledge is through books so let me know if I am making any other mistakes that you might see.

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Since your content is fixed width you could use a repeating background image.

    You would need divs at the top and bottom with just enough height for the top and bottom borders with the curved corners, (leave them as they are) then a div for the content with no height so that it will be flexible (probably #boxMC with the height deleted), and an image which would be only 1px high but the width of your content and have the black and gold side borders and a white middle and use it as a background-image with background-repeat: repeat-y; for the div. Use photoshop or Irfanview to make the image. You already have edge-l.gif and edge-r.gif, you need to put them together either side of a white section.
    Last edited by Wickham; 10 Nov 2009 at 02:40 PM.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •