Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Services > Web Designing and Development

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2008, 09:41 PM
Senior Member
 
Join Date: Dec 2006
Posts: 547
Send a message via MSN to karimali831
Default CSS Image Positioning

Hi

Can someone please tell me how to position an image in CSS? It's set out like this:-

style.css

Code:
body { 
	background: url(images/background.gif) no-repeat;
	background-attachment: fixed;
	margin: 0px 0px 0px 13px;
	color: #627283;
	 
}
At the main page part where the CSS is linked to:

Code:




Thanks for your help also

background.gif is currently to the left, it displays fine with lower screen resolution but not 1024x + that's why I want it centered.
Reply With Quote
  #2 (permalink)  
Old 06-22-2008, 09:46 PM
Senior Member
 
Join Date: Dec 2006
Posts: 547
Send a message via MSN to karimali831
Default

Nvm, I just guessed and got it right.

Code:
background-position: center
Sorry.
Reply With Quote
Reply

Thread Tools
Display Modes

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


All times are GMT. The time now is 08:56 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum