Quimbly
02-04-2011, 01:01 AM
Hi all,
I'm working on a header which I'm having trouble with. Here's a crude diagram of what I'm looking to accomplish:
____________
_______________________| |___
| _____________________| Logo |_ |
| | |___________| | |
| | Banner | |
| |___________________________________| |
| |
| | <-- container div
Uhhh, hopefully you can see what I'm getting at!
I want a logo to be positioned on top of the banner image, but offset above and to the right, outside the container div holding the banner.
Note also that the container div is centered in the page, so that the relative amount of space on either side of the container div increases and decreases with the browser window.
Approaches I've tried:
(1) Use position:absolute for the logo. The problem here is the horizontal position. Regardless of what I've tried, the logo moves horizontally with the size of the window. I want the logo fixed relative to the container div.
(2) I've tried to use negative margins and place the logo inside the container div, but this doesn't seem to work either.
How should I do this? All suggestions welcome.
Thanks!
I'm working on a header which I'm having trouble with. Here's a crude diagram of what I'm looking to accomplish:
____________
_______________________| |___
| _____________________| Logo |_ |
| | |___________| | |
| | Banner | |
| |___________________________________| |
| |
| | <-- container div
Uhhh, hopefully you can see what I'm getting at!
I want a logo to be positioned on top of the banner image, but offset above and to the right, outside the container div holding the banner.
Note also that the container div is centered in the page, so that the relative amount of space on either side of the container div increases and decreases with the browser window.
Approaches I've tried:
(1) Use position:absolute for the logo. The problem here is the horizontal position. Regardless of what I've tried, the logo moves horizontally with the size of the window. I want the logo fixed relative to the container div.
(2) I've tried to use negative margins and place the logo inside the container div, but this doesn't seem to work either.
How should I do this? All suggestions welcome.
Thanks!