473,765 Members | 2,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Very basic float clearing not working in Safari

URL: http://hsivonen.iki.fi/france-2005/

On the page, markup looks like this:
<p class="imgpara" ><a
href="..."><img
src="..."
alt="..." height="..." width="..."></a>Caption 1</p>
<p class="imgpara" ><a
href="..."><img
src="..."
alt="..." height="..." width="..."></a>Caption 2</p>

Images float right. imgparas clear right. Hence, as expected, in Firefox
and Opera 7.5, Caption 2 is aligned with the top of the second image.

In Safari, however, all the captions appear as a group next to the first
images. Clearly, clear: right; is not working. Any suggestions on
workarounds? (It amazes me that a case this simple does not work.)

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 24 '05 #1
9 2972
Henri Sivonen wrote:
URL: http://hsivonen.iki.fi/france-2005/

On the page, markup looks like this:
<p class="imgpara" ><a
href="..."><img
src="..."
alt="..." height="..." width="..."></a>Caption 1</p>
<p class="imgpara" ><a
href="..."><img
src="..."
alt="..." height="..." width="..."></a>Caption 2</p>

Images float right. imgparas clear right. Hence, as expected, in Firefox
and Opera 7.5, Caption 2 is aligned with the top of the second image.

In Safari, however, all the captions appear as a group next to the first
images. Clearly, clear: right; is not working. Any suggestions on
workarounds? (It amazes me that a case this simple does not work.)


Use a table.

Your page size is incredible - there must be 200 images of more than
40kB each - I hope none of your visitors are on dialup or broadband
below 1.5Mb/s.

--
Rob
Jul 24 '05 #2
In article
<42************ ***********@per-qv1-newsreader-01.iinet.net.au >,
RobG <rg***@iinet.ne t.auau> wrote:
Henri Sivonen wrote:
URL: http://hsivonen.iki.fi/france-2005/

On the page, markup looks like this:
<p class="imgpara" ><a
href="..."><img
src="..."
alt="..." height="..." width="..."></a>Caption 1</p>
<p class="imgpara" ><a
href="..."><img
src="..."
alt="..." height="..." width="..."></a>Caption 2</p>

Images float right. imgparas clear right. Hence, as expected, in Firefox
and Opera 7.5, Caption 2 is aligned with the top of the second image.

In Safari, however, all the captions appear as a group next to the first
images. Clearly, clear: right; is not working. Any suggestions on
workarounds? (It amazes me that a case this simple does not work.)

Use a table.


I was looking for CSS-based workarounds.
Your page size is incredible - there must be 200 images of more than
40kB each - I hope none of your visitors are on dialup or broadband
below 1.5Mb/s.


I expect the people who might be the most interested in that page to
have broadband.

Making a Web photo gallery is hard.

Putting everything on one page means you can let it load first and then
you don't need to wait for each photo after following a "next" link or
somesuch. After all, splitting it would not reduce the overall data.
Also, personally, I strongly dislike having to follow "next" links.
However, the current attempt is problematic considering how the images
do not snap to the view port. It consumes RAM, too.

It is impossible to pick image sizes that please everyone. It's a
size/quality trade-off. And you can't know the view port size. :-(

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 24 '05 #3
Henri Sivonen <hs******@iki.f i> wrote:
> URL: http://hsivonen.iki.fi/france-2005/
Your page size is incredible - there must be 200 images of more than
40kB each - I hope none of your visitors are on dialup or broadband
below 1.5Mb/s.


I expect the people who might be the most interested in that page to
have broadband.


Photographs of a holiday in France, are you taking the piss?
Making a Web photo gallery is hard.
Nonsense.
Putting everything on one page means you can let it load first and then
you don't need to wait for each photo after following a "next" link or
somesuch. After all, splitting it would not reduce the overall data.
Also, personally, I strongly dislike having to follow "next" links.
First rule of web design: It's not about *you*.
However, the current attempt is problematic considering how the images
do not snap to the view port. It consumes RAM, too.
But you expect everyone to have 512Mb+ of RAM?
It is impossible to pick image sizes that please everyone. It's a
size/quality trade-off. And you can't know the view port size. :-(


