SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Non-Member
    Join Date
    Sep 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Template coding question [was "I Don't Understand!"]

    hello:

    at this site I am createing from a template this site. However.....there is this space that is going down to the bottom on the rightmargin. I cannot figure what the heck is going on here.

    here is the code, I don't see anything that could be causeing this....can anyone else.

    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><img src="images/main.jpg" width="750" height="203"></td>
    </tr>

    thanks

    PM

  2. #2
    SitePoint Wizard bronze trophy Black Max's Avatar
    Join Date
    Apr 2007
    Posts
    4,029
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Two things: one, I can't understand your code as presented, so I translated it for you:

    Code:
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
    <table width="100&#37;" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <img src="images/main.jpg" width="750" height="203">
    </td>
    </tr>
    Second, I understand that you're working with a template, so this is no reflection on you: why exactly is your template using such outmoded code and design choices? This code snippet isn't enough for me to answer your question about your problem with your right margin (others know more than me, so let's see what they say), but my question would be more about why you (or your template) isn't styling with CSS.

    My experience with coding tables is very limited, but I don't remember ever using syntax involving "rightmargin." Isn't that and its ugly brother "leftmargin" old IE-only commands that no one uses any more?

    Can you post a link, or at least the URL to the test site?


Bookmarks

Posting Permissions

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