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 :)

Recommended Answers

You could use the CSS background-repeat property:
http://www.w3schools.com/css/pr_background-repeat.asp

Jump to Post

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

Jump to Post

All 6 Replies

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.