Let the user pick a size they are comfortable with. And the main problem
with that page is that you simply dumped everything on one page. Create
a few groups, use *small* thumbnails with several links beneath each
thumbnail to larger formats users can choose from.

There are plenty of template based photo gallery generators available if
that sounds like to much work.

--
Spartanicus
Jul 24 '05 #4
In article
<bu************ *************** *****@news.spar tanicus.utvinte rnet.ie>,
Spartanicus <in*****@invali d.invalid> wrote:
I expect the people who might be the most interested in that page to
have broadband.
Photographs of a holiday in France, are you taking the piss?


I expect the people who might be the most interested in holiday photos
to be a few friends, who I know to have broadband. I guess putting the
link on the public Web was a bad idea. And I should have had a minimized
test case for this thread.
Making a Web photo gallery is hard.


Nonsense.


I thought so, too, until I tried making one.

I know my page is bad. But I thought the output of the usual gallery
generators was even worse. I don't remember any Web photo gallery whose
UI I liked. :-(
Also, personally, I strongly dislike having to follow "next" links.


First rule of web design: It's not about *you*.


I know. But am I the only one who prefers something you can skim through
by scrolling instead of having to commit to following a "next" link
after each photo?

ObCSS: Dumping everything on one page with different style sheets is in
theory the way that makes CSS-based different presentations possible.
It is impossible to pick image sizes that please everyone. It's a
size/quality trade-off. And you can't know the view port size. :-(


Let the user pick a size they are comfortable with.


Ie. you can't pick *a* size that pleases everyone.
Create a few groups, use *small* thumbnails
Thumbnails are irritating, because they tend to be so small you can't
quite see the photos just by skimming through thumbnails and then you
end up having to do a lot of link following.
with several links beneath each thumbnail to larger formats
users can choose from.
What sizes would you suggest?
There are plenty of template based photo gallery generators available if
that sounds like to much work.


Can you suggest one that runs on the Mac and *makes captions easy to
enter*? (Tried iPhoto and GraphicConverte r.)

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Jul 25 '05 #5
Henri Sivonen <hs******@iki.f i> wrote:
I expect the people who might be the most interested in holiday photos
to be a few friends, who I know to have broadband. I guess putting the
link on the public Web was a bad idea.
Fair enough since it isn't linked from your home page, as you know stuff
posted here gets treated as a public resource. Although as you note, it
kinda is public now that you've posted a link to it here, search engines
could pick it up.
>Also, personally, I strongly dislike having to follow "next" links.


First rule of web design: It's not about *you*.


I know. But am I the only one who prefers something you can skim through
by scrolling instead of having to commit to following a "next" link
after each photo?


Probably not, for a public page the issue would be that you should
consider what the experience is like under different conditions than
those similar to your own.
ObCSS: Dumping everything on one page with different style sheets is in
theory the way that makes CSS-based different presentations possible.


This wouldn't be a presentational issue, but a functional issue outside
the scope of CSS. On the issue of catering for different viewport sizes
under CSS 2.x all we can use is handheld versus screen stylesheets.
Under CSS 3 proposals we could use media queries. But although you could
use display:none & display:inline to selectively load images, this would
not be a proper solution to the number and size of images per page
issue. As ever CSS is optional and should not be relied upon.
>It is impossible to pick image sizes that please everyone. It's a
>size/quality trade-off. And you can't know the view port size. :-(


Let the user pick a size they are comfortable with.


Ie. you can't pick *a* size that pleases everyone.


As I said, offer a few.
Create a few groups, use *small* thumbnails


Thumbnails are irritating, because they tend to be so small you can't
quite see the photos just by skimming through thumbnails and then you
end up having to do a lot of link following.
with several links beneath each thumbnail to larger formats
users can choose from.


What sizes would you suggest?


That depends on your audience, for the limited group of friends you
talked about perhaps you know their hardware, their connections and
their browsing habits like their usual viewport size.

For the web it would depend on the minimum size required to convey what
the images are meant to convey, and the maximum above which there are no
benefits over smaller sizes. From my earlier glance at the pictures I'd
say there should be a small size like 240px wide for mobile users.
There are plenty of template based photo gallery generators available if
that sounds like to much work.


Can you suggest one that runs on the Mac and *makes captions easy to
enter*? (Tried iPhoto and GraphicConverte r.)


On the PC I've used Thotor, it's template based and highly configurable,
I've no experience with Mac software.

--
Spartanicus
Jul 25 '05 #6
Stunning photos! Thanks so much, Henri. These are beautiful. (I've no
solution to your Safari problem, though)

Jul 25 '05 #7
In article
<s0************ *************** *****@news.spar tanicus.utvinte rnet.ie>,
Spartanicus <in*****@invali d.invalid> wrote:
ObCSS: Dumping everything on one page with different style sheets is in
theory the way that makes CSS-based different presentations possible.
This wouldn't be a presentational issue, but a functional issue outside
the scope of CSS.


Let's suppose a user is going to take a look at all photos of a given
size. (Ie. the user is sufficiently interested.) Loading them as one
HTML doc and presenting them as paged projection media causes about the
same amount of traffic (actually, slightly less) as wading through
single-image pages with "Next" links. However, the user doesn't have to
wait between the photos, but the data is preloaded (consuming RAM,
presumably).
From my earlier glance at the pictures I'd
say there should be a small size like 240px wide for mobile users.


Do people really use their precious GPRS bytes for checking out travel
photos (of any size)?

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 25 '05 #8
Henri Sivonen <hs******@iki.f i> wrote:
>ObCSS: Dumping everything on one page with different style sheets is in
>theory the way that makes CSS-based different presentations possible.
This wouldn't be a presentational issue, but a functional issue outside
the scope of CSS.


Let's suppose a user is going to take a look at all photos of a given
size. (Ie. the user is sufficiently interested.)


Now suppose a user only want's to look at some pictures.
Loading them as one
HTML doc and presenting them as paged projection media
Paged projection is supported by a tiny percentage of clients.
causes about the
same amount of traffic (actually, slightly less) as wading through
single-image pages with "Next" links. However, the user doesn't have to
wait between the photos, but the data is preloaded (consuming RAM,
presumably).


You seem to have locked yourself into this single usage scenario,
there's little point arguing a case unless you accept that therein lies
the flaw.
From my earlier glance at the pictures I'd
say there should be a small size like 240px wide for mobile users.


Do people really use their precious GPRS bytes for checking out travel
photos (of any size)?


Another false assumption, mobile bandwidth need not be low bandwidth
and/or expensive.

--
Spartanicus
Jul 25 '05 #9
In article
<3h************ *************** *****@news.spar tanicus.utvinte rnet.ie>,
Spartanicus <in*****@invali d.invalid> wrote:
Henri Sivonen <hs******@iki.f i> wrote:
>ObCSS: Dumping everything on one page with different style sheets is in
>theory the way that makes CSS-based different presentations possible.

This wouldn't be a presentational issue, but a functional issue outside
the scope of CSS.
Let's suppose a user is going to take a look at all photos of a given
size. (Ie. the user is sufficiently interested.)


Now suppose a user only want's to look at some pictures.


Then (s)he obviously does not use the projection mode.
Loading them as one
HTML doc and presenting them as paged projection media


Paged projection is supported by a tiny percentage of clients.


And your mobile use case?
causes about the
same amount of traffic (actually, slightly less) as wading through
single-image pages with "Next" links. However, the user doesn't have to
wait between the photos, but the data is preloaded (consuming RAM,
presumably).


You seem to have locked yourself into this single usage scenario,


That's one scenario. There are others--like skimming in the continuous
mode. That's just an example of keeping this CSS-related.
there's little point arguing a case unless you accept that therein lies
the flaw.


I know my page bad. I blame it on the lack of a tool that would allow me
to make it better with reasonable effort. I would love to make the next
gallery better, but not at any cost.

I don't know how much effort you put into putting some photos online. I
think the following workflow would be reasonable:
1) Get the photos off the camera.
2) Make a selection of photos.
3) Enter captions in a view where the whole photo set is available and
moving between caption slots is easy with arrow keys or tab.
4) Run one batch operation.

