Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-25-2007, 08:14 PM   PM User | #1
gingerscot
New to the CF scene

 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
gingerscot is an unknown quantity at this point
Sticking text to background (Novice)

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
Attached Files
File Type: css test1.css (870 Bytes, 87 views)
gingerscot is offline   Reply With Quote
Old 10-25-2007, 08:20 PM   PM User | #2
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
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
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.
effpeetee is offline   Reply With Quote
Old 10-27-2007, 12:57 PM   PM User | #3
rams1703
New Coder

 
Join Date: Sep 2007
Posts: 34
Thanks: 0
Thanked 7 Times in 7 Posts
rams1703 is an unknown quantity at this point
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
rams1703 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:29 PM.


Advertisement
Log in to turn off these ads.