home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

css

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1661
Discussions: 200,989, Posts: 2,379,862, Members: 246,356
Old August 9th, 2005, 08:52 PM   Digg it!   #1 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
css

hey guys...i'm finally learning css lmao. anyways i've set up a background image and i'm having trouble doing what i want with it. I want it centered across the page but with a space of 75px from the top. This is my css page.

Code:
body
	{
		background-image: url("background.png");
		background-repeat: repeat-y;
		background-attachment: scroll;
		background-position: 50% 75px
	}
sr71000 is offline   Reply With Quote
Old August 9th, 2005, 09:07 PM     #2 (permalink)
Banned
 
Lord_Infamous's Avatar
 
Join Date: May 2005
Location: Mom said dont tell
Posts: 791
yes yes, CS:S .. good game
Lord_Infamous is offline   Reply With Quote
Old August 9th, 2005, 09:10 PM     #3 (permalink)
The Macedonian Member
 
njolakoski's Avatar
 
Join Date: Mar 2004
Location: Macedonia Point, IN
Posts: 3,365
Send a message via AIM to njolakoski Send a message via MSN to njolakoski Send a message via Yahoo to njolakoski
Quote:
Originally Posted by Lord_Infamous
yes yes, CS:S .. good game

He isnt talking about the game, ans sr71000, have you check with www.w3schools.com guides there?

Sorry I cant help anymore.
njolakoski is offline   Reply With Quote
Old August 9th, 2005, 09:15 PM     #4 (permalink)
Father V2.0
 
washe's Avatar
 
Join Date: Feb 2002
Location: Mexicali, Mexico
Posts: 5,138
Send a message via MSN to washe
Quote:
Originally Posted by Lord_Infamous
yes yes, CS:S .. good game




Code:
url(i/bg.jpg) repeat-x;
	margin: 126px 0px 0px;
	padding: 0px;

I use that for a repeating pattern possible you need to use a margin to do placement...

That way it gives a margin where the text starts at 126px on height.
__________________
someone is more skilled than you!

http://s7.bitefight.org/c.php?uid=23753
washe is offline   Reply With Quote
Old August 9th, 2005, 11:12 PM     #5 (permalink)
Banned
 
Lord_Infamous's Avatar
 
Join Date: May 2005
Location: Mom said dont tell
Posts: 791
..wow..i knew he wasent talking about the game
Lord_Infamous is offline   Reply With Quote
Old August 10th, 2005, 12:40 AM     #6 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
hmmm.....washe..u mind explaining in more detail and such as i really only started learning css today so it's really new to me!
sr71000 is offline   Reply With Quote
Old August 10th, 2005, 11:26 AM     #7 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
bump for the day croud!
sr71000 is offline   Reply With Quote
Old August 10th, 2005, 11:46 AM     #8 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
ok...so here's an idea maybe.....lol if you check out this it talks about setting a top "margin" for lack of a better term! Can anyone show me how to use this in my css code as posted above...i've been trying it out but i don't understand how to work it! any help would be greatly appreciated!
sr71000 is offline   Reply With Quote
Old August 10th, 2005, 12:11 PM     #9 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
well..i guess i figured it out. My new style sheet looks like this for anyone interested

Code:
body
	{
		background-image: url("background.png");
		background-repeat: repeat-y;
		background-attachment: scroll;
		background-position: 50% 150px;
	}
It shows the bottom half of the image up top which i don't like (but it will be covered by another image inside a table) but it works for now, until i get more experience and can do it another way .
sr71000 is offline   Reply With Quote
Old August 10th, 2005, 12:46 PM     #10 (permalink)
Father V2.0
 
washe's Avatar
 
Join Date: Feb 2002
Location: Mexicali, Mexico
Posts: 5,138
Send a message via MSN to washe
Quote:
Originally Posted by sr71000
well..i guess i figured it out. My new style sheet looks like this for anyone interested

Code:
body
	{
		background-image: url("background.png");
		background-repeat: repeat-y;
		background-attachment: scroll;
		background-position: 50% 150px;
	}
It shows the bottom half of the image up top which i don't like (but it will be covered by another image inside a table) but it works for now, until i get more experience and can do it another way .

CSS is a pain sometimes... more when you are a novice like myself..

The one I posted worked for me to position text after a small Header I made with a picture to mount the logo... I tought you needed to start the text on a certain position...

Me bad!!
washe is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
css in mozilla? MrSuave Webmastering and Programming 0 June 7th, 2005 09:35 PM
css ryanredbaron General Gaming Discussion 3 September 4th, 2004 06:15 AM
CSS... Rand Dusing Webmastering and Programming 2 September 13th, 2003 06:57 PM
CSS in IE golfcart General Tech Discussion 1 April 25th, 2003 04:28 PM
What would I use? CSS? BITM@D Webmastering and Programming 12 April 11th, 2002 06:52 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3065)
Charges against non-tippers dropped.. (20)
Health Care Rationing (11)
Delete an OS (17)
Nvidia GTX 260 problem (9)
Laptop with wireless problem. (12)
windows vista security holes (19)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (8)
windows 7 problem (7)
[F@H SPAM 11/16/09] ! 1/2 months to.. (39)
Internet Lost (5)
Recent Discussions
How to converter MTS Video to HD mpeg.. (0)
Can a page file be "too big".. (0)
Point and Shoot Camera Suggestions. (8)
Looking for new motherboard (0)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (39)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
Desktop Calendar Application (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Nvidia GTX 260 problem (9)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)
Can't open Word (12)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)


All times are GMT -4. The time now is 06:19 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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