473,698 Members | 2,434 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Double float problem

I have created a liquid layout with 3 columns, the left and right cols
being floated, and inside the middle column, I have a list of items that
are floated to the left so that I have a pure liquid layout. Problem is:
all that comes after the list of items is floated to left too:

http://www.auriance.com/docs/test/index.html

The word "Article" is on the same level of the last image at times,
depending on the width of the window. Now, if I clear this word "Article",
using h1 { clear: both; }, it jumps below the whole layout because the 2
columns are floated!

http://www.auriance.com/docs/test/index2.html

I can't use absolute positionning for the columns because the distance
from the top will never be the same.
Is there a way to prevent this?

--
Thanks,

Justin.
http://www.opera.com/mail/
Jul 21 '05 #1
4 1747
Justin Sane wrote:

I can't use absolute positionning for the columns because the distance
from the top will never be the same.
Is there a way to prevent this?

For the <li> element, remove "float:left ", add "display:inline ".

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #2
Justin Sane wrote:
I have created a liquid layout with 3 columns, the left and right
cols being floated, and inside the middle column, I have a list of
items that are floated to the left so that I have a pure liquid
layout. Problem is: all that comes after the list of items is floated
to left too:

http://www.auriance.com/docs/test/index.html

The word "Article" is on the same level of the last image at times,
depending on the width of the window. Now, if I clear this word
"Article", using h1 { clear: both; }, it jumps below the whole layout
because the 2 columns are floated!

http://www.auriance.com/docs/test/index2.html

I can't use absolute positionning for the columns because the
distance from the top will never be the same.
Is there a way to prevent this?

remember: changing the h1 now means also changing also the first time
you used h1 ( for images)
Peter
Jul 21 '05 #3
On Fri, 17 Jun 2005 15:11:32 -0300, Jim Moe
<jm************ ***@sohnen-moe.com> wrote:

For the <li> element, remove "float:left ", add "display:inline ".


Thanks a lot, it work fine, but now, how could I add a caption,
centralized, width the same width as the photo (100px)?
Here's what I came up with, but it's not underneath the photo:

http://www.auriance.com/docs/test/index2.html
--
Thanks,

Justin.
http://www.opera.com/mail/
Jul 21 '05 #4
Justin Sane wrote:
For the <li> element, remove "float:left ", add "display:inline ".


Thanks a lot, it work fine, but now, how could I add a caption,
centralized, width the same width as the photo (100px)?
Here's what I came up with, but it's not underneath the photo:

Spartanicus answered this type of question quite nicely in the recent
thread "Center these images? And more..." started on June 12, 2005. His
sample code is (still) at
<http://homepage.ntlwor ld.com/spartanicus/temp.htm>. If not, I have a copy.
You may also peruse <http://css.maxdesign.c om.au/listamatic/> for other
options.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #5

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

Similar topics

4
13618
by: Jonathan Fielder | last post by:
Hi, My program (below) casts a double (which is in range for a float) to a float. As far as I know this should give me the nearest representable float, which will loose some precision. I then test for a NAN by comparing my float to itself (is this correct?), and I get different behaviour with different compilers. Have I done something that is undefined, or is this a compiler bug? Thanks,
4
4180
by: Michael Mair | last post by:
Hi there, actually, I have posted the same question in g.g.help. As there were no answers, I am still not sure whether this is a bug or only something open to the compiler that is seemingly inconsistent or whether my understanding of C is not complete enough. I would appreciate answers or pointers to answers very much.
6
7269
by: James Thurley | last post by:
According to the docs, floats are 32 bit and doubles are 64 bit. So using floats should be faster than using doubles on a 32 bit processor, and my tests confirm this. However, most of the Math methods deal with doubles and I'm having problems with casting them back to floats. For example: (double)0.1f = 0.10000000149011612 I don't need the accuracy of doubles, but the speed of floats would be benificial, but it seems I'm either...
8
13002
by: Quinn Kirsch | last post by:
Hi all, the following c# example baffles me. my understanding of the managed code of visual .net is that all casts like this would be safe, but this example seems to contradict this notion. if you look at the debugger info, the double dou is half filled w/ garbage bits, instead of those bits being zeroed out appropriately. using System; namespace decimaltodouble {
44
16330
by: Daniel | last post by:
I am grappling with the idea of double.Epsilon. I have written the following test: public void FuzzyDivisionTest() { double a = 0.33333d; double b = 1d / 3d; Assert.IsFalse(a == b, "Built-in == operator should not be
67
9893
by: lcw1964 | last post by:
This may be in the category of bush-league rudimentary, but I am quite perplexed on this and diligent Googling has not provided me with a clear straight answer--perhaps I don't know how to ask the quesion. I have begun to familiarize myself here with the gcc compiler in a win32 environment, in the form of MinGW using both Dev C++ and MSYS as interfaces. I have recompiled some old math code that uses long double types throughout and...
13
6183
by: Shirsoft | last post by:
I have a 32 bit intel and 64 bit AMD machine. There is a rounding error in the 8th digit. Unfortunately because of the algorithm we use, the errors percolate into higher digits. C++ code is ------------------ b += (float)(mode *val); On 32 bit(intel , vs 2003, C++), some watch variables are
1
2820
by: Wayne Shu | last post by:
Hei everyone: Just see the output of the following program #include <iostream> #include <cstdlib> #include <limits> int main() { std::cout << "minimum exponent of double: " <<
30
4026
by: copx | last post by:
I am writing a program which uses sqrt() a lot. A historically very slow function but I read on CPUs with SSE support this is actually fast. Problem: C's sqrt() (unlike C++ sqrt()) is defined to work on doubles only, and early versions of SSE did not support double precision. The CPU requirement "something with at least first generation SEE support" (everything from P3/Athlon XP and up) is acceptable for me. However, requiring a CPU which...
22
2763
by: Bill Reid | last post by:
I just noticed that my "improved" version of sscanf() doesn't assign floating point numbers properly if the variable assigned to is declared as a "float" rather than a "double". (This never cropped up before, since I rarely use "float"s for anything, and hardly ever use the function for floating-point numbers in the first place; I just was messing around testing it for all cases and noticed a problem.) Anyway, it is declared and I...
0
8675
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
9029
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 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...
1
8897
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
8862
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6521
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
5860
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
4370
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...
1
3050
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
2331
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.