View Full Version : Sticking text to background (Novice)

10-25-2007, 08:14 PM
Hey all,

New poster here as just getting into the hobby/idea of designing a website. I'm learning css and html slowly and not exactly to the book so I apologise if my coding seems odd. I'm trying to get my sidebars, links, text, navigation menu etc to "stick" to my background image but am having problems. I can position it precisely using position: absolute etc but whenever i change the size of the window the text stays still relative to the monitor but the background stays still relative to the window. Am I making a fundamental mistake somewhere and/or how can I get everything to stay together.

website still isn't up yet but this should work...

You can obviously see the html code using you're browser and i've attached my small css file.

Any response would be appreciated,


10-25-2007, 08:20 PM
Just a quick response.
There are many useful sites regarding positioning in the url in my signature below.

e.g. http://www.positioniseverything.net/


10-27-2007, 12:57 PM
specify the height & width of the image.... & remove position from #wrap

try this

#wrap {
background: url(test3.jpg) no-repeat center;
margin: 0 auto;

gud luck,

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum