473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

rows of thumbs

I'd like to revisit an old irritant of mine and see if there any new
ideas.

Rows of "thumbs", typically an image and some text, perhaps a form,
wrapped in a div.

If you float left everthing, when the row wraps the next row starts
at the lowest block for the previous row. This gives a very displeasing
staggered look.

You can count blocks and throw in a clearing div, but then you are
fixed on a certain number per row. You can set a height that is greater
than the highest you might expect, but then you have perhaps needless
negative space.

The real solution would lie along display: inline-block, but it
appears that only Safari gets this right.

One possible choice for me would be to use my equal column height
javascript code and have all the blocks pad out to the same height.

Who has another idea?

On another note, what are we doing for min-width these days.

Jeff
Jun 27 '08 #1
5 2190
Jeff wrote:
I'd like to revisit an old irritant of mine and see if there any new
ideas.

Rows of "thumbs", typically an image and some text, perhaps a form,
wrapped in a div.

If you float left everthing, when the row wraps the next row starts at
the lowest block for the previous row. This gives a very displeasing
staggered look.
It isn't clear to me what you mean by "starts at" or what "the lowest
block for the previous row" means. Are you complaining that the next row
should be higher than it is, lower than it is, or what? We've got two
dimensions here, and two directions in each, so your description is
vague and it isn't obvious what's bothering you. A URL would help.

I can take a wild stab and ask: have you set margin-bottom on each of
these DIVs?
Jun 27 '08 #2
On 2008-05-05, Jeff <jeff@spam_me_not.comwrote:
I'd like to revisit an old irritant of mine and see if there any new
ideas.

Rows of "thumbs", typically an image and some text, perhaps a form,
wrapped in a div.

If you float left everthing, when the row wraps the next row starts
at the lowest block for the previous row. This gives a very displeasing
staggered look.

You can count blocks and throw in a clearing div, but then you are
fixed on a certain number per row. You can set a height that is greater
than the highest you might expect, but then you have perhaps needless
negative space.

The real solution would lie along display: inline-block, but it
appears that only Safari gets this right.

One possible choice for me would be to use my equal column height
javascript code and have all the blocks pad out to the same height.

Who has another idea?
The situation is as you describe it with inline-block being the
preferred but unsupported-in-Firefox-2 solution.

If the images are just images, i.e. no captions or anything, then you
can just leave them all as display: inline and not float them.

If you're using floats you can avoid the staggering by making them all
the same height.
Jun 27 '08 #3
In article <v5******************************@earthlink.com> ,
Jeff <jeff@spam_me_not.comwrote:
I'd like to revisit an old irritant of mine and see if there any new
ideas.

Rows of "thumbs", typically an image and some text, perhaps a form,
wrapped in a div.

If you float left everthing, when the row wraps the next row starts
at the lowest block for the previous row. This gives a very displeasing
staggered look.
You can manage things by at least sorting landscapes from portraits to
give you a head start. In the end, you either do a bit of sorting to
keep like with like re height or buy the consequences about some
symmetry untidiness. I prefer sorting and short captions (if the latter
at all).

<http://tinyurl.com/2jcs5r>

--
dorayme
Jun 27 '08 #4
Harlan Messinger wrote:
Jeff wrote:
> I'd like to revisit an old irritant of mine and see if there any new
ideas.

Rows of "thumbs", typically an image and some text, perhaps a form,
wrapped in a div.

If you float left everthing, when the row wraps the next row starts
at the lowest block for the previous row. This gives a very
displeasing staggered look.

It isn't clear to me what you mean by "starts at" or what "the lowest
block for the previous row" means. Are you complaining that the next row
should be higher than it is, lower than it is, or what? We've got two
dimensions here, and two directions in each, so your description is
vague and it isn't obvious what's bothering you. A URL would help.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">

<style type="text/css">
..block{float: left;width: 190px;border: 1px solid black;margin-top:
25px;padding: 5px;}
</style>
<div class="block">
line one<br />
line twoa
</div>

