473,545 Members | 582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

first float is lower, why ?

http://www.houndsofheaven.com/hoh2/d...Dog_Shows.html

note that the first ribbon the "Dog Show Experiences" is about 10 px
(the padding of the div) lower than the rest of the floats in Mozilla.
It is not in MSIE. I presume that Mozilla is doing it right and I am not.

It looks like I have two paddings together, but I just can't see why.

This is a quick and dirty proof of concept and uses both a linked css
file and some inline styles.

all comments appreciated about this problem and/or general styling
issues. I am working hard to move from html.
--
Bill Drescher
william {at} TechServSys {dot} com
Jul 20 '05 #1
1 1548
bill drescher wrote:
http://www.houndsofheaven.com/hoh2/d...Dog_Shows.html

note that the first ribbon the "Dog Show Experiences" is about 10 px
(the padding of the div) lower than the rest of the floats in Mozilla.
It is not in MSIE. I presume that Mozilla is doing it right and I am not.

It looks like I have two paddings together, but I just can't see why.

This is a quick and dirty proof of concept and uses both a linked css
file and some inline styles.

all comments appreciated about this problem and/or general styling
issues. I am working hard to move from html.


the problem was a space the crept in. padding; 10 px |= padding: 10px
validating the css gave me the answer. duh
--
Bill Drescher
william {at} TechServSys {dot} com
Jul 20 '05 #2

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

Similar topics

2
1876
by: Rainer Birkenmaier | last post by:
Hi again, This float-thing with IE is really killing me ... anyway here two new questions: 1) Check out http://birkenmaier.org/a.php If you display this using IE the margin between the left-middle blue box ("Seitenleiste") and the lower blue box ("the credits") is double as high as expected. The problem can be fixed by having
8
1616
by: Bart Blommerde | last post by:
Compiling the code below results in the following g++ error : ' cannot declare member function sourceA::DataBuffer<KeyType,ValType>::buffer' within `SourceA' ' What I'm trying to do here is defining a template for databuffers containing elements of any given DataSource. DataSource is a template for any database or fileStream containing...
8
9554
by: Jonathan Fielder | last post by:
Hi, I have a 32 bit integer value and I wish to find the single precision floating point value that is closest to but less than or equal to the integer. I also have a similar case where I need to find the single precision floating point value that is closest to but greater than or equal to the integer. I believe that if I simply cast to...
54
8314
by: Andy | last post by:
Hi, I don't know if this is the correct group to post this, but when I multiply a huge floating point value by a really small (non-zero) floating point value, I get 0 (zero) for the result. This creates a big hole in a 32-bit timer routine I wrote. Questions. 1. Why does this happen? 2. Is there C macros/functions I can call to tell me...
7
30286
by: Partho | last post by:
I have a float variable which I need to add to a short variable. How do I do this? Do I have to typecast or is there a way around? I tried typecasting the float to a short, but that gives me a 0 or +/-1, which is unacceptable. Any pointers to how to get over this?
4
2582
by: chandanlinster | last post by:
I came to know that using format specifiers(in printf or scanf) to convert between float and int is a really bad idea. This is because the printf prints junk values when it encounters such a type of conversion. For eg: #include <stdio.h> int main()
43
6525
by: Xancatal | last post by:
Hey everybody. I need help on this one. I need to verify that a number entered by a user is not either a negative number (-100.00), or an alphabet (a, b, c, X, Y) as well as other number other than positive integers or a decimal point. For example: Enter amount: and was capturing the float varialbe as in: scanf ("%f", &myVar)
3
5934
by: ayaz.ali | last post by:
Hello, I am having a problem sending float parameter to a function in another c file with its declaration in a common header file. When I send the float with value 1.00000000, the receiving function gets 0. I suppose the float value gets converted to double and then back to float with only lower half of double (i.e. 0). I am using ANSI C...
35
2168
by: bala.pandu | last post by:
Hello Everyone, When i am assigning a float value and try to print the same, i found the value stored is not the exact value which i gave. int main() { float f1; printf("Enter a float value : \n"); scanf("%f",&f1);
0
7457
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...
0
7391
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...
1
7410
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...
0
7746
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...
0
5962
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...
1
5320
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...
0
4941
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...
1
1869
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
1
1010
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.