...

View Full Version : Sticking text to background (Novice)



gingerscot
10-25-2007, 09: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...

http://75.126.145.194/~randomdo/

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

Any response would be appreciated,

Dave

effpeetee
10-25-2007, 09: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/

Frank

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

try this

#wrap {
background: url(test3.jpg) no-repeat center;
color:#ffffff;
height:700px;
margin: 0 auto;
width:900px;
height:525px;
}

gud luck,
rams



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum