473,507 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Flowing things to width of screen

I am not sure if this is possible, and i cannot get google to tell me,
so i am trying here!

I wish to display a list of addresses, probably about 20, and i want
them to be in a grid formation. However i want the number of
addresses accross the screen to be decided by the browser (depending
on the width of the window being used) so a hard coded table is not
great.

I am fairly sure i have seen a solution somwhere, but now i cannot
locate it :(

I assume that any solution would work with screenreaders/phones etc
simply by having one long list of addresses.

Hmm hope that description is clear, here is some ascii art to help
you!

O <- this is a block of text representing one address

| <- left of screen(or browser window (or whatever)) |
| right of screen(or browser window (or whatever)) -> |

example with wide screen
|OOOOOOO|
|OOOOOOO|
|OO |

Example with narrow screen
|OO|
|OO|
|OO|
|OO|
|OO|
etc etc
any hints and tips gratfully recieved

Fragg
Jul 20 '05 #1
1 1890
Fraggle wrote:
I am not sure if this is possible, and i cannot get google to tell me,
so i am trying here!
When talking about presentation,
<URL:news:comp.infosystems.www.authoring.styleshee ts> is usually a better
choice. Followups set.

I wish to display a list of addresses, probably about 20, and i want
them to be in a grid formation. However i want the number of
addresses accross the screen to be decided by the browser (depending
on the width of the window being used) so a hard coded table is not
great.
Float the elements to the left and set a width. It's come up a few times in
ciwas lately in the context of thumbnails for a picture gallery, so check
Gooja.

I assume that any solution would work with screenreaders/phones etc
simply by having one long list of addresses.


Yup, all you want is simple, meaningful markup:

<ul class="address">
<li>Address 1</li>
<li>Address 2</li>
<li>Address 3</li>
<li>Address 4</li>
</ul>

..address, .address li {
display: block;
margin: 1em;
padding: 1em;
}

..address li {
float: left;
width: 10em;
border: medium solid black;
}

--
Jim Dabell

Jul 20 '05 #2

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

Similar topics

5
8295
by: Laura | last post by:
Hello, Newbie question: Does anyone know how to dynamically set the screen width in an applet? I have an applet that creates a horizontal bar menu on a webpage, and I would like the width to be...
179
44232
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
5
6081
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge...
3
2031
by: gallery | last post by:
This has stumped me. The text is not flowing properly to the left of an image I have floated to the right in IE. Seems fine in Firefox. I'm on a WinXP ... ...
6
5501
by: mgandra | last post by:
What is best way to find browser screen width using javascript that is compatible with all types of browsers.
14
3065
by: Eric Lindsay | last post by:
I've seen a page using display, and especially display table that did some neat things with boxes, but basically it only worked with Mozilla browsers. Fell over fairly badly with Opera and Safari...
4
3451
by: Doug van Vianen | last post by:
Hi, I have the following coding on a web page. It causes two pictures (pic1.jpg and pic2.jpg) to show, one above the other and then when one clicks on the top picture is squeezes to the left...
14
2474
by: greentiger1 | last post by:
I'm moderately experienced in CSS. I am currently working on a new version of my site, built from the ground up, but the dynamic portion, loaded with a PHP include into the 'chest' DIV is being...
3
6760
by: Safalra (Stephen Morley) | last post by:
(Note: I'm not trying to do anything stupid based on the user's screen size - I'm just curious.) At work today I was looking at the visitor statistics for a client website, and noticed that...
0
7223
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,...
0
7110
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7314
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,...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
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...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
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 ...
1
758
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.