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 1 1897
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.styl esheets> 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 100%.
Unfortunately, this doesn't work with Explorer. so, in my html page,
I wrote a function like this:
<SCRIPT LANGUAGE="JavaScript">
int function getScreenWidth()
|
by: SoloCDM |
last post by:
How do I keep my entire web page at a fixed width?
*********************************************************************
Signed,
SoloCDM
|
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 of the screen. I
want it to only extend as far as it needs to to nicely contain the
content within (a couple of links).
Is width: auto the wrong property to do this? Is Mozilla rendering the
style wrong?
|
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 ...
http://www.bluequillangler.com/vo/working.html
http://www.bluequillangler.com/vo/styles-voaurora.css
Can anyone help me with this?
|
by: mgandra |
last post by:
What is best way to find browser screen width using javascript that is
compatible with all types of browsers.
| |
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 (I don't have
IE, but I have my suspicions that wouldn't work either).
I'd like to use CSS to put some boxes down the middle of a page. The
page is intended to be fluid, but the boxes all need to be the same
width, which can be variable...
|
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 (as its width is reduced) to show the bottom picture. Then when the
bottom
picture is clicked the top picture expands to the right to cover the bottom
picture again.
|
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 visually blocked by the 'arm' DIV.
Arm is supposed to be the scalable side-justified navigation bar,
chest is supposed to be the main content. The idea was to create a
partially elastic site so that people could scale it to their liking
in any...
|
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 the recorded screen resolutions included results that
clearly referred to dual display systems - 2560 by 1024, for example. The
statistics package is obtaining this data from window.screen.width. I
wasn't aware of this behaviour of...
|
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...
|
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...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |