Web Design and Development Forums

This is probably really basic...

This is a discussion on "This is probably really basic..." within the CSS Forum section. This forum, and the thread "This is probably really basic... are both part of the Design Your Website category.


Go Back   Webforumz.com > Design Your Website > CSS Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 17th, 2008, 10:21   #1 (permalink)
New Member
 
Join Date: Apr 2008
Location: England
Age: 20
Posts: 1
This is probably really basic...

Hello, I am currently trying to center a background image that is attributed to the body tag
Code: Select all
body {
 background-color: #CC6600;
 background-image: url(file:Jetstore/images/jetstore_header.gif);
 background-repeat: repeat-y;
 background-position:center;
}
my question is, how would I go about posistion text over the back ground image, i want the text in a seperate div, i have tried margins, padding, align nothing seems to work :-(, i generally use percent as my markup...any advice?

Thanks
Town87Terrier is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 17th, 2008, 10:54   #2 (permalink)
 
Join Date: Jun 2007
Location: uk
Posts: 459
Re: This is probably really basic...

Without seeing your entire code and your bkground image its hard to visualise what you want.

Could you try.

HTML: Select all
#centertext{
margin-left:45%;
margin-top: 2%;


}
Or something similar.
dab42pat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 17th, 2008, 15:44   #3 (permalink)
Highly Reputable Member
 
Join Date: Oct 2007
Location: Stockport
Age: 16
Posts: 738
Blog Entries: 1
Re: This is probably really basic...

Code: Select all
body
{
  background-image: url("bg.jpg");
  background-repeat: no-repeat;
  background-position: 50% 50%
}
Get rid of

Code: Select all
<body img src="file.jpg">
from your code and include the first bit of code in to your CSS.

The first "50%" is the x value, the second is the y value, to move it up and down change the second % etc.

Hope this helps

Craig
unitedcraig is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Very basic MHHx New to Web Design 6 Nov 14th, 2007 06:50
Need Basic Help raptureimage Flash & Multimedia Forum 2 Jun 13th, 2007 15:54
Newbie needs basic help Gifster Introduce Yourself 4 Mar 2nd, 2006 15:08
Basic ASP xelrose99 ASP Forum 1 Mar 9th, 2005 20:24
Help with some BASIC ASP freebirdnz ASP Forum 9 Jul 15th, 2004 16:42



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 10:19.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59