Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 23rd, 2010, 05:00 PM
Authorized User
 
Join Date: Jan 2010
Posts: 34
Thanks: 5
Thanked 0 Times in 0 Posts
Default images problem

Hi Imar

I wanted to know what is the best way to put images on a webform.

I have a webform that has a masterpage. in the webform I want to put 4 images:
2 above 2. the images has different width but the same height.

what is the best approach to do that?
search the web give me so many different ideas and I got confused....

use table? div? Fix size? set the width of the images to 100%?
so it will look ok in different resolution and look ok side by side...

hope you can help
Barak
 
Old November 24th, 2010, 03:48 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It all depends on the final result you want to achieve.

A table would work fine, is probably easiest to set up and understand and would give you a lot of control.

Additionally, you could also float the images side by side. Something like (untested) should work:

Code:
 
<style type="text/css">
 
#container
{
  width: 1000px;  /* total width of two images max */
}
 
#container img
{
  float: left;
}
</style>
 
...
 
<div id="container">
  <img src="1.png" />
  <img src="2.png" />
  <img src="3.png" />
  <img src="4.png" />
</div>
Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem displaying images silvia23 BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2 4 January 28th, 2009 09:26 AM
problem with images...... kethireddy435 ASP.NET 2.0 Basics 2 September 17th, 2007 11:37 PM
Problem with images....... kethireddy435 ASP.NET 1.x and 2.0 Application Design 1 September 14th, 2007 11:20 AM
problem with images mattalec101 Xcode 1 June 7th, 2007 12:28 PM
Problem with images upload M.Poalim Beginning PHP 1 May 11th, 2007 07:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.