473,766 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple grid question

I would like to arrange some photos in a simple grid. Each photo is either x
pixels by y pixels or y pixels by x pixels (i.e. all the same size, arranged
either in the landscape or portrait direction). I want each row to be the
same width and height, the largest dimension of x and y. I want this to be
the case even if all the photos in a given row or column are arranged in the
'other' direction, the one which leaves two strips of empty space all along
the row or column. I would like to do this without using blank graphics to
force the grid to size and want to keep it within W3C standards. Try as I
might I've never found the proper way to do this! I hope my description of
the problem makes sense!

Thanks,
Geoff

--
Remove nospam in email address to reply
Jul 20 '05 #1
4 2229
Geoff Soper wrote:
I would like to arrange some photos in a simple grid. Each photo is
either x pixels by y pixels or y pixels by x pixels (i.e. all the
same size, arranged either in the landscape or portrait direction). I
want each row to be the same width and height, the largest dimension
of x and y. I want this to be the case even if all the photos in a
given row or column are arranged in the 'other' direction, the one
which leaves two strips of empty space all along the row or column. I
would like to do this without using blank graphics to force the grid
to size and want to keep it within W3C standards. Try as I might I've
never found the proper way to do this! I hope my description of the
problem makes sense!


first you need a block level container in which to place your image. set
it's height to suit and float to left or right according to taste. did I
miss something?

--
William Tasso - http://WilliamTasso.com
Jul 20 '05 #2
"William Tasso" <ne****@tbdata. com> wrote in message
news:bn******** *****@ID-139074.news.uni-berlin.de...
Geoff Soper wrote:
I would like to arrange some photos in a simple grid. Each photo is
either x pixels by y pixels or y pixels by x pixels (i.e. all the
same size, arranged either in the landscape or portrait direction). I
want each row to be the same width and height, the largest dimension
of x and y. I want this to be the case even if all the photos in a
given row or column are arranged in the 'other' direction, the one
which leaves two strips of empty space all along the row or column. I
would like to do this without using blank graphics to force the grid
to size and want to keep it within W3C standards. Try as I might I've
never found the proper way to do this! I hope my description of the
problem makes sense!


first you need a block level container in which to place your image. set
it's height to suit and float to left or right according to taste. did I
miss something?

Thanks to William for his reply.
I realise I forgot to mention it but I was initially thinking of a purely
HTML solution. How would I do it using only HTML? I'm not too experienced
with CSS, how would this solution render in older browsers, do you you know
roughly which browser versions first supported the CSS used in this example?
Would it be possible to have a little more detail of this CSS solution or a
pointer to an example?

Many thanks
Geoff
Jul 20 '05 #3
Geoff Soper wrote:
"William Tasso" <ne****@tbdata. com> wrote in message
news:bn******** *****@ID-139074.news.uni-berlin.de...
Geoff Soper wrote:
I would like to arrange some photos in a simple grid. Each photo is
either x pixels by y pixels or y pixels by x pixels (i.e. all the
same size, arranged either in the landscape or portrait direction).
I want each row to be the same width and height, the largest
dimension of x and y. I want this to be the case even if all the
photos in a given row or column are arranged in the 'other'
direction, the one which leaves two strips of empty space all along
the row or column. I would like to do this without using blank
graphics to force the grid to size and want to keep it within W3C
standards. Try as I might I've never found the proper way to do
this! I hope my description of the problem makes sense!

first you need a block level container in which to place your image.
set it's height to suit and float to left or right according to
taste. did I miss something?

Thanks to William for his reply.
I realise I forgot to mention it but I was initially thinking of a
purely HTML solution. How would I do it using only HTML? I'm not too
experienced with CSS,


Now's the time to learn.
how would this solution render in older
browsers,
depends - there are work-arounds for some issues.
do you you know roughly which browser versions first
supported the CSS used in this example?
Sorry - I'm not too concerned about old technology just so long as the
data/content appears and is presentable then I'm happy.
Would it be possible to have
a little more detail of this CSS solution or a pointer to an example?


