Be a Supporter!

Need Html Help Please!

  • 389 Views
  • 6 Replies
New Topic Respond to this Topic
flashmenow-kthx
flashmenow-kthx
  • Member since: Apr. 17, 2006
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Need Html Help Please! 2007-10-15 14:38:21 Reply

Everyone, I'm having a little HTML problem. On a web site that i'm doing, I have a table and i want the table to be "attached" to the top of the page. I'm getting a little space between the table and the top of the page...what I'd like is for it to look attached. You can see on myspace.com for example where the top of the page is blue and it touches the top of the page. I can't get that to happen, I get a little spacing and I'd like to get rid of that. Help? any would be great, thanks a lot!

flashmenow-kthx
flashmenow-kthx
  • Member since: Apr. 17, 2006
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Need Html Help Please! 2007-10-15 14:39:21 Reply

oh you can also see it on this page. the top NG logo touches the top of the page. help anyone? thanks a lot!

Jessii
Jessii
  • Member since: Feb. 10, 2005
  • Offline.
Forum Stats
Member
Level 36
Movie Buff
Response to Need Html Help Please! 2007-10-15 14:58:58 Reply

Are you using css at all? If you are, you can add table {margin: 0;} and it should align the table to the top of the page. You can also put the table in a div element and align it that way as well.

flashmenow-kthx
flashmenow-kthx
  • Member since: Apr. 17, 2006
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Need Html Help Please! 2007-10-15 17:43:14 Reply

At 10/15/07 02:58 PM, Jessii wrote: Are you using css at all? If you are, you can add table {margin: 0;} and it should align the table to the top of the page. You can also put the table in a div element and align it that way as well.

No, i'm not using css. i guess i could, but is there any way to do it using regular HTML? Thanks though, i'm glad someone at least knows what i mean

Jessii
Jessii
  • Member since: Feb. 10, 2005
  • Offline.
Forum Stats
Member
Level 36
Movie Buff
Response to Need Html Help Please! 2007-10-15 18:29:00 Reply

I don't use tables and never really have because they make loading times longer. I think that you can probably add margin="0" to the table tags but not sure.

But I would recommend that you put the table in a <div> and set the margin to 0 that way.

Use http://www.w3schools.com for a reference if you need it.

That-Is-Bull
That-Is-Bull
  • Member since: Apr. 29, 2004
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to Need Html Help Please! 2007-10-15 18:34:35 Reply

<body marginheight="0">

BBS Signature
different
different
  • Member since: Jul. 8, 2004
  • Offline.
Forum Stats
Member
Level 35
Blank Slate
Response to Need Html Help Please! 2007-10-15 21:01:31 Reply

Eek, you don't need to use wrapper divs... CSS negates the need for such kludgy 'fixes'. You can easily remove the margin on the body, or alternately, position the table flush with the top of the browser window with absolute positioning.

And HTML is not a presentational language, and was never initially designed that way. More power and control can be achieved with CSS (that's why it's widely used). In addition, there are certain things that HTML alone cannot achieve. This is the beauty of an external stylesheet.


> twitter.