Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 07-04-2010, 01:15 AM I hate CSS
Experienced Talker

Posts: 35
Trades: 0
Not really but PHP is more my thing.

I need help with this

Take a look at this pic

http://i306.photobucket.com/albums/n...6/Picture2.png

How can I get the image to be in the center of the page while remaining at the top.

Here is the Code

HTML Code:
<html>
<head>
<title>Grandline-RPG</title>
<style type="text/css">
body {
      background-color: black ;
      background-image: url("http://i306.photobucket.com/albums/nn262/naru216/mjah3r.png") ;
      background-repeat: no-repeat ;
      
      left: 10000x ;
}

</style>
</head>
<body> 
dkhahdkhkjashdkj
</body>

</html>
Direct is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-04-2010, 02:01 AM Re: I hate CSS
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
You need to tell the browser where to position the background image.

HTML Code:
background-image: url("http://i306.photobucket.com/albums/nn262/naru216/mjah3r.png") center top;
http://www.w3schools.com/css/pr_background-position.asp
__________________
Len,

Please login or register to view this content. Registration is FREE
.
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 07-04-2010, 02:19 AM Re: I hate CSS
Experienced Talker

Posts: 35
Trades: 0
Thanks a lot sorry for this ridiculously simple question but I couldn't find anything on google.
Direct is offline
Reply With Quote
View Public Profile
 
Old 07-07-2010, 11:22 AM Re: I hate CSS
Banned

Posts: 13
Trades: 0
You can also use:

Code:
background-position:center top;
didyouknow is offline
Reply With Quote
View Public Profile
 
Old 07-08-2010, 02:23 AM Re: I hate CSS
Experienced Talker

Posts: 38
Name: liuliu
Trades: 0
background:url(http://i306.photobucket.com/albums/n...216/mjah3r.png) no-repeat center top;
__________________
quality China
Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
for
Please login or register to view this content. Registration is FREE
.
ledb2b is offline
Reply With Quote
View Public Profile
 
Old 07-08-2010, 06:12 AM Re: I hate CSS
Banned

Posts: 2
Name: Andre Bacher
Trades: 0
What is the difference between CSS and PHP?
andrebacher is offline
Reply With Quote
View Public Profile Visit andrebacher's homepage!
 
Old 07-08-2010, 07:07 AM Re: I hate CSS
Kelpie's Avatar
Skilled Talker

Posts: 82
Name: Andrew
Location: SW Scotland
Trades: 0
css is just a set of styling rules used to define how a webpage and its elements are displayed; colors, positioning, backgrounds, font-styles etc.
php is a server-side scripting language, used to create dynamic/interactive webpages
Kelpie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I hate CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.15978 seconds with 12 queries