Răspuns Web Page/Form Background

  • 7 septembrie 2011 22:02
     
     

    Good Day

    I'm trying to create a web page in ASP.NET in C#.

    I would like to know how to set a picture for my website's default backround, so that any controls

    or other content throughout the website will be on top of that backround.

    And what size should the background pic be set to on the web form?

     

    Thank You

Toate mesajele

  • 9 septembrie 2011 09:14
    Moderator
     
      Are cod
    Hi,

     

    I would like to know how to set a picture for my website's default backround, And what size should the background pic be set to on the web form?

     

    Thank You


    To set a picture for page's background just need to add the code snippet below:

    body
    {
    background-image:url('paper.gif');
    }

    the background image size was determined by the actual size of the image. You can specify the size in pixels or in percentages with background-size and background-repeat. If you specify the size as a percentage, the size is relative to the width and height of the parent element.

    More detail information about setting background of page please check this link:

    http://www.w3schools.com/css3/css3_backgrounds.asp

     

     

  • 11 septembrie 2011 07:03
     
     Răspuns

    Dont see how this applies to WebsitePanel...

    WSP Forums need better moderation, and possibly users who can read.

  • 13 septembrie 2011 07:56
    Moderator
     
     

    Hi,

    Actually, as echoDreamz said, this is not the proper forum for solving ASP.NET questions. Please try Mamba Dai's suggestion to see if this work for you. Mark it as answer if it does the trick. Otherwise, it is suggested you post this in ASP.NET forums for further help.

    Thanks


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com. Microsoft One Code Framework
  • 13 septembrie 2011 10:54
     
     

    Well there was no other Forum category which suited this question of mine any better. I think this

    forum needs to be better constructed and named, not everyone here is on expert level.

    I have tried ASP.NET since but the folks there don't seem very helpful either.

    But thanks

  • 13 septembrie 2011 10:56
     
     
    Well there was no other Forum category which suited this question of mine any better. I think this

    forum needs to be better constructed and named, not everyone here is on expert level.

    I have tried ASP.NET since but the folks there don't seem very helpful either.

    No need to be sarcastic either, I'm just looking for some help and this was the only

    'web' related category I could find.