Currently, I lack tools that supported that workflow and produced better
results. I'd love to be better informed about tools that have already
been made.

Perhaps you can point to a gallery you think is good so I can mimic it
if I ever get around writing my own tooling.

(And I am still interested in a CSS-based workaround for the Safari
float problem.)

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 26 '05 #10

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

Similar topics

0
2287
by: The Master | last post by:
Ok I went through and deleted code until I discovered the culprit. I then went back to my original style sheet and removed the CSS declaration that caused the floating to brake in safari 1.2. Once I removed it, the floating worked as expected in safari, but broke it in opera 7.5. The interesting part is the style declaration that causes safari to brake is the declaration I had used to fix the bug in Opera 7.5 originally. As far as I...
5
2297
by: Chris Beall | last post by:
See http://pages.prodigy.net/chris_beall/BeallSprings/WC.Deed%20GG.116-17.html using the CSS at http://pages.prodigy.net/chris_beall/BeallSprings/BSstyle.css The page is a transcript of a deed. I'm trying to retain, somewhat, the layout of the original document. Below the deed are the signatures (on the right) and the names of witnesses (on the left), hence paired blocks of text.
7
3846
by: Will Hartung | last post by:
Hi all... I'm working on a site that is show up a strange float bug (shocking I know) using Mozilla 1.7. You can see the problem here: http://www.marieosmond.com/Catalog1.aspx?coll=Y&page=2 This is how it should work: (but it's fluke luck, not, apparently, design)
10
1867
by: Jason Curl | last post by:
Greetings, I have an array of 32 values. This makes it extremely fast to access elements in this array based on an index provided by a separate enum. This array is defined of type "unsigned long int". I have a typedef for this: typedef unsigned long int Uint32; typedef float Float32; Uint32 myArray;
22
51553
by: ashkaan57 | last post by:
Hi, I am trying to put text on left and right side of the page and used: <div> <span>blah blah</span> <span style="float:right">blah blah</span> </div> The 2nd text does go to the right but the next line. What am I doing wrong? TIA.
6
2274
by: Wouter | last post by:
Hey hi.... I get this weird inconsistency in Firefox using floats. I made this little demo of it wich u can find here: http://tweed.xs4all.nl/demo/fffloats/ Now the ? Question mark should be in the grey bar, as it is in Safari and Opera however in FF it's floating beneath it.
5
15584
by: John | last post by:
Hi Suppose I want a header containing an image floated left and a list of horizontal links floated right. So I float the image left. I then do the following with the list: ul = float: right li = display: inline li a = display: block; float: left
2
3894
by: Jim Carlock | last post by:
I ran into a problem a think. Either that or I overlooked something. I seem to run into this problem quite often. I fail to pinpoint the problem and it appears as a bug with mozilla browsers. Anyone willing to offer a hint or suggestion as to why the outer container retains the width of the inner container, instead of auto-clearing both sides and instead of growing to the size of the container holding everything? <div id="container"><!--...
13
7938
by: limelites | last post by:
In IE7, FF, Chrome and Safari, everything looks great but in Opera the display of the additional images in my product page looks awful. This is a site that does attract foreign visitors who do use Opera, so it does matter. Opera Version 9.64 Platform Vista Zen Cart 1.3.8a Site URL is www.limelites.co.uk
0
10160
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...
1
9951
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
8831
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
7378
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
5275
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
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
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...

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.