473,769 Members | 5,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to structure/style hotel or book info?

I'm wondering what is the "best" way to structure a set of info about
an item, like a book or a hotel.

Eg, let's say you had this info to present for each book in a
collection:
Title
Author
Publisher
Edition info
etc

Or for a hotel or restaurant:
Name
Street
City, State, Zip line
Phone
Url
etc.

I'm assuming a div per book/hotel/restaurant. But for each line of
info, would you make an unordered list to present that? Or just a <p>
per line? I want to be able to style each item, so just adding <br>
after each line is not a good solution.

Just curious about people's ideas.

Thanks,
Chris

Jul 21 '05 #1
4 3305
"Chris" <ch************ ***@gmail.com> wrote:
I'm wondering what is the "best" way to structure a set of info about
an item, like a book or a hotel.
I've become used to people asking CSS questions in c.i.w.a.html.
Although asking a markup question in c.i.w.a.stylesh eets is more
original, please excuse me for uttering "AAAAARGGGGGHHH HHH".

Cross posted and f-up set to comp.infosystem s.www.authoring.html
Eg, let's say you had this info to present for each book in a
collection:
Title
Author
Publisher
Edition info
etc

Or for a hotel or restaurant:
Name
Street
City, State, Zip line
Phone
Url
etc.

I'm assuming a div per book/hotel/restaurant.

But for each line of
info, would you make an unordered list to present that?
It ain't no list is it?
Or just a <p>
per line? I want to be able to style each item, so just adding <br>
after each line is not a good solution.


This is yet another instance where things become clearer if you think of
aural rendering instead of visual rendering.

Let's define the requirements: the different book or restaurant info
need to be distinguishable from the next book or restaurant info. Sub
text such as address and phone # must be separated by a pause, they must
not be spoken in sequence. Spans, divs and <br>s are non semantic, an
aural renderer would be fully correct if it ignored such elements.

The best approach may be to use a header for the book title/restaurant
name, and wrapping the rest in paragraph tags like so:

<h4>Title</h4>
<p>Author</p>
<p>Publisher</p>
<p>Edition info</p>

<h4>The Happy Muncher</h4>
<p>Street</p>
<p>City, State, Zip line</p>
<p>Phone</p>
<p>Url</p>

Remove the visual paragraph spacing if desired with CSS.

--
Spartanicus
Jul 21 '05 #2
Chris wrote:
I'm wondering what is the "best" way to structure a set of info about
an item, like a book or a hotel.

Eg, let's say you had this info to present for each book in a
collection:
Title
Author
Publisher
Edition info
etc

I'm assuming a div per book/hotel/restaurant. But for each line of
info, would you make an unordered list to present that? Or just a <p>
per line? I want to be able to style each item, so just adding <br>
after each line is not a good solution.

Just curious about people's ideas.


I'd be inclined to use a table, e.g.:

<table class="bookinfo " summary="Book information">
<tr class="title">
<th>Title</th>
<td>The Zen of CSS Design: Visual Enlightenment for the Web</td>
</tr>
<tr class="authors" >
<th>Author(s) </th>
<td>Dave Shea, Molly E. Holzschlag</td>
</tr>
<tr class="publishe r">
<th>Publisher </th>
<td>New Riders</td>
</tr>
<tr class="edition" >
<th>Edition</th>
<td>First</td>
</tr>
<tr class="isbn"
<th>ISBN</th>
<td>032130347 4</td>
</tr>
</table>

Styling this becomes trivial, of course.
Jul 21 '05 #3
Chris wrote:
I'm wondering what is the "best" way to structure a set of info about
an item, like a book or a hotel.

Eg, let's say you had this info to present for each book in a
collection:
Title
Author
Publisher
Edition info
etc

Or for a hotel or restaurant:
Name
Street
City, State, Zip line
Phone
Url
etc.

I'm assuming a div per book/hotel/restaurant. But for each line of
info, would you make an unordered list to present that? Or just a <p>
per line? I want to be able to style each item, so just adding <br>
after each line is not a good solution.


