I trying to create a header for a web page made of four component parts. Purely as an experiment, because I've seen someone try it and fail to get it to display on all browsers at all resolutions. It was harder than I thought.
The header has to be centered over the main body of the page. It consists of two rows.
First is a background image, tiled to a specific size (740 wide, 220 high), as this is the width of the main body of th page with a margin on either side. Along the top row is a banner that stretces the full width of the page body, which can be centered to achieve the desired result.
Then the tricky bit. There is an image that matches up with the banner to create a picture on the left hand side on the bottom row, and next to it is a banner rotation, aligned to the right of the page body
Here is a rough diagram, the space at the side being the page borders.
I'm now trying to do this from scratch having tried and failed at adapting the tables in the original code it seems, because I found that using tables along with position:left for the top, and position:left for the image on the bottom worked reasonably (with cetering around the entire DIV line), but I was still left with a floating banner I could do nothing with.
My question is this....
Is there anyway in which I can align all images to center, and offset them from the center to the dimentions I need to match up with the dimentions of the background?
The header has to be centered over the main body of the page. It consists of two rows.
First is a background image, tiled to a specific size (740 wide, 220 high), as this is the width of the main body of th page with a margin on either side. Along the top row is a banner that stretces the full width of the page body, which can be centered to achieve the desired result.
Then the tricky bit. There is an image that matches up with the banner to create a picture on the left hand side on the bottom row, and next to it is a banner rotation, aligned to the right of the page body
Here is a rough diagram, the space at the side being the page borders.
I'm now trying to do this from scratch having tried and failed at adapting the tables in the original code it seems, because I found that using tables along with position:left for the top, and position:left for the image on the bottom worked reasonably (with cetering around the entire DIV line), but I was still left with a floating banner I could do nothing with.
My question is this....
Is there anyway in which I can align all images to center, and offset them from the center to the dimentions I need to match up with the dimentions of the background?