Spacing on pictures on framed part of page??????

Spacing on pictures on framed part of page??????

am 03.06.2007 15:59:27 von chrisdude911

Hey guys
I am having a problem with frames on my site

On http://www.chriswillisdude.pwp.blueyonder.co.uk/

you can see that there is a gap on the top part of the page between
the egde of the page and the pictures
is there a way to fix this?

This is my code:








Thanks
Chris

Re: Spacing on pictures on framed part of page??????

am 03.06.2007 16:07:59 von lws4art

chrisdude911 wrote:
> Hey guys
> I am having a problem with frames on my site
>
> On http://www.chriswillisdude.pwp.blueyonder.co.uk/
>
> you can see that there is a gap on the top part of the page between
> the egde of the page and the pictures
> is there a way to fix this?

Fix your markup which is not valid
>
> This is my code:
>
>
>
>
>
>

IMG is a inline element and should be contained in a block element

>
The closing tag of your body element is malformed, should be ''

>



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: Spacing on pictures on framed part of page??????

am 03.06.2007 16:19:51 von chrisdude911

I am new to this
Would you mind explains waht a "block element" and an "inline element"
mean?
Thanks
Chris

Re: Spacing on pictures on framed part of page??????

am 03.06.2007 16:33:45 von chrisdude911











is that right
because that still didnt fix it

thanks
chris

Re: Spacing on pictures on framed part of page??????

am 03.06.2007 16:59:58 von Ben C

On 2007-06-03, chrisdude911 wrote:
>
>
>
>
>


>
>


>
>
>
> is that right
> because that still didnt fix it

is a block-level element, but so is . The

is not
necessary; as far as I can see there's nothing wrong with putting
directly inside body.

The gap is just the default margin on body. If you don't want the gap,
add body { margin: 0; } to the styles or write .

Re: Spacing on pictures on framed part of page??????

am 03.06.2007 17:08:17 von chrisdude911

Thanks
That has worked!!

Chris

Re: Spacing on pictures on framed part of page??????

am 03.06.2007 18:25:15 von royarneskar

On 3 Jun, 16:19, chrisdude911 wrote:
> I am new to this
> Would you mind explains waht a "block element" and an "inline element"
> mean?

The body element can only contain block elements or inline (text
level) elements. If you're using a HTML 4.01 Strict DOCTYPE you
should put the img element in an block element, because this DOCTYPE
only allows block elements directly inside the body element.



http://www.w3.org/TR/html401/struct/global.html#edef-BODY

Block elements is defined as

"P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">

http://www.w3.org/TR/html401/sgml/dtd.html#block

Inline elements is defined as

%formctrl;">

http://www.w3.org/TR/html401/sgml/dtd.html#inline

INS and DEL is either block or inline, depending on the context.

Inline elements can only contain text or other inline elements. Block
level elements can, depending on the element, contain inline elements
and text; block elements, or a mix of those elements.

Beside block and inline elements, you can also use script elements
inside the body element.