473,378 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

gap between table and edge of page

On this page:http://reenie.org/test/testmargin.php
There is a gap between the table cell and the edge of the page. How do
I get rid of it ?

<html cellpadding='0' cellspacing='0' border='0'>
<head>
<style>
body{ margin:0; padding:0 }
..oc{border:solid 1px; margin:0;}
</style>
</head>
<body marginheight="0" topmargin="0" vspace="0" marginwidth="0"
leftmargin="0" hspace="0" style="">
<table><tr><td class='oc'>
TESTING</td>
</td></tr></table></body></html>

Jul 21 '05 #1
5 10385
gr*****@reenie.org wrote:
On this page:http://reenie.org/test/testmargin.php
There is a gap between the table cell and the edge of the page. How do
I get rid of it ?

So little code, so many errors. See
<http://validator.w3.org/check?verbose=1&uri=http%3A//reenie.org/test/testmargin.php>

Error highlights:
- No DOCTYPE
- All of the attributes for <html> are invalid.
- Missing "type" for <style>
- Almost of the attributes in <body> are invalid.
- Spurious </td>

To answer your question: Learn HTML.
Then set the margin and padding to zero for the <table> element.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #2
Jim Moe wrote:
gr*****@reenie.org wrote:
On this page:http://reenie.org/test/testmargin.php
There is a gap between the table cell and the edge of the page. How do
I get rid of it ?

So little code, so many errors. See
<http://validator.w3.org/check?verbose=1&uri=http%3A//reenie.org/test/testmargin.php>
Error highlights:
- No DOCTYPE
- All of the attributes for <html> are invalid.
- Missing "type" for <style>
- Almost of the attributes in <body> are invalid.
- Spurious </td>

To answer your question: Learn HTML.
Then set the margin and padding to zero for the <table> element.

Thanks for the suggestions. <table cellspacing=0> seems to do the trick.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><title>test</title>
<style type='text/css'>
body{margin:0;}
..oc{border:solid 1px; margin:0;}
..tc{margin:0; padding:0;}
</style>
</head>
<body>
<table cellspacing=0 >
<tr>
<td class='oc'>TESTING</td>
</tr>
</table>
</body>
</html>
Jul 21 '05 #3
In article <yy********************@fe02.news.easynews.com>,
meltedown <gr*****@reenie.org> wrote:
Jim Moe wrote:
gr*****@reenie.org wrote:
On this page:http://reenie.org/test/testmargin.php
There is a gap between the table cell and the edge of the page. How do
I get rid of it ?

So little code, so many errors. See
<http://validator.w3.org/check?verbos...rg/test/testma
rgin.php>
Error highlights:
- No DOCTYPE
- All of the attributes for <html> are invalid.
- Missing "type" for <style>
- Almost of the attributes in <body> are invalid.
- Spurious </td>

To answer your question: Learn HTML.
Then set the margin and padding to zero for the <table> element.

Thanks for the suggestions. <table cellspacing=0> seems to do the trick.


I can't fathom why. Check it in another browser. Did you correct "all"
of what Jim Moe told you was broken? Learn CSS too.

leo

--
<http://web0.greatbasin.net/~leo/
Jul 21 '05 #4
in comp.infosystems.www.authoring.stylesheets, Leonard Blaisdell wrote:
meltedown <gr*****@reenie.org> wrote:
Jim Moe wrote:
To answer your question: Learn HTML.
Then set the margin and padding to zero for the <table> element.

Thanks for the suggestions. <table cellspacing=0> seems to do the trick.


I can't fathom why. Check it in another browser. Did you correct "all"
of what Jim Moe told you was broken? Learn CSS too.


Well, Jim never said anything that would have same effect as
cellspacing=0. That would be border-spacing:0 or border-collapse:collapse
(latter works in IE too)

Off course, the from orginal piece of rubbish which might be called code,
it was hard to tell...

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera:
https://secure.bmtmicro.com/opera/bu...tml?AID=882173
Jul 21 '05 #5
meltedown wrote:

Then set the margin and padding to zero for the <table> element.

Thanks for the suggestions. <table cellspacing=0> seems to do the trick.

You are welcome.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: black tractor | last post by:
HI there.. l was just wondering, if l place a "table" in the "editable region" of my template, will the text, graphics placed inside the this "table" MOVE BY ITSELF?? l mean, recently l had a...
11
by: Andrew Jones | last post by:
Another problem! :) I'm trying to make a navigation bar with the left edge on the edge of the page - but I mean *right* on the edge of the page. 'margin-left: 0px;' doesn't seem to work, it...
7
by: NeverLift | last post by:
I posted a very long message regarding my experiences with JavaScript, one reply was posted asking I post an example of the problem -- and both are gone! Is there a moderator that removes such...
8
by: Dave Cook | last post by:
Hi I would like to create a table that uses the whole width of IE. I have set the table width to 100% and the right margin to 0 on the document but still the table is displayed about 50 pixels...
6
by: Edge | last post by:
hi all, I added a html table with 2 rows inside the itemtemplate of my gridview. It works ok, but the table border never touches the border of my gridview cell. How should I do if I want the...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
2
by: Dave Ekhaus | last post by:
hi i'm new to javascript. i'm hoping to get some help and find out if what i want to do is possible and - assuming it is, get some tips on how to accomplish the task. ok - assume i have a...
2
by: Jukka K. Korpela | last post by:
Sub titulo "Re: DIV borders different in IE7 when in td" scripsit Ben C: This seems to be the heart of the matter, and I'm trying to get a real discussion started, by moving the discussion to...
1
oranoos3000
by: oranoos3000 | last post by:
hi i have an error with enter record to table in database(mysql) structure of my table is as follow - phpMyAdmin SQL Dump -- version 2.11.6 -- http://www.phpmyadmin.net -- -- Host:...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.