Hello all,

I am currently developing a new website in asp.net, C#. I first designed the master page in Photoshop. I used a really cool pattern that I imported into Photoshop. I want to be able to put this on my website as a repeated image. My question is; How do I do this without having to use one image for the whole background?

Any input helps :)

background repeat property is probably your best bet for sure. ^_^

background repeat is the answer!

Resize your pattern to smaller size : 1x1 or 10x10 is also fine.

Then use CSS :

body {
background: url("images/pattern.png") repeat scroll left top transparent;
}

More option here : www.w3schools.com/css/css_background.asp

C# Syntax (Toggle Plain Text)

PictureBox[] arrpic = new PictureBox[5];
arrpic[0] = pic1;
arrpic[1] = pic2;
arrpic[2] = pic3;
foreach (PictureBox pb in arrpic)
{
picshow.Show(pb);
}

You said that you want to go for CSS right. So better to go for background-repeat

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.