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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

blockquote without space

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am listing a Table Of Contents, so there are many levels of indent. I use blockquote, but in Internet Explorer it creates a large space between one line and the next. In Netscape there is no space between one line and another. Any ideas how to solve this problem?

Thanks
 
Try this. The stylesheet sets the blockquote to a 0 margin-top and does what you need it to do. The second part of the code shows what might be a better way to display a table of contents.

Hope it helps,
Rob

Code:
<html>
<head>
<style type=&quot;text/css&quot;>
 blockquote{margin-top:0}
</style>
</head>
<body>
<blockquote>
 Here is an example
 <blockquote>
 of a blockquote tag
  <blockquote>
  for a TOC
  </blockquote>
 </blockquote>
</blockquote>
<br>
<br>
<ol>TOC
 <li type=A>Item 1
 <li type=A>Item 2
 <ol>
  <li type=a>Item 2a
  <li type=a>Item 2b
   <ol>
    <li type=i>Item 2b 1
    <li type=i>Item 2b 2
   </ol>
 </ol>
 <li type=A>Item 3
</ol>
</body>
</html>
[sig][/sig]
 

Thanks

The bullets work ok, but it would be better not to use them. The stylesheet doesnt work with Netscape though.
 
Yeah, but it works OK in Netscape anyway. NN will ignore any style-sheet info it doesn't understand so it would be safe to include it so IE will work correctly.

Rob [sig][/sig]
 

whoops-I made a mistake, the space appears in both Netscape and IE. I put the lines in a table which worked for Netscape but not IE. I tried it with this

<style type=&quot;text/css&quot;>
Table{margin-top:0}
</style>

but it didnt work.
 
Hmmm. You are probably using a 4.0 NN browser. The above example works fine with NN 6 (which does indeed utilize the margin-top statement to remove the line). I'm sure there is a way to do this in NN 4. If I come across it I will reply back to this message (If you find it first let me know).

[sig]<p>Rob<br><a href=mailto:robschultz@yahoo.com>robschultz@yahoo.com</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
"Focus on the solution to the problem,<br>
not the obstacles in the way."<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top