I’m working on a website, (demo at www.mariodecristofano.com/vrtraining1/) which has been decided by the client, to be ok. The client wants to emulate the header graphic (Union Jack flag) at http://www.veteransretreat.org.uk and has provided me with the orginal graphic (the client owns that website too!) In the new site however, I want the flag to only be as tall as the white space made available for it.
Now I know not to use dirty AP Div’s or tables for this, but looking at the existing site CSS I can see the following addition should work (?) when I add it to my CSS
Thanks Richard, sorry I’m such a numpty, are you saying that I should add a Div within the site, or via the CSS. If I add a Div around the image slider, won’t that just push the image slider vertically down!?
Adding a DIV and attempting to insert the flag image (motif_test.png) into that, did as I thought, and moved the image slider down. I know I’m being a tool, I just want to ensure I do this correctly, so it sizes appropriately at different screen res’s and browser window sizes etc, this is my weakness!
Presumably you just want that flag image to show in the white area? If so, instead of using a white image on .main-wrap, use the flag image as the background, and set the background color to white.
.main-wrap {background: #fff url(../image/motif_test.png) no-repeat right top;}
Thanks Ralph, doing that, (and of course, reverting to my original CSS file and undoing all my other attempts) doesnt appear to do much. It makes sense what your saying but doesnt change anything. Ideally I want to keep the lower half portion blue and just the header white, but still, I can’t get this to work whatsoever…hmmm…?
Im trying to now modify the .main-wrap body_bg2 image, to just be the flag. Now, I thought I’d be able to use repeat-absolute, but I can’t. Whats the best way of making this absolute?
No, don’t use positioning. It’s horrible, and doesn’t work on background images anyway.
Each of the CSS examples you have above contains errors. Make sure to put a ; at the end of each line. And in post #10 you have styles within styles, which don’t work.
I’ve lost track of where you are up to with this. I still suggest you look at the solution I posted above, which would place the flag image on the white area only.