how do you make a background pic repeat down only? and not all directions thanks![]()
how do you make a background pic repeat down only? and not all directions thanks![]()
Hope this helps.Code:<style type="text/css"> BODY { background: url('bg.png')repeat-x; } </style>
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Down as in vertically?
I thought repeat-y was vertical whereas repeat-x was horizontal?
Code:<style type="text/css"> BODY { background: url('bg.png')repeat-y; } </style>
--------------------------------------------------Reviews, Interviews, Tutorials, and STUFF--------------------------------------------------Home of the SexyBookmarks WordPress plugin
neither worked :/ here is the site link www.dynamic.modernrevolutions.net
change:
to:Code:background-image:url(http://i302.photobucket.com/albums/nn86/kendruh326/dynamicpart2.png)repeat-y;
Code:background:url(http://i302.photobucket.com/albums/nn86/kendruh326/dynamicpart2.png)repeat-y;You're right, I just got them confused (which I always seem to do).I thought repeat-y was vertical whereas repeat-x was horizontal?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
thanks SO MUCH!!! now i have 1 qestion. why is the page so wide? like it goes forever...?
You're defining your width to the "Content" div as 250% see below:
Change it to 100%, also... A good rule of thumb would be to change "scroll" to "auto". So all together would be:Code:.content { background:#FFFFFF none repeat scroll 0% 0%; color:#FFFFFF; float:left; font-family:arial; font-size:10px; font-weight:normal; line-height:13px; padding:0px; text-align:left; text-transform:none;width:250%;}
Code:.content { background:#FFFFFF none repeatauto0% 0%; color:#FFFFFF; float:left; font-family:arial; font-size:10px; font-weight:normal; line-height:13px; padding:0px; text-align:left; text-transform:none;width:100%;}
Hope this helps!
--------------------------------------------------Reviews, Interviews, Tutorials, and STUFF--------------------------------------------------Home of the SexyBookmarks WordPress plugin
Just noticed that with that fix you have some of the original white background showing through... So to fix that change this:
Just change that to #3d3d3d as you have the original background color set to. So the entire fixed code would be:Code:.content {background:#FFFFFFnone repeat scroll 0% 0%; color:#FFFFFF; float:left; font-family:arial; font-size:10px; font-weight:normal; line-height:13px; padding:0px; text-align:left; text-transform:none; width:250%; }
Code:.content {background:#3D3D3Dnone repeatauto0% 0%; color:#FFFFFF; float:left; font-family:arial; font-size:10px; font-weight:normal; line-height:13px; padding:0px; text-align:left; text-transform:none;width:100%;}
Last edited by TheJoshMan; 07-20-2008 at 04:44 AM. Reason: forgot to change "scroll" to "auto"
--------------------------------------------------Reviews, Interviews, Tutorials, and STUFF--------------------------------------------------Home of the SexyBookmarks WordPress plugin
Shouldn't this post technically be under "CSS"?
--------------------------------------------------Reviews, Interviews, Tutorials, and STUFF--------------------------------------------------Home of the SexyBookmarks WordPress plugin
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Bookmarks