Submit Your Article Forum Rules

Results 1 to 7 of 7

Thread: I should be embarrassed to ask this...

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Posts
    18

    I should be embarrassed to ask this...

    I am working on this table. But I do not want a space under line.jpg and/or under the second </td>
    Is there any way to stop the </h2> from creating a space?


    Code:
    <table width=900 border=0 >
    <tr>
    <td width=100>[img][/img]</td>
    <td width=550><center>
    <h1><font face="times new roman" color="#2e8b57">Barn style 
    storage shed plans.[img][/img]</font></h1>
    <h2><font face="times new roman">Accent your yard, store your equipment in a
    
     barn style storage shed from our storage shed plans.</h2></td>
    <td width=150 valign="center"><h4>All shed plans 15.00. Downloadable.</font></h4></td>
    <td width=100></td>
    </tr></table>
    ~~~~ ** ~~~~
    trying hard to figure out this
    website stuff. Everytime I think I
    start to understand, someone changes
    the rules......smile.
    www.shedplans.com

  2. #2
    Senior Member Dragonsi's Avatar
    Join Date
    Dec 2003
    Posts
    343
    This might not be a great deal of help, but I think the answer lies within CSS.

    By defining CSS values, you can set the line spacing on <h1> (or other) tags (just like format styles in Word).

    You will need a good modern web editor like DreamWeaver MX or above to do this without programing knowledge.

    I'm not 100% certain of the actual CSS code, but at least you now know where to start looking.
    www.westwalesweb.com
    Website development & ICT solutions.

  3. #3
    try this

    <h2 style="margin: 0px;"> Accent your yard, store your equipment in a

    barn style storage shed from our storage shed plans.</h2>

    There are lot more free web editors available. Why not try it?
    just a suggestion.

  4. #4
    Junior Member
    Join Date
    Jul 2004
    Posts
    4
    Heading tags automatically create spaces under them. You could use CSS like vivekar suggested, but you could always change the H2 to something like <font size=3>Your title here</font> to remove the space.

    Good luck :)

  5. #5
    Font tags are deprecated.
    mismatch between <font> </font> is a major problem for browsers to correctly render the html.
    the solution i gave above is only a stop-gap one.

    Come aboard to CSS.

  6. #6
    WebProWorld MVP ronniethedodger's Avatar
    Join Date
    Aug 2003
    Posts
    1,402
    Deprecated does not mean Obsolete. Font tags will be around for a long time...and if used properly, their should not be any problems. Margins on the other hand render differently in different browsers ... but in this case, it would be an improvement over the other alternatives.

    But one flaw I see in his layout has some serious consequences when the page gets spidered. It is going to read those tags in order .... H1 then H2 then H4 without any content between them. It could be percieved as spamming and may do you harm.

    Use the Lynx browser to view your pages with and see how the page flows. Then correct it so it reads in the proper order.

  7. #7
    Member
    Join Date
    Mar 2004
    Posts
    72
    I'd too recommend going the CSS route.

    However, to do it in a table, make an extra row under your line.jpg image, and size it so the new row butts up to the underside of your image. The h2 tag won't space through a cell.

Similar Threads

  1. Embarrassed about your TYPOS on WPW?
    By Linda Buquet in forum WebProWorld: Guidelines/Announcements/Suggestions
    Replies: 4
    Last Post: 07-20-2004, 01:53 PM

Posting Permissions

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