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 08-01-2012, 10:42 PM   PM User | #1
beckybeginner
New to the CF scene

 
Join Date: Aug 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
beckybeginner is an unknown quantity at this point
Question How to align/lock background image and text together when zooming in/out

Hi there,

I'm a complete beginner with CSS and am using squarespace.com to create a simple website. I have had to wander into the custom CSS section in order to add a background image.

Here is the page I'm referring to in the question below:
http://www.drawshow.co.uk/

The problem I'm having is that my text and background image are not aligned when I check the webpage on screens of different resolutions or when I zoom in or out - the text stays central but the background appears to be stuck to the left.

How can I keep my text and background in the same position however/wherever they are viewed, so that the text is effectively locked to the background and the text appears to be 'written' on top of the background page image?
I have tried shifting the position of the background with little success.

This is the CSS I have entered for the text and background:

body{background-image:url(http://danielmcallister.com/images/K...ePaper-5.png);
background-repeat:no-repeat;
background-position:10px 10px;}

body{margin-right:150px;}

body{margin-left:150px;}


I'd really appreciate any help - I'm sure the answer is simple!
Thanks in advance
beckybeginner is offline   Reply With Quote
Reply

Bookmarks

Tags
align, background image, beginner, css

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 06:39 PM.


Advertisement
Log in to turn off these ads.