Master page background
Master page background
Master page background
Master page background
Master page background
Master page background Master page background Master page background Master page background Master page background Master page background Master page background Master page background
Master page background Master page background
Master page background
Go Back  Xtreme Visual Basic Talk > > > Master page background


Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2009, 04:54 AM
hapetter hapetter is offline
Centurion
 
Join Date: Jan 2006
Posts: 126
Default Master page background


Hi.
Im new to Visual Web.
Im trying to make a web page. Im using Master page as a template for my layout. I use a table to make the layout. However I dont quit understand all consepts.
How to make the size of page constant. Like outline should be lets say 600x800pixel? I can specify the size of table when I create it in pixel hight and width. But it seems like it changes as I fill in text and contents in the layout. ?
How can I set a background picture as the background in the header of my template? I can only set the color in properties . Should I use a image control?

Thanks!

Best Regards
Hans Pettersson
Reply With Quote
  #2  
Old 03-22-2010, 07:15 AM
JustinCase2 JustinCase2 is offline
Junior Contributor
 
Join Date: Apr 2006
Posts: 324
Default Let's see some code please...

Reply With Quote
  #3  
Old 03-22-2010, 07:31 AM
Qua's Avatar
QuaMaster page background Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

Your question is very HTML-centric. Setting the background image of a whole page is doing by setting specific parts of the body-style. Most layout settings should be handled by css, so you seperate the mark-up and layout-rules. By doing things this way you will have a site more open to change and improvement, and in theory your should be able to run with different css-files to have two completely opposite designs without changing any mark-up at all.

Following the above approach you can likewise set the size of your elements with CSS using the width and height properties. Furthermore the table have several other properties that you might find interested such as cell- and row height and width, and whether it should be collapsed.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #4  
Old 04-15-2010, 10:48 PM
nyeoman nyeoman is offline
Freshman
 
Join Date: Sep 2005
Posts: 40
Lightbulb To explain...

To elaborate upon the last comment...

If you have not already, add a stylesheet to your project and type the following within it:
Code:
.TopImage
{
    background-image: url(./Pics/pic1.jpg);
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
}
This assumes you have a folder called 'Pics' in your project that contains the image 'pic1.jpg' (Obviously, you can edit the path, image name, height, width, etc..).

Now, within your page element (i.e. div), you can set the class property to 'TopImage'. Your background should then begin to display.

Hope this helps...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Master page background
Master page background
Master page background Master page background
Master page background
Master page background
Master page background Master page background Master page background Master page background Master page background Master page background Master page background
Master page background
Master page background
 
Master page background
Master page background
 
-->