Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


ASP.net Background size in pixels

Posted on 2012-08-10
Medium Priority
Last Modified: 2012-08-10

I am creating a gradient background in Photoshop for my ASP.net screen background.
What width and height in pixels should I use for the standard ASP.net background?
The image I am creating will be specified as Green1 in Site.css


    background: #001E00;
    background-image: url('/Resources/Green1.jpg');
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #696969;
Question by:Murray Brown
LVL 84

Accepted Solution

Dave Baldwin earned 2000 total points
ID: 38283049
There is no "standard ASP.net background" but there are a large variety of monitor sizes.  For a gradient background, you normally make it a narrow slice, just a few pixels wide, by the tallest screen size you expect to see.  I normally would make the background color the same as the bottom end of the gradient and make the background slice repeat only in the x-direction.  That way, if the screen is taller than the gradient, the background will match the bottom of the gradient and make it look like there is no discontinuity at the bottom.

Author Closing Comment

by:Murray Brown
ID: 38283061

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Screencast - Getting to Know the Pipeline
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month14 days, 11 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question