css  | | |
August 9th, 2005, 08:52 PM
|
#1 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
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
}
|
| |
August 9th, 2005, 09:07 PM
|
#2 (permalink)
| | Banned
Join Date: May 2005 Location: Mom said dont tell
Posts: 791
|
yes yes, CS:S .. good game |
| |
August 9th, 2005, 09:10 PM
|
#3 (permalink)
| | The Macedonian Member
Join Date: Mar 2004 Location: Macedonia Point, IN
Posts: 3,365
| 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.  |
| |
August 9th, 2005, 09:15 PM
|
#4 (permalink)
| | Father V2.0
Join Date: Feb 2002 Location: Mexicali, Mexico
Posts: 5,138
| 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. |
| |
August 9th, 2005, 11:12 PM
|
#5 (permalink)
| | Banned
Join Date: May 2005 Location: Mom said dont tell
Posts: 791
|
..wow..i knew he wasent talking about the game |
| |
August 10th, 2005, 12:40 AM
|
#6 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
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! |
| |
August 10th, 2005, 11:26 AM
|
#7 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
| |
| |
August 10th, 2005, 11:46 AM
|
#8 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
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! |
| |
August 10th, 2005, 12:11 PM
|
#9 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
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  . |
| |
August 10th, 2005, 12:46 PM
|
#10 (permalink)
| | Father V2.0
Join Date: Feb 2002 Location: Mexicali, Mexico
Posts: 5,138
| 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!! |
| | | Thread Tools | Search this Thread | | | |
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 | | | | | Recent Discussions  | | | | | |