<div class="block">
line one<br />
two<br />
three
</div>

<div class="block">
line one<br />
line two
</div>

<div class="block">
line one<br />
line two
</div>

<div class="block">
line one<br />
line two
</div>

<div class="block">
line one<br />
line two
</div>

<div class="block">
line one<br />
line two
</div>

<div class="block">
line one<br />
line two
</div>

<div class="block">
line one<br />
line two
</div>

<div class="block">
line one<br />
line two
</div>
>
I can take a wild stab and ask: have you set margin-bottom on each of
these DIVs?
Jun 27 '08 #5
dorayme wrote:
In article <v5******************************@earthlink.com> ,
Jeff <jeff@spam_me_not.comwrote:
> I'd like to revisit an old irritant of mine and see if there any new
ideas.

Rows of "thumbs", typically an image and some text, perhaps a form,
wrapped in a div.

If you float left everthing, when the row wraps the next row starts
at the lowest block for the previous row. This gives a very displeasing
staggered look.

You can manage things by at least sorting landscapes from portraits to
give you a head start. In the end, you either do a bit of sorting to
keep like with like re height or buy the consequences about some
symmetry untidiness. I prefer sorting and short captions (if the latter
at all).

<http://tinyurl.com/2jcs5r>
Trouble is this stuff is typically database drive, then you usually
don't know what is going to be where. Say you change the sort or the search.

This sort of layout is really common for shopping pages. You never
know either the orientation of the product thumbnail image, or the
length of the description.

I think I may write a bit of javascript to retro fix this. My equal
height javascript code will reset bottom padding so that all blocks are
the same height. Of course that will do it for all blocks. What I'm
thinking of now is to do this one "row" at a time. I think that is
cleaner than throwing in js created clearing blocks.

BTW, I think you are the only one here that would be interested, but
I had my first and probably only photo show at a local 503C (non profit)
Gallery. Nobody ever sells anything at these places but I sold 23 items.
I've been working on this for months...

Jeff
>
Jun 27 '08 #6

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

Similar topics

1
by: Eclectic | last post by:
Hi there ... I have trawled these groups and gone through the manual, I have cut and paste, and tried to alter many examples, but I cant for the life of me to get this to work ... can someone...
20
by: Roberto | last post by:
Hallo, I'm building a page that wants to respect XHTML 1.0 strict and CSS2 specifics. In this page I have to present thumbnails arranged to cover the entire width of the window, but there are...
0
by: Just Me | last post by:
Given a control1 on a UserControl: After much experimentation I find that the x and y values given to control1.SetBounds(x,y,... needs to have the positions of the scrollbars thumbs subtracted...
1
by: Jon Pope | last post by:
I've got a custom image file type whose contents I would like to have displayed when the user selects View|Thumbnails. I know I need to somehow add these files' images to the folder's THUMBS.DB,...
0
by: Pete Davis | last post by:
I've seen a number of posts by people asking for the file format for Thumbs.db files in Windows XP. This isn't so much an answer to a specific question as a post of how to read them. I've...
1
by: Rako | last post by:
My problem is: I want to create an index to any of the available picture-groups. This index is a table of thumbs with a scrollbar. If you click on the thumb, you get the full picture displayed. ...
4
by: DanWeaver | last post by:
I am trying to implement a "thumbs up- down" scoring system- I have an asp: repeater control to spit to my page a series of unique data eg John Yay- 2 Nay 10 Lucy Yay- 5 Nay 12 Susie Yay- 25 Nay...
2
by: jaems | last post by:
When the user clicks a button on my page a series of rather time consuming SQL searches take place before the results are returned to the same page. How can I display something indicating that...
0
by: KeesH | last post by:
Hi, I am quite desperate now because I made a nice webshop with a gridview where the customer is able to update the amount of products (Hostas in my situation) or delete the row. The problem is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...
0
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,...

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.