Solved

window.open() method formatting issues

Posted on 2011-09-06
2
164 Views
Last Modified: 2012-05-12
I’m using the JavaScript open() method to open a window. But I’m having some formatting issues with the content in the window. Can you please open the “TestHome” file (attached) with a browser? On that page is a link which, when clicked opens the window ("Test" - also attached) that has the issue. I specifically have 3 issues:

1)When the window opens some of the content is scrunched together so that some lines are overlapping each other. This goes away when the window is expanded, but is it possible to prevent them from overlapping each other from the get-go?
2) Even when the window is maximized, the first item still scrolls off the page. I don’t want that. I want to set how far to the right it can go. I tried using the “margin-right” property but that didn’t work.
3) The second item is not flush with the first item. This must be because the second item has no time. But that shouldn’t matter, right? This is CSS. Both items have the same rule, so shouldn't they still be flush?
TestHome.htm
Test.htm
0
Comment
Question by:john8217
2 Comments
 
LVL 22

Accepted Solution

by:
plusone3055 earned 125 total points
ID: 36490592
Sometimes its best to leave CSS out of it


TestHome.htm
Test.htm
0
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 125 total points
ID: 36490601
make this changes to test.htm
<html>

<head>
<title></title>
<style type="text/css">
.firstindent
{
   margin-left:5%;
}
.secondindent
{
   margin-left:5%;
}
</style>
</head>

<body>

	<p align="center"><u>Tuesday, August 9, 2011</u></p>
	<br>

	<p>10:00 A.M.
	<br>
		<span class="firstindent">FIC 2008-487</span>
		<span class="secondindent">John Doe1 v. John Doe2, Mayor, City of whatever; Field, Chief, Fire Department, City of whatever; so-and-so, City Planner, City of whatever; xxxxxxxxx, Chief, Police Department, City 
		of whatever; xxxxxxxx, Assistant City Engineer, City of whatever; xxxxxxxx, Building Official, City of whatever; so-and-so, Zoning and Inland Wetlands Enforcement Officer, City of whatever; and City of whatever</span>
	</p><br>

	<p>
		<span class="firstindent">FIC 2011-015</span>
		<span class="secondindent">John Doe1 v. John Doe2, Chief, Police Department, City of whatever; and Police Department, City of whatever</span>
	</p>

</body>

</html>

Open in new window

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now