homepage Welcome to WebmasterWorld Guest from 54.225.1.70
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
Firefox DIV Issues
Firefox DIV Issues
Skim_Milk




msg:1589750
 6:28 pm on Aug 11, 2004 (gmt 0)

For some reason, when I create a new page and insert a div tag, firefox automatically puts space between that div and the rest of the page. The DIV has images in it and I tried using display block for my IMG tags, but it did not resolve the issue, anythoughts?

Thanks,
Nick

Here is some code to munch on. Am I using the right doctype?


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div>
<h2>Some Heading</h2>
<p>Some text...</p>
<h2>Color-Coded Ledger Look-Up</h2>
<p><a href="images/ledgerLookupBig.jpg" target="_blank"><img src="images/ledgerLookup.jpg" width="265" height="173" border="0" align="right" class="content" alt="Alt Test"></a>DSome text...</p>
<h2>Some heading</h2>
<p>Some text...</p>
<ul>
<li>List...</li>
<li>List...</li>
</ul>
<h2>Some heading</h2>
<p>Some text...</p>
<h2>Some heading</h2>
<p>Some text...</p>
</div>
</body>
</html>

[edited by: BlobFisk at 7:43 pm (utc) on Aug. 11, 2004]
[edit reason] Removed specifics [/edit]

 

RFranzen




msg:1589751
 8:20 pm on Aug 11, 2004 (gmt 0)

Nick,

I don't see any problem. On my Windows 2000 machine, Firefox 0.9.3 and IE 6.0 are rendering the HTML code in the same manner.

-- Rich

Skim_Milk




msg:1589752
 8:51 pm on Aug 11, 2004 (gmt 0)

Hmmmm, interesting. Perhaps it is my machine. Thanks for the help.

Nick

encyclo




msg:1589753
 9:07 pm on Aug 11, 2004 (gmt 0)

Am I using the right doctype?

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

It might not be anything to do with your problem, but you are definitely not using the right doctype. The above is a mix between Transitional and Strict.

The correct doctypes are:

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

For HTML 4.01 Strict, and:

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

For HTML 4.01 Transitional.

If you're not sure which one you are supposed to use, then choose the second one!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved