473,386 Members | 1,647 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,386 software developers and data experts.

simple "floating pictures" troubles

Hello;
I have (tried) to change my geocities
site to be "styled" not "tabled".

It's certainly made the HTML nicer.

But it doesn't work as nicely
I'd like.

And it almost doesn't work at all under IE.

The only page I've updated so far is:
http://geocities.com/plybench/record.html

My intention is for the pictures that correspond
to a paragraph to sit at the same level as the paragraph, and be centred
in a "nice" area to the right of the text.

If the pictures are large, they should expand to the left,
squishing the text up a little, but most pictures are
(in fact) thumbnails. This doesn't work well at the moment.

The older table code (e.g.
http://geocities.com/plybench/bowsaw.html
)
is closer to the behaviour I want, but I'm
open to design ideas as well as implementation tips.

I assume I'm falling foul of an IE bug,
bug I can't work out which one.

BugBear
Jan 16 '06 #1
4 1784
On Mon, 16 Jan 2006 17:09:28 +0000, bugbear
<bugbear@trim_papermule.co.uk_trim> wrote:
I have (tried) to change my geocities
site to be "styled" not "tabled".


Try reading the article on CSS floats at brainjar.com It's generally
thought to be the only readable article that _really_ explains how it
all works - particularly how "clear" doesn't clear quite as much as most
people expect it to, and why the text keeps on flowing onwards despite.
I don't know just what effect you're after - but if it's what I think,
then here's my attempt at it.
http://codesmiths.com/shed/things/smithing/casting/

You _need_ the extra <br> just before the <div> around the image.
Sorry about the CSS bloat. It's an old site and there's a lot of legacy
cruft in there I've not had time nor inclination to tidy away.
<div class="images-on-left" > is the key to it all and
<div class="figure" > around the images.
Jan 17 '06 #2
Andy Dingley wrote:
On Mon, 16 Jan 2006 17:09:28 +0000, bugbear
<bugbear@trim_papermule.co.uk_trim> wrote:

I have (tried) to change my geocities
site to be "styled" not "tabled".

Try reading the article on CSS floats at brainjar.com It's generally
thought to be the only readable article that _really_ explains how it
all works - particularly how "clear" doesn't clear quite as much as most
people expect it to, and why the text keeps on flowing onwards despite.


That looks like a great write up. I shall consider
it an an excellent meta-answer to my question.

BugBear
Jan 17 '06 #3
bugbear wrote:
Andy Dingley wrote:
Try reading the article on CSS floats at brainjar.com


http://www.brainjar.com/css/positioning/default.asp

OK. Read it. Tried some stuff. Still failing.

The behaviour I want is:
A group of pictures, displayed
centred in a container.

The container should be at least 240 pixels wide.

(intent so far: display a group of thumbnails
with some aesthetic white space)

If any of the pictures are too large too fit,
the container should grow.
(intent: if an image isn't a thumbnail,
use more space, keep eveything centred)

The container should float right.

(intent: the group of contained pictures illustrate the text)

(sample tagged page, and proto style sheet
http://geocities.com/plybench/record.html
)

How do I make a floated container grow
to suit it's contents. Since this is hand edited
I'd rather not have to hand-code each width.

BugBear

Jan 24 '06 #4
OK. It works. But only under Mozilla and Konqueror.

I'm up against IE bugs.
The behaviour I want is:
A group of pictures, displayed
centred in a container.

The container should be at least 300 pixels wide.

(intent so far: display a group of thumbnails
with some aesthetic white space)

If any of the pictures are too large too fit,
the container should grow.
(intent: if an image isn't a thumbnail,
use more space, keep eveything centred)

The container should float right.


http://geocities.com/plybench/record.html
(and http://geocities.com/plybench/style.css
of course)

do the right stuff.

To get what I want I'm using:

..text_with_photos .illus {
display:table-cell;
empty-cells:show;
margin-left:10px;
margin-right:40px;
float:right;
width:auto;
min-width:300px;
}

As I understand matters both display:table-cell
(which makes my container grow for large images)
and the width stuff have "issues" under IE.

Now - how do I persuade IE to handle it?

BugBear
Jan 25 '06 #5

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

Similar topics

1
by: Whitney Kew | last post by:
Hello everyone, I'm developing a mixed-mode Managed C++ DLL using .NET 2003, and to avoid the potential mixed-DLL-loading-deadlock issue discussed in MS KB article 814472...
4
by: GD | last post by:
I have a collection of asp:LinkButtons on a web form. Based on some reporting criteria, I will be "highlighting" some of these LinkButtons. I'd like the user to be able to mouseover the...
8
by: Just Me | last post by:
1)How can I find the folders like "My Recent Document", "Desktop", "My Pictures",... if I want to store a file there? 2) How can I find the icon for those files if I want to display it? ...
18
by: woessner | last post by:
Does anyone know of a fast way to multiply floating point numbers by powers of two? Conceptually, all you need to do is add to the mantissa. But can I write C code (or x86 assembly) to accomplish...
0
by: jeffrey.bigham | last post by:
Hello, I'm developing a small application that uses the WebBrowser control to display a webpage. I'd like to programatically access the "Show Pictures" option to turn images on and off. ...
4
by: John Friedland | last post by:
'printf' has a '%a' conversion for floating-point output: For example, printing '123456' with "|%13.4a|" produces | 0x1.e240p+16| I've looked through Josuttis and the header files, but I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
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
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,...
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...

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.