Background Image Problem

C

chrismitchell

Guest
I can't work out how to make my background image 100% wide for all screens (as it seems to leave a white space on the left) and how to make it so that the whole thing doesn't scroll on smaller screens / resolutions.. its my redesign for widdlerswee.

Widdlers Wee

its not finished yet but its just an idea at the moment :)
 
Is that all one colour or has it got a subtle gradient in it?

if it's a single colour you could just use
Code:
background-colour: hexnumber;
in the css for the background instead of using an image :)

if it's got a gradient if it's just set it to repeat
Code:
background-repeat: repeat-x
in your css (might even get away with a smaller image :))
 
Levis right Chris.

That image can be cropped at only 1px wide, then in your css:

body {background:url(images/bg.jpg) repeat-x top #d2e1c0;}

also this makes your image MUCH smaller - EXAMPLE
 
ok the Background is sorted.. now its just my bottom bar thats not filling all the way across :(

thanks for all the help :) just been looking at it for too damn long, going crosseyed! :lol:
 
The bottom bar/footer doesn't need to be two divs as it is or use any background images as its solid colour.

#footer {background:#c4d7ac; border-top:solid 20px #98a686;}

That will give the same effect.
 
You need to take your width off the footer also and lose the margins left/right. To center your content inside put another div with class="container"
css
.container {width:900px; /*or what ever your width is*/ margin:0 auto 0 auto;}
 
Also your bird would be better positioned absolutely then it won't cock up other elements.
 
cheers for all the help Levi and Andy :)

What do you guys think of the redesign by the way?

I'm going to be adding video to this in the next month or so to go with the recipes :) the post for each recipe will be very different :D
 
opinion on it -
I like where it's coming from but there are some issue which would bug me personally -

the bird is chopped off in my window (1680x1050) so it either needs pulling down or following the curve round.

I'm not keen on the menu text, it just seems clunky, might need a lighter weight or smaller size (or both) - might also be worth trying a different colour/font.

you've got some strange block text (rectangle with 00 over 03 inside it - font issue I think) at the end of the 2 middle text lines. I'm also not keen on the wobbly line widths

Might need to look at some of the allignments, they seem to be going a little wobbly and it doesn't work too well to me.
 
yeah I do need to look at all the positioning more for the text.. its on the list of things to fix :) and I agree with the top menu, but I also quite like it chunky as it stands out a bit more. But I will have a looksee and see how it looks being lighter and smaller :) maybe even a different colour :eek: :lol:
 
Levi said:
you've got some strange block text (rectangle with 00 over 03 inside it - font issue I think) at the end of the 2 middle text lines. I'm also not keen on the wobbly line widths

Those blocks are due to copying from word or similar, they'll be from line breaks (soft returns) they won't show in the html line you need to find it in the html and delete the extra space.

I think the design has potential, I think the biggest let down at present is the fonts maybe look into cufon replacement for sections and image replacement for the navigation?

Header probably takes up more space than it needs too.

I like the idea of adding video for your recipies!

Keep at it.
 
yeah the recipes video thing is really exciting to me :) hopefully i will get enough interest to be able to finally print my recipe book :D and maybe even sell it :D LOL :p
 
Ok thats now working ok :) but now I have a different problem on my post page, i've made a "video" div and its not showing up at all even though it is a 200px high and 700px wide black box.. any ideas why its not showing up?
 
Back
Top