Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fsck3r

macrumors newbie
Original poster
Jan 22, 2005
20
0
This is probably a newbie question but Im going to ask anyways. I want to make a tiling background with sideways stripe, anyone know what I mean? Is there a special way to making these backgrounds so where they line up correctly?

TIA
-Mick
 
Thanks, I will give that a shot! Im pretty new to design and stuff like that. Just got a new iMac and PS CS3 and figured I would give it a shot!

-Mick
 
I haven't ever been able to get a background to repeat. I can't seem to figure it out. This is what I've got:

Code:
#footer {
	background-image: url(images etc/bottomBar.png);
	background-repeat: repeat-x;
	position: absolute;
	right: 0px;
	bottom: 0px;
	width: 100%;
	height: 150px;
}

with accompanying div tags:
Code:
<div id="footer"></div>

I've tried similar things (also repeat-y) and settings in other documents and with other images. Sometimes I'll get one instance of the image to show up and not tile, other times I can't even get the image to show at all.

Am I missing something really obvious?
 
most likely, without even asking, im going to suggest you clear your divs.

insert:
<div style="clear:both"></div>


before your footer div.


if it works, problem solved, if not. a little more 'splanin maybe?
 
most likely, without even asking, im going to suggest you clear your divs.

insert:



before your footer div.


if it works, problem solved, if not. a little more 'splanin maybe?

that didn't seem to do anything, what does clearing divs do?

this is the website im redoing. www.visualcomm.com/site im trying to get that bottom gradient to go all the way across. take a look at the source if you don't mind.
 
well since backgrounds need a height attribute, doing clear:both makes sure that any heights (which sometimes get set to 0 in certain divs, just the nature of layouts) do not make it into the footer.

if it didnt work, maybe you need to give us more of your code.
 
alright i fixed it, it was a combination of two things, so if i didnt fix them both at the same time it didnt actually fix it.

the path was wrong, had an extra / in front, and then there was a space in the path instead of an underscore or no space. so it went from

Code:
#footer {
	background-image: url(/images etc/bottomBar.png);
	background-repeat: repeat-x;
	position: absolute;
	right: 0px;
	bottom: 0px;
	width: 100%;
	height: 150px;
}

to:

Code:
#footer {
	background-image: url(imagesetc/bottomBar.png);
	background-repeat: repeat-x;
	position: absolute;
	left: 800px;
	bottom: 0px;
	width: 100%;
	height: 150px;
}
 
tiled background

here is the easiest and quickest way i know to create tiled background http://bgpatterns.com spend few minutes and you get what you need without photoshop and any tutorials
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.