Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 23rd, 2010, 05:00 PM
Authorized User
Points: 154, Level: 3
Points: 154, Level: 3 Points: 154, Level: 3 Points: 154, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #2 (permalink)  
Old November 24th, 2010, 03:48 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.