473,561 Members | 3,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

div block size different in IE Firefox ?!?

Hi,

I'm trying to use DIV instead of tables for positioning objects on the
page.
It was great till I realized that IE sizes DIVs differently from
Firefox.
Please see example at:
http://www.polidora.com/test.html

The sidebar should be 200px wide, but Firefox is making that larger.

What am I missing ?
I'm going crazy...

thanks for your time,
-GianLuca

Jan 29 '06 #1
6 10827
Once upon a time *Gian* wrote:
Hi,

I'm trying to use DIV instead of tables for positioning objects on the
page.
It was great till I realized that IE sizes DIVs differently from
Firefox.
Please see example at:
http://www.polidora.com/test.html

The sidebar should be 200px wide, but Firefox is making that larger.

What am I missing ?
I'm going crazy...


"The requested URL /test.html was not found on this server."

Do you have a full Doctype declaration on top of the page source?

E.g.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

With a missing doctype IE render the page in Quirks Mode. And among
other effects, that gives the result for width that you describe.

--
/Arne

Now ignoring all Google Groups posters who don't quote
* From Google: http://www.safalra.com/special/googlegroupsreply/
Jan 29 '06 #2
Arne,
thanks for your kind reply.
I posted the example just a couple of minutes after my post.
You should see it know, and yes, there is a full Doctype declaration.
The different div size is very apparent.
The image is 600px, and the DIV should be 200px.
-Gian

Jan 29 '06 #3
Gian skrev:
You should see it know, and yes, there is a full Doctype declaration.


No, there are not.

You have
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
IE will go in quirk mode with this.

Use
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
or the one, that Arne had in his answer.

http://www.alistapart.com/articles/doctype/
--
Topposter du svar, dvs. skriver dit svar over det citerede,
så ryger du på min ignoreringslist e.
Svar under det du citerer og citer kun det du svarer på - tak.
http://usenet.dk/netikette/citatteknik.html
Jan 29 '06 #4
I'm really sorry, but didn't you -we- write the very same declaration
?!

Jan 29 '06 #5
Ok. Arne was right, and *his* declaration does produce the same output
on IE/FF.
Thanks.
Thanks you both for your kind help.
-Gian

Jan 29 '06 #6
Once upon a time *Gian* wrote:
Arne,
thanks for your kind reply.
I posted the example just a couple of minutes after my post.
You should see it know, and yes, there is a full Doctype declaration.
The different div size is very apparent.
The image is 600px, and the DIV should be 200px.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

That's what you have, but that's not a *full* doctype since the link to
the *.dtd file is missing.

BTW, please notice the link in my sig about quoting the post's you
respond to.

As many others, I normaly ignore posters who don't quote (or top post),
so this is an exeption in case you are new on usenet and I like to give
newbies a fair chance. Posting proberly according to usenet standards,
will give you more responses in the future.

--
/Arne

Now ignoring all Google Groups posters who don't quote
* From Google: http://www.safalra.com/special/googlegroupsreply/
Jan 29 '06 #7

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

Similar topics

1
5045
by: Saleh, Amgad H | last post by:
The default block size which represents the page size is 8192 defined in pg_config.h.in. I've been trying to increase that to 16384 and rebuild postgreSQL. I was able to build it and it showed 16384 in the built pg_config.h. After installation and use initdb, the pagesize is still the default 8192. Any add'l config. procedure needed.
4
8043
by: zhimin | last post by:
Hi, I'm writing a program to send large file(100m) through dotnet using TCPListener & TCPClient, I'm sending the file with a ask and response loop: 1. Client send a flag 1 to server indicate it has data send to server. 2. Client send the buffer block size. 3. Client send the actual buffer to the server. 4. Server send a flag 1 to client...
6
2922
by: Andreas Klemt | last post by:
Hello, when I use <asp:label font-size="16px" text="Hello World" runat="server" /> and run FireFox Browser the output of "Hello World" is not in Size 16px. The size will be ignored and I can not find it in the HTML Source Code. Why is it a problem with FireFox and what is the solution how to set sizes in Labels?
14
2739
by: googler | last post by:
Is there any C library function that returns the size of a given file? Otherwise, is there a way in which file size can be determined in a C program? I need to get this for both Linux and Windows platforms, so a generic solution is what I am looking for. Thanks for your help.
2
4633
by: Hymer | last post by:
Hello, I have a footer at the end of each article in my blog at http://www.usernomics.com/news/user-interface-design-news.html . The footer looks perfect in IE but has smaller text in Firefox and Opera. For some reason, the CSS does not seem to be controlling the font size. The CSS and HTML are below. Does anyone know how I can get the...
5
10094
by: eholz1 | last post by:
Hello , I have a web page that has a div element, with css applied to that element. Within the div is an ul with li tags, etc. the displayed font size in IE is larger than the the font size in firefox. Needless to say the code for the page in question is the same. I would like to font size to be the same for both browsers.
1
2386
by: ppuniversal | last post by:
Hello, I am making a DES encryption/decryption program using OpenSSL library. I am using function des_ecb_encrypt(des_cblock *input, des_cblock *output, des_cblock *keysched, int mode); This function can encrypt/decrypt only 8bytes block at a time. Thus takes a lot of time during encryption/decryption. Please tell, if there is any...
0
1294
by: devil81 | last post by:
Hi: I would be extremely grateful if you could help me with what is quickly becoming a rather annoying code issue. I have coded a recursive emulation of ls -l and am completely stuck on coding the total blocksize for the files in each directory, I can calculate the total block sizes for every file in every directory using Blocks= Blocks +...
1
1816
by: ridd77 | last post by:
Why is the estimation byte size different than the actual size backup?
0
7637
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
7558
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...
0
7851
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. ...
0
8072
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...
1
5462
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
5177
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...
0
3591
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2055
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
0
884
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...

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.