www.webdeveloper.com
Results 1 to 2 of 2

Thread: Gap between lines

  1. #1
    Join Date
    Apr 2006
    Posts
    24

    Gap between lines

    Hi

    When I have the following code to use different styles for each text it creats a massive gap (at least a line) between the two words. How do I remove this gap so the text is directly below each other while still keeping the corect styles?

    Code:
    <p class="style6">Invoice number</p>      
    <p align="center" class="style9">Customs</p>
    Thanks, Mark

  2. #2
    Join Date
    Oct 2006
    Location
    Lancashire, UK
    Posts
    281
    put this in the head:
    HTML Code:
    <style type="text/css">
    <!--
    p{
    margin:0;
    padding:0;
    }
    -->
    </style>
    that might give too small a gap. change the 0's to 1px, 2px etc to see what kind of padding you want. I did a description of this somewhere yesterday, i will look for it for you...

    EDIT: here you go http://www.webdeveloper.com/forum/sh...078#post655078
    Last edited by abz; 10-22-2006 at 11:09 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles