Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How do I decrease spacing in between elements (there are no <br> codes to delete)?

Reply
Thread Tools

How do I decrease spacing in between elements (there are no <br> codes to delete)?

 
 
fitwell
Guest
Posts: n/a
 
      11-18-2003
Thanks, appreciate any help. I can't figure out how to make this more
compact in terms of losing extra space. The rest is perfectly fine so
it's just the spacing.

*******************
<HTML><HEAD><TITLE>Creating links to open URLs or launch APPS in
Filemaker Pro 6.</TITLE>
<META content="text/html; charset=windows-1252"
http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR></HEAD>
<BODY aLink=#ff9933 bgColor=#C8B89B link=#003399 text=#000000
vLink=#996633><A
name=top></A>

<font color="#804040" face="times new roman"></font>


<a name="linkTop"><center><h1><b><u>TEXT - add text with the FREE
TEXT<br>
tool in Adobe Acrobat</u></b></h1></center><br>


1.<P ALIGN="right">
<a href="#Point2">Next</a>
</P>
<center><img src="images\TEXT 01a, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


<a name="Point2">2.
<P ALIGN="right">
<a href="#linkTop">Top</a>&nbsp&nbsp
<a href="#Point3">Next</a>
</P>
<center><img src="images\TEXT 01b, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


<a name="Point3">3.
<P ALIGN="right">
<a href="#linkTop">Top</a>&nbsp&nbsp
<a href="#Point4">Next</a>
</P>
<center><img src="images\TEXT 01c, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


<a name="Point4">4.
<P ALIGN="right">
<a href="#linkTop">Top</a>&nbsp&nbsp
<a href="#Point5">Next</a>
</P>
<center><img src="images\TEXT 01d, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


<a name="Point5">5.
<P ALIGN="right">
<a href="#linkTop">Top</a>&nbsp&nbsp
<a href="#Point6">Next</a>
</P>
<center><img src="images\TEXT 01e, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


<a name="Point6">6.
<P ALIGN="right">
<a href="#linkTop">Top</a>&nbsp&nbsp
<a href="#Point7">Next</a>
</P>
<center><img src="images\TEXT 01f, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


<a name="Point7">7.
<P ALIGN="right">
<a href="#linkTop">Top</a>&nbsp&nbsp
<a href="#Point8">Next</a>
</P>
<center><img src="images\TEXT 01g, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


<a name="Point7">7.
<P ALIGN="right">
<a href="#linkTop">Top</a>&nbsp&nbsp
<a href="#Point8">Next</a>
</P>
<center><img src="images\TEXT 01g, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


<a name="Point8">8.
<P ALIGN="right">
<a href="#linkTop">Top</a>&nbsp&nbsp
<a href="#Point9">Next</a>
</P>
<center><img src="images\TEXT 01h, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


<a name="Point9">9.
<P ALIGN="right">
<a href="#linkTop">Top</a>
</P>
<center><img src="images\TEXT 01i, add text with the FREE TEXT
tool.jpg" alt=""></center>
<br><br><br>


</CENTER></BODY></HTML>

 
Reply With Quote
 
 
 
 
Robert Frost-Bridges
Guest
Posts: n/a
 
      11-18-2003
fitwell wrote:

> Thanks, appreciate any help. I can't figure out how to make this more
> compact in terms of losing extra space. The rest is perfectly fine so
> it's just the spacing.
>

[snip code]

I think you need to sit down and have a rethink about redoing the whole
page with more up to date coding. A lot of the html you are using is
now deprecated and has been superseded. Quite a bit of the code you
have there could actually be stripped out and used seperately in a css
stylesheet.

This one stylesheet can be used across the whole site to suggest such
things as font colours, alignments, positioning (including spacing).
Basically all the presentational bits of your page. You should then
find the remaining pared down html page a lot easier to manage and
update.

Have a look at Dave Raggetts pages at the w3c for an introduction:
http://www.w3.org/MarkUp/Guide/

You can read about the current specifications for html and css:
http://www.w3.org/TR/1998/REC-html40...424/cover.html
http://www.w3.org/TR/REC-CSS2/ (although css3 is coming and probably
some version of xhtml/xml but these are good for now).

and you can also check how you're doing here:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

I really think you should give it a go.
Good luck,

--
frostie
http://brightonfixedodds.net
 
Reply With Quote
 
 
 
 
fitwell
Guest
Posts: n/a
 
      11-19-2003
On Tue, 18 Nov 2003 22:33:24 +0000, Robert Frost-Bridges
<(E-Mail Removed)> wrote:

>fitwell wrote:
>
>> Thanks, appreciate any help. I can't figure out how to make this more
>> compact in terms of losing extra space. The rest is perfectly fine so
>> it's just the spacing.
>>

>[snip code]
>
>I think you need to sit down and have a rethink about redoing the whole
>page with more up to date coding. A lot of the html you are using is
>now deprecated and has been superseded. Quite a bit of the code you
>have there could actually be stripped out and used seperately in a css
>stylesheet.
>
>This one stylesheet can be used across the whole site to suggest such
>things as font colours, alignments, positioning (including spacing).
>Basically all the presentational bits of your page. You should then
>find the remaining pared down html page a lot easier to manage and
>update.
>
>Have a look at Dave Raggetts pages at the w3c for an introduction:
>http://www.w3.org/MarkUp/Guide/
>
>You can read about the current specifications for html and css:
>http://www.w3.org/TR/1998/REC-html40...424/cover.html
>http://www.w3.org/TR/REC-CSS2/ (although css3 is coming and probably
>some version of xhtml/xml but these are good for now).
>
>and you can also check how you're doing here:
>http://validator.w3.org/
>http://jigsaw.w3.org/css-validator/
>
>I really think you should give it a go.
>Good luck,


Thanks re the good luck. This is the coding I know and it's not for
webpages, just for hdd help pages I do up. I'd rather not have to get
more complicated esp. going the CSS route. It's not necessary for
this application and I don't want to take valuable time away from my
other projects to learn CSS at this time. Is there no way to fix the
spacing problem while still using this archaic coding? i.e., no way
like in WP to get the page to typeset up a line or two?

Thanks.

 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      11-19-2003

"fitwell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Tue, 18 Nov 2003 22:33:24 +0000, Robert Frost-Bridges
> <(E-Mail Removed)> wrote:
>


> >I really think you should give it a go.
> >Good luck,

>
> Thanks re the good luck. This is the coding I know and it's not for
> webpages, just for hdd help pages I do up.


You should have said that up front. It is assumed here that you are talking
about a web page.

> I'd rather not have to get
> more complicated esp. going the CSS route.


Why? 10 hours invested right now learning about CSS (and that is all it
should take) will save you hundreds of hours over the next year.

> It's not necessary for
> this application and I don't want to take valuable time away from my
> other projects to learn CSS at this time.


See above.

> Is there no way to fix the
> spacing problem while still using this archaic coding? i.e., no way
> like in WP to get the page to typeset up a line or two?


No, there is not.

If you want to change these sort of presentational things then the tool to
use is CSS. That is what it is for.

Cheers
Richard.


 
Reply With Quote
 
fitwell
Guest
Posts: n/a
 
      11-19-2003
On Wed, 19 Nov 2003 10:31:49 GMT, "rf" <(E-Mail Removed)> wrote:

>
>"fitwell" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed).. .
>> On Tue, 18 Nov 2003 22:33:24 +0000, Robert Frost-Bridges
>> <(E-Mail Removed)> wrote:
>>

>
>> >I really think you should give it a go.
>> >Good luck,

>>
>> Thanks re the good luck. This is the coding I know and it's not for
>> webpages, just for hdd help pages I do up.

>
>You should have said that up front. It is assumed here that you are talking
>about a web page.
>
>> I'd rather not have to get
>> more complicated esp. going the CSS route.

>
>Why? 10 hours invested right now learning about CSS (and that is all it
>should take) will save you hundreds of hours over the next year.
>
>> It's not necessary for
>> this application and I don't want to take valuable time away from my
>> other projects to learn CSS at this time.

>
>See above.
>
>> Is there no way to fix the
>> spacing problem while still using this archaic coding? i.e., no way
>> like in WP to get the page to typeset up a line or two?

>
>No, there is not.
>
>If you want to change these sort of presentational things then the tool to
>use is CSS. That is what it is for.
>
>Cheers
>Richard.


Richard, thanks for your opinion and we'll just leave it at that,
okay? I'm not going to belabour the point.

If _anyone_ can give constructive help on fixing the spacing problem
with the file itself, I would really _greatly_ appreciate it. If not,
pls advise what other group I can go to for the info. I have done
research here and there on my own but so much other more important
stuff to do that since I can't find, won't waste any more time. Would
be nice to do, that's all.

Thanks once again. Cheers.

 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      11-19-2003

"fitwell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Wed, 19 Nov 2003 10:31:49 GMT, "rf" <(E-Mail Removed)> wrote:
>
> >> Is there no way to fix the
> >> spacing problem while still using this archaic coding? i.e., no way
> >> like in WP to get the page to typeset up a line or two?

> >
> >No, there is not.
> >
> >If you want to change these sort of presentational things then the tool

to
> >use is CSS. That is what it is for.
> >
> >Cheers
> >Richard.

>
> Richard, thanks for your opinion and we'll just leave it at that,
> okay? I'm not going to belabour the point.
>
> If _anyone_ can give constructive help on fixing the spacing problem
> with the file itself, I would really _greatly_ appreciate it. If not,
> pls advise what other group I can go to for the info. I have done
> research here and there on my own but so much other more important
> stuff to do that since I can't find, won't waste any more time. Would
> be nice to do, that's all.


<grin>Crikey. Another wall to bang my head against...</grin>

Which bit of "No, there is not" did you fail to understand.

There is no way at all to affect the spacing between <p> element using HTML.
You MUST use CSS.

And that is not my "opinion", that is just how things are.

OK, here is the required CSS (within its standard HTML element) to eliminate
the spacing between paragraphs. Stick in your <head> element.

<script type="text/css">
p {margin: 0;}
</script>

Not hard, is it

If you want to eliminate the spacing between all elements then
* {margin: 0;}

Cheers
Richard.


 
Reply With Quote
 
Robert Frost-Bridges
Guest
Posts: n/a
 
      11-19-2003
rf wrote:


>
> OK, here is the required CSS (within its standard HTML element) to
> eliminate the spacing between paragraphs. Stick in your <head>
> element.
>
> <script type="text/css">
> p {margin: 0;}
> </script>


oops,

<style type="text/css">
p {margin: 0;}
</style>


--
frostie
http://brightonfixedodds.net
 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      11-19-2003
On Wed, 19 Nov 2003 12:28:19 GMT, "rf" <(E-Mail Removed)> wrote:

: There is no way at all to affect the spacing between <p> element using HTML.
: You MUST use CSS.
:
: And that is not my "opinion", that is just how things are.


You're quite right. If the OP cannot spare 10 hours to learn CSS,
perhaps he is a bright beginner? He'll do it in 8 perhaps....
http://www.westciv.com/style_master/...s_on_tutorial/

Sid

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
spacing display: inline elements Ivan Shmakov HTML 10 03-06-2013 08:18 PM
How to use file I/o codes with form and controls codes Allen ASP .Net 1 12-03-2007 12:04 AM
option parser: decrease distance between arg and explanation Patrick Gundlach Ruby 2 01-23-2007 03:06 PM
Virtual Key Codes, Scan Codes and ASCII Codes in C gj_williams2000@yahoo.co.uk C Programming 2 08-20-2005 11:04 AM
RegEx replace of html codes to ascii codes Greg -- ASP .Net 4 08-09-2005 07:27 PM



Advertisments