Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extra space caused by cfquery in IE

Status
Not open for further replies.

theotrain

Programmer
Mar 5, 2003
150
0
0
MX
i have an cfm page that displays content flush to the top of the browser window, as i intended. BUT when i add cfqueries to the page i get a space between the top of the browser and my content ONLY in Explorer.

the only way i dont get the space in IE is to put the queries at the bottom of the page (or remove them), but then i get errors because i need that data.

the code is like this:

[tt]
<cfquery name="getPrices" datasource="#dsname#" dbtype="odbc">
SELECT * FROM pricing
</cfquery>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>something</title>
<link rel="stylesheet" type="text/css" href="style.css">
<body>
<cfinclude template="header_not_index.cfm">
<div id="content-space">
<div id="content-box2">
<div id="content-left">
....
</div>
[/tt]
etc....

so you can see the query is before everything. but wherever i move it i get a space. even if i put it after the body tag!

it makes no sense to me, but if i take the queries out, the extra space goes away. anyone ever experience this or have a suggestion?

thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top