I'm trying to create a footer on a dynamically resizable page that will fill the width 100%.
Basically I want to 3 images to make up the footer
a opening box image followed by background of box follwed by closing box image all on one line
Something like '[' + '###################' + ']'
to give
[###################]
ie the image of the box for the footer is split into 3 images, a left one, a middle one (which is repeated) and an end one
I have tried a number of ideas using divs with the background-image css set to the appropriate image. and the middle one set with the repeat-x
ie
leftdiv middlediv rightdiv
The left and right div I've set to the width of the opening and closing inmages. The problem is getting the middle div to expand between this so the footer is 100% across. If I dont specify a width it just becomes the size of the text in the middle area which isnt completely across. specifying the width as a percentage (such as 98%) doesnt help as this results in bigger smaller spaces as the screen is resized and so the left, right images dont line up.
I wondered if there's anyway I could for example make the middle bit 100% the superimpose the left and right images over this using z-index, but havent been able to do this.
The footer needs to be at the bottom of the page, so absolute position doesnt seem to be the answer either
Can anyone advise a good way of doing this with css and divs? or point me to a page, I'm running out of ideas how to do this and am not a css expert
Basically I want to 3 images to make up the footer
a opening box image followed by background of box follwed by closing box image all on one line
Something like '[' + '###################' + ']'
to give
[###################]
ie the image of the box for the footer is split into 3 images, a left one, a middle one (which is repeated) and an end one
I have tried a number of ideas using divs with the background-image css set to the appropriate image. and the middle one set with the repeat-x
ie
leftdiv middlediv rightdiv
The left and right div I've set to the width of the opening and closing inmages. The problem is getting the middle div to expand between this so the footer is 100% across. If I dont specify a width it just becomes the size of the text in the middle area which isnt completely across. specifying the width as a percentage (such as 98%) doesnt help as this results in bigger smaller spaces as the screen is resized and so the left, right images dont line up.
I wondered if there's anyway I could for example make the middle bit 100% the superimpose the left and right images over this using z-index, but havent been able to do this.
The footer needs to be at the bottom of the page, so absolute position doesnt seem to be the answer either
Can anyone advise a good way of doing this with css and divs? or point me to a page, I'm running out of ideas how to do this and am not a css expert