This is one of those cases where tables are a good thing - in fact, this is
exactly what they're intended for!

Use a table with a new line for each entry...

--
Tony Garcia
Web Right! Development
Riverside, CA
www.WebRightDevelopment.com
Jul 21 '05 #4
Chris <ch************ ***@gmail.com> wrote:
I'm wondering what is the "best" way to structure a set of info about
an item, like a book or a hotel.


For books I would use a list (most probably unordered), organizing
data as scientific referencees:

- Author/s (YEAR) Title, Edition, Editor, City

For hotels I would prefer a table or maybe a list with only a couple
of data (eg: name, stars and city) which is enlarged upon clicking on
the short details (which would be a link). Only the selected hotel
details would be shown in that case.

I belive both cases could be better if data were kept on a database
(specialy when the books or hotels list is large) and the list or
table is made up dinamically upon visitor selections.

--
Saludos,
Ángel
Jul 21 '05 #5

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

Similar topics

8
18691
by: Dave Robinson | last post by:
I was wondering if anyone could help me with a problem I'm having. I've been using Dreamweaver to create a hotel booking system for a friend of mine, using MySQL (version 4.0.21) and PHP 5. The bit I'm struggling with is checking the Room Availability based on dates that are typed into a textfield and then returning a list of the available rooms on the next page. The three tables involved in this function are: CREATE TABLE `room` (
0
1843
by: QWERTY | last post by:
--------------Boundary-00=_O5I3QL80000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_O5I3LVC0000000000000" --------------Boundary-00=_O5I3LVC0000000000000 Content-Type: Text/Plain; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable
14
5615
by: laurence | last post by:
I am implementing a comprehensive image-map generator utility, so have been studying W3C HTML 4.01 Specification (http://www.w3.org/TR/html4/struct/objects.html#h-13.6) on image maps (among other things). I note the document specifies that block level content can be included within a <map>. Testing this in order to discover why one might wish to do this, I find the block level content is rendered in page flow order anyway, and not...
8
2591
by: James Owens | last post by:
I'm a relative newbie, interested in storing the information from several server directories and subdirectories in XML so that I can present it selectively using XSL (all files updated today or last MOnday, files from several drirectories in alphabetical order, things like that). To represent directories and subidrectories, is it advisable to nest the same element: <directory> <directory>
11
2415
by: Mannequin* | last post by:
Hi all, I'm working on a quick program to bring the Bible into memory from a text file. Anyway, I have three questions to ask. First, is my implementation of malloc () correct in the program to follow? Second, have I correctly passed the structure's pointer to the functions in this program?
2
1426
by: David Goodger | last post by:
Early bird registration for PyCon TX 2006 ends on December 31st, so there are only a few days LEFT. To register, please visit: http://us.pycon.org/TX2006/Registration You can still register after Dec. 31st, but the cost will go up by US$65 (US$25 for students). This year PyCon will feature a day of tutorials before the three days of regular presentations. Course outlines for all the tutorials have
10
4995
by: David Fort | last post by:
Hi, I'm upgrading a VB6 app to VB.net and I'm having a problem with a call to a function provided in a DLL. The function takes the address of a structure which it will fill in with values. I get an error: ---------------- An unhandled exception of type 'System.NullReferenceException' occured in
24
4210
by: GesterX | last post by:
First of all I'm new to this site but it certainly looks like a place that i will be visiting more often! Onto my problem. I am creating a Hotel Bussiness project in java using BlueJ The classes are as follows: Hotel - Deals with the major functions of the hotel (i.e guests booking in, finding rooms etc.) Room - Used to decide whether a room has a sea view and stores the guest that is in the room. Occupier - For information about the...
11
1446
by: allendowney | last post by:
Hi All, I am working on a revised edition of How To Think Like a Computer Scientist, which is going to be called Think Python. It will be published by Cambridge University Press, but there will still be a free version under the GNU FDL. You can see the latest version at thinkpython.com; I am revising now,
0
9586
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
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
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
8869
agi2029
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...
1
7406
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 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...
0
6672
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
5298
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...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3561
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.