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
 

fsck3r

macrumors newbie
Original poster
Jan 22, 2005
20
0
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
 

Muskie

macrumors 6502
Dec 1, 2003
322
0
Minneapolis
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?
 

Sdashiki

macrumors 68040
Aug 11, 2005
3,529
11
Behind the lens
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?
 

Muskie

macrumors 6502
Dec 1, 2003
322
0
Minneapolis
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. http://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.
 

Sdashiki

macrumors 68040
Aug 11, 2005
3,529
11
Behind the lens
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.
 

Muskie

macrumors 6502
Dec 1, 2003
322
0
Minneapolis
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;
}
 

sergii

macrumors newbie
Jun 4, 2008
2
0
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.