Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

ASP.Net Master Page background

I think this is really simple, but I've never really had to do it. I have a website set up in ASP.Net (C# code behind) using a master page, etc. I have the layout/colors/menus etc all laid out nicely. Now all I want to do is add the word Testing or Development to the background, preferably something small that repeats. That way when a user logs on they will know which system they are on at all times. I don't want it to take over the current background colors or scheme. I've tried using some images but the results have been poor. Any suggestions?
0
dodgerfan
Asked:
dodgerfan
  • 2
  • 2
2 Solutions
 
strickddCommented:
body
{
background-image:url('TestBackground.jpg');
background-repeat:repeat;
}
0
 
dodgerfanAuthor Commented:
strickdd,
I've tried that, but it just takes over the whole background. I have a grey background now, and I'd just like to throw the word Testing onto it and have it repeat.
0
 
Paul MacDonaldDirector, Information SystemsCommented:
body
{
background-image:url('paper.gif');
background-repeat:repeat-y;  /* repeat vertically */
}

OR

body
{
background-image:url('paper.gif');
background-repeat:repeat-x; /* repeat horizontally */
}
0
 
strickddCommented:
You cannot have two backgrounds on one element, but if you do something like this:

.testBG
{
background-image:url('TestBackground.jpg');
background-repeat:repeat;
}

<html>
<head/>
<body>
<div class="testBG">
      <!-- All Content Here -->
</div>
</body>
</html>
0
 
dodgerfanAuthor Commented:
Once I created the image correctly, the display looked they way I wanted when utilzing the suggestions with CSS.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now