Help with Border

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
How come when I use the following code there is still some space around my
picture?  I need for my picture to touch the edges. (and, no, I don't want
to just change my background image).

Please help!

<body style="border:0px;border-collapse:collapse;" cellpadding="0"
<img src="pic1.jpg" style="border:0px;border-collapse:collapse;"
cellpadding="0" cellspacing="0">

Re: Help with Border

Gazing into my crystal ball I observed "Keith Smith"

Quoted text here. Click to load it

You are using table markup for body and image elements.  What you want is:

<body style="margin:0">
<img src="pic1.jpg" style="border:0">

Of course, it would be better to put this in an external stylesheet, eg:

body {margin:0; padding:0 /*For Opera and others*/}

Also, put a DocType at the top of the page, HTML 4.01 Strict should be used
for new pages.

Adrienne Boswell
Please respond to the group so others can share

Re: Help with Border

Quoted text here. Click to load it

It worked great!  But how do I do the doc-type part?

Re: Help with Border

Quoted text here. Click to load it

See this great article at A List Apart: /

I recommend that you bookmark that site and spend some time looking around
(and reading it!) it contains some absolute gems!

Gareth J M Saunders
Edinburgh, UK

Re: Help with Border

On Tue, 10 May 2005 18:11:30 +0000, Keith Smith wrote:

Quoted text here. Click to load it /

Site Timeline