Results 1 to 10 of 10
-
04-17-2004, 03:32 PM #1Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
doctype causes padding on tables?
Alright, here's my problem.
When viewing the following page on mozilla firebird, on windows xp, on a saturday afternoon, there is a small gap between the header, and the side navigation. You can see this by looking at the following page: http://dev.fsckme.net/oxiserve/index.htm .
When you view it using internet explorer, it looks just fine, absolutely no problems, functions just fine.
BUt, when you view it using mozilla firebird, there is a small gap between the header and the side navigation.
I found that if i comment out the doctype line, which includes the following, that the padding doesn't exist on that line.
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
http://dev.fsckme.net/oxiserve/index.htm - no comments
http://dev.fsckme.net/oxiserve/nodoc.htm - with comments around doctype .
Do any of you have a solution where the doctype line can be uncommented, and there wil be no gap?
Thanks
love,
ub3r
-
04-17-2004, 03:35 PM #2Hmmm....
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,341
have you tried adding a style to the table?
<td style="padding-left: 0px; padding-top: 0px; padding-bottom: 0px; padding-right: 0px;">
It may work, cant hurt to try███ ServeYourSite
███ Web hosting done right
███ Shared, Reseller and Dedicated web hosting
███ An Easy Web Presence Company
-
04-17-2004, 03:38 PM #3Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
i'm already using css, which the style="" attribute uses.
-
04-17-2004, 03:42 PM #4Hmmm....
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,341
Correct me if I'm wrong, but by CSS do you mean you're including a style?
███ ServeYourSite
███ Web hosting done right
███ Shared, Reseller and Dedicated web hosting
███ An Easy Web Presence Company
-
04-17-2004, 03:47 PM #5Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
yes..........................
-
04-17-2004, 03:50 PM #6Hmmm....
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,341
Right unless you specified it for td in the stylesheet it won't detect it.
If you have, set your body tag to the following
<body margin-left=0 margin-right=0 margin-top=0 margin-bottom=0>
It doesn't seem you have that set.███ ServeYourSite
███ Web hosting done right
███ Shared, Reseller and Dedicated web hosting
███ An Easy Web Presence Company
-
04-17-2004, 04:03 PM #7Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
BODY{ margin: 0px;}
my style sheet is located here, it contains all styling attributes.
http://dev.fsckme.net/oxiserve/s/def.css .
-
04-17-2004, 04:06 PM #8Hmmm....
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,341
Where it says Body {style here
Try
Body, TD {style here███ ServeYourSite
███ Web hosting done right
███ Shared, Reseller and Dedicated web hosting
███ An Easy Web Presence Company
-
04-17-2004, 04:17 PM #9Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
dude.. stop throwing out guesses. It's obvious you don't know css, or what the problem is.
The problem is not margins on the body tag, is that were the problem there would be a border around the entire page, as you can see the graphics in the header are right along the border of the page, with absolutely no space between the two.
The problem is not the TD element in the style sheet, if you knew how to read source code, you would see that i am using the id="" attribute in my html so that styling attributes are pulled from the style sheet.
i don't want to be rude, but i don't like having to correct people over and over again.
-
04-17-2004, 04:19 PM #10Hmmm....
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,341
Sorry it's hard to figure out with only IE Good luck
███ ServeYourSite
███ Web hosting done right
███ Shared, Reseller and Dedicated web hosting
███ An Easy Web Presence Company