An example I did a while back (nearly two years ago):
http://www.jennylind.co.uk/gallery3.asp
first attempt:
http://www.jennylind.co.uk/gallery.asp

--
William Tasso - http://WilliamTasso.com
Jul 20 '05 #4
In article Geoff Soper wrote:
I would like to arrange some photos in a simple grid.
Something like this maybe (not grid but something):
http://www.student.oulu.fi/~atlas/ku...hat/index.html
Not too much images, try smaller/bigger window, if that is not
demonstrating.
(Ask for JAlbum skin file.)
Each photo is either x
pixels by y pixels or y pixels by x pixels (i.e. all the same size, arranged
either in the landscape or portrait direction). I want each row to be the
same width and height, the largest dimension of x and y.
I don't get any more information from this.
I want this to be
the case even if all the photos in a given row or column are arranged in the
'other' direction, the one which leaves two strips of empty space all along
the row or column. I would like to do this without using blank graphics to
force the grid to size and want to keep it within W3C standards.


You need CSS. Or vspace/hspace attributes (deprecated IIRC).

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2486
by: MBW | last post by:
The following code is for a simple server/client asplication that allows the user to toggle between serve and or client modes and send/recieve a message however i am getting an Attribute error on my entry widgets when I try and call get() to get the port and ip address from those fields, I'm sure it's something simple I haven't grasped... #START from Tkinter import * from socket import *
3
1723
by: suzy | last post by:
Hello, I am trying to write a generic tool that accesses a SQL server and reads/updates/deletes/creates records. I want to reference this tool from my asp.net pages to talk to my db. by the way, i want the results of any read, update and create to be returned in xml. when reading data, i populate a dataset with data and then use the dataset.getxml method to return xml. is this a neat way of reading data? how does it compare to the...
5
3075
by: Will | last post by:
I've got a simple form that collects data from a user and I want to display that data in a sortable grid or table. The nature of this data is rather temporary, so there's no need to persist it to a database. Searching through the Framework documentation, everything I've seen reggarding a grids and tables seems to require a connection to a database. My guess is I'm just missing something. What classes can I use to display sortable data in a...
0
7566
by: Tal Sharfi | last post by:
Hi everyone I recently had the need for StringGrid object same as the one that Delphi has. An object that helps show lists of other objects in a simple grid. I searched the news groups and found none, so, I wrote one and decided to share it with you. It's a very simple one with few functions. I derived a DataGrid and added to it a DataTable to hold the data. The object itself is handling the synchronization between them, because...
13
1860
by: Saber | last post by:
I did a lot of searches and read something about datagrids. But I couldn't find the answer of my simple question, how can I show only my desired columns of a table? for example I wrote this sql query: OleDbDataAdapter1.SelectCommand.CommandText = & _ "Select illNameE From tblIllness" OleDbDataAdapter1.Fill(DsIllness1) But in my datagrid, I get (null) for other ccolumns instead
2
1224
by: James | last post by:
I have a very simple datagrid, with an edit button that I added in PropertyBuilder. This fires the EditCommand event just fine and I show a panel where the user can edit certain fields. I have a button to save the changes. Within that button, I refer to dataGrid1.EditItemIndex and it's returning -1. Isn't this property set when I click on the edit button within the grid?
0
1085
by: serge calderara | last post by:
Dear all, I have an application which collect information from a database and display them in a dagrid. I have apply to the grid a DataView object to get filtered information and bind the grid to that dataview. Then if my user click on a <ADD> button I would like to get the grid in an edition mode and my user can fill up information directly in.
1
1252
by: Eric_Dexter | last post by:
I am just trying to acess a function in wordgrid (savefile) to a button that is defined in TestFrame. I can't seem to make it work I either get an error that my variable isn't global or it makes other complaints. thanks in advance.. sorry for the simple question.. import wx import wx.grid as gridlib
5
1466
by: eric dexter | last post by:
I am just trying to acess a function in wordgrid (savefile) to a button that is defined in TestFrame. I can't seem to make it work I either get an error that my variable isn't global or it makes other complaints. thanks in advance.. sorry for the simple question.. import wx import wx.grid as gridlib import sys
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10008
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9837
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.