Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need your help again.

    hi,
    Sorry, I posted this message at the WA forum without noticing your closing that down, anyway here's the problem..

    This is a website layout using table codes..

    <body topmargin=0 leftmargin=0 bgcolor=lightyellow><table cellspacing=0 cellpadding=0 width=30% height=100%><td bgcolor=maroon></table></body>

    Now, when I insert a heading tag between the td tag and the table tag the layout of the page changes. Why?

    <body topmargin=0 leftmargin=0 bgcolor=lightyellow><table cellspacing=0 cellpadding=0 width=30% height=100%><td bgcolor=maroon><h1>hello</h1></table></body>

    My intention is to place the heading text within the yellow part of the page without disturbing or cutting the maroon part. How can I do that? Thank you.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this....
    Code:
    <body topmargin="0" leftmargin="0" bgcolor="lightyellow">
    <table cellspacing="0" cellpadding="0" width="100%" height="100%">
    <tr><td bgcolor="maroon" width="30%">
    <br>
    </td><td width="70%">
    <h1>Hello</h1>
    </td></tr>
    </table>
    that'll do what you want it to

    I'd recommend taking a look at some HTML tutorials for tables...
    there's some decent stuff at: http://www.webmonkey.com - look under the authoring menu (right side of page) and click the tables link

    ~Quack
    Last edited by QuackHead; 06-25-2002 at 09:03 PM.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    when you make a table you shopuld follow this syntax

    <table>

    <tr> //for the new line
    <th>title</th><td>content of table</td> // for the contents of
    </tr>

    <tr>... // new lien and repeat process nesescary number of times

    that shopuld help you with your layout
    photoshop too expensive? use the GIMP! www.gimp.org

  • #4
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hey Quack!

    Hey Quack,
    I appreciate your help, but I did not like your offensive remark.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Pasture...

    I thought about that after I posted...

    Sorry about that - I didn't mean for it to be offensive, more of a joke. It probably came off as more of a discouragement than that.

    You have my appologies, and the post has been edited.

    ~Quack
    Last edited by QuackHead; 06-25-2002 at 09:04 PM.

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    Dallas, Texas
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    let's play nice!

  • #7
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Alright, let's not keep this thing going and get back on topic (which appears to have been resolved). Quackhead has apologized for the remark and provided a valid solution. In the future, let's try to keep the critisism constructive and avoid comments which could be offensive to others. Remember, this forum is for people at all levels of web development, this includes beginners, which we all were at one time. We're here to help, not humiliate .

    Move along people...nothing here to see .
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"


  •  

    Posting Permissions

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