SitePoint Sponsor |
|
User Tag List
Results 1 to 14 of 14
Thread: I need help with tables...
-
Jan 31, 2009, 09:43 #1
- Join Date
- Jul 2007
- Location
- New York
- Posts
- 44
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I need help with tables...
First off I suck at coding so bear with me. I'm trying to make a personal site that is organized with HTML tables. I basically have a main header table, then a body with a menu on the left and content on the right.
Problem #1: Gap
For some reason there is a 9px gap between the top of my top table and top of the browser. I want it to touch the top, what's wrong?
Problem #2: Table Height/Footer
I'm going to have a small 20px or so footer with the copywrite. I want this to always be on the bottom of course and have the menu and body tables automatically extend to the top of the footer. What would be the best way of doing this?
-
Jan 31, 2009, 12:57 #2
1. If you position your table absolutely and style it with "top:0px", that should do the trick
2. The very last row of your table should be the footer. With the colspan property you should be able to make that field span across the entire bottom (if you have 3 colums in your table, then colspan=3....)
-
Feb 1, 2009, 10:53 #3
- Join Date
- May 2007
- Location
- Countryside, Sweden
- Posts
- 3,407
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problem #1: Gap
Reset with:
Code:html, body { margin: 0; padding: 0; }
Happy ADD/ADHD with Asperger's
-
Feb 1, 2009, 19:11 #4
- Join Date
- Oct 2008
- Location
- Whiteford, Maryland, United States
- Posts
- 13,782
- Mentioned
- 16 Post(s)
- Tagged
- 0 Thread(s)
Hi
If you want to reset ALL margins/paddings for every element (including forms) then do
*{margin:0;padding:0;}.
As for the footer, why not just have a row for that and set the height for 20px?
Cheers.Last edited by RyanReese; Feb 1, 2009 at 20:01.
Always looking for web design/development work.
http://www.CodeFundamentals.com
-
Feb 1, 2009, 19:48 #5
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
-
Feb 1, 2009, 20:01 #6
- Join Date
- Oct 2008
- Location
- Whiteford, Maryland, United States
- Posts
- 13,782
- Mentioned
- 16 Post(s)
- Tagged
- 0 Thread(s)
I think I'm thinking about the wrong thing right now. Ignore that.
Always looking for web design/development work.
http://www.CodeFundamentals.com
-
Feb 1, 2009, 20:08 #7
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
please don't go back and edit out stuff you said that somebody replies to
besides, it's still there for everybody to see in the quote in my post, so there's not much point
-
Feb 1, 2009, 20:09 #8
- Join Date
- Oct 2008
- Location
- Whiteford, Maryland, United States
- Posts
- 13,782
- Mentioned
- 16 Post(s)
- Tagged
- 0 Thread(s)
I acknowledged I posted it so I see no reason why I can't go back and edit my posts.
Always looking for web design/development work.
http://www.CodeFundamentals.com
-
Feb 1, 2009, 20:14 #9
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
there is a reason, a good reason -- it just isn't done
no, it's not specifically prohibited by our FAQ, and yes, the edit facility is available
but it's just not cricket, old man, especially after someone quotes you
after that, you can't unsay it, so it becomes unseemly to try to cover your tracks
the time spent editing is better spent planning what you post before you post it
-
Feb 1, 2009, 20:18 #10
- Join Date
- Oct 2008
- Location
- Whiteford, Maryland, United States
- Posts
- 13,782
- Mentioned
- 16 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by r937
Always looking for web design/development work.
http://www.CodeFundamentals.com
-
Feb 1, 2009, 20:22 #11
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
-
Feb 1, 2009, 20:24 #12
- Join Date
- Oct 2008
- Location
- Whiteford, Maryland, United States
- Posts
- 13,782
- Mentioned
- 16 Post(s)
- Tagged
- 0 Thread(s)
Which wasn't necessary as I was already like an unmessed with border.
Always looking for web design/development work.
http://www.CodeFundamentals.com
-
Feb 1, 2009, 20:28 #13
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
.ryanreese { border:0 }
-
Feb 1, 2009, 20:29 #14
- Join Date
- Oct 2008
- Location
- Whiteford, Maryland, United States
- Posts
- 13,782
- Mentioned
- 16 Post(s)
- Tagged
- 0 Thread(s)
.ryanreese{border:1px solid black !important;}
Always looking for web design/development work.
http://www.CodeFundamentals.com
Bookmarks