Simple Stupid
am 03.09.2007 23:03:04 von Chris Slowe
I've know html and css pretty well but sometimes i come up against a
problem that just baffles me. and it's usually a simple one. so if
you've got a sec could you take a look here:
http://www.cafeculturel.org.uk/artobertest/
and tell me why the image isn't aligning with the top of the page.
I've tried insisting there are no page margins both in html and css,
there are no borders on the image... If you put text as the first line
in the body it's right up there at the top. If you view it in safari
it works as expected.
I mean this is basics and yet... it's been one of those days...
thanks for any help
chris
Re: Simple Stupid
am 03.09.2007 23:48:27 von dorayme
In article
<1188853384.233850.50080@o80g2000hse.googlegroups.com>,
Chris Slowe <20footduck@gmail.com> wrote:
> I've know html and css pretty well but sometimes i come up against a
> problem that just baffles me. and it's usually a simple one. so if
> you've got a sec could you take a look here:
>
> http://www.cafeculturel.org.uk/artobertest/
>
> and tell me why the image isn't aligning with the top of the page.
> I've tried insisting there are no page margins both in html and css,
> there are no borders on the image... If you put text as the first line
> in the body it's right up there at the top. If you view it in safari
> it works as expected.
>
> I mean this is basics and yet... it's been one of those days...
You could style the first para with margin-top: 0; and this would
"fix" at least for Firefox.
But really, if you know "css pretty well", what are you doing
with "align" in ? And best not to use pt sizes for fonts.
And, use 4.01 Strict to keep you disciplined.
--
dorayme
Re: Simple Stupid
am 04.09.2007 00:17:15 von Chris Slowe
On Sep 3, 10:48 pm, dorayme wrote:
> In article
> <1188853384.233850.50...@o80g2000hse.googlegroups.com>,
> Chris Slowe <20footd...@gmail.com> wrote:
>
> > I've know html and css pretty well but sometimes i come up against a
> > problem that just baffles me. and it's usually a simple one. so if
> > you've got a sec could you take a look here:
>
> >http://www.cafeculturel.org.uk/artobertest/
>
> > and tell me why the image isn't aligning with the top of the page.
> > I've tried insisting there are no page margins both in html and css,
> > there are no borders on the image... If you put text as the first line
> > in the body it's right up there at the top. If you view it in safari
> > it works as expected.
>
> > I mean this is basics and yet... it's been one of those days...
>
> You could style the first para with margin-top: 0; and this would
> "fix" at least for Firefox.
>
> But really, if you know "css pretty well", what are you doing
> with "align" in ? And best not to use pt sizes for fonts.
> And, use 4.01 Strict to keep you disciplined.
>
> --
> dorayme
OK well "pretty well" means I can usually get things to work, and
normally I'd get rid of any depreciated stuff but this was rough and
ready. as it happens firefox didn't like the align in the tag
and that's what was causing the problem. doens't help using an ancient
version of golive to knock up these rough and ready things...
thanks,
c
Re: Simple Stupid
am 04.09.2007 01:07:03 von dorayme
In article
<1188857835.474420.233100@22g2000hsm.googlegroups.com>,
Chris Slowe <20footduck@gmail.com> wrote:
> On Sep 3, 10:48 pm, dorayme wrote:
> > In article
> > <1188853384.233850.50...@o80g2000hse.googlegroups.com>,
> > Chris Slowe <20footd...@gmail.com> wrote:
> >
> > >http://www.cafeculturel.org.uk/artobertest/
> >
> > > and tell me why the image isn't aligning with the top of the page.
> >
> > You could style the first para with margin-top: 0; and this would
> > "fix" at least for Firefox.
> >
> > But really, if you know "css pretty well", what are you doing
> > with "align" in ? And best not to use pt sizes for fonts.
> > And, use 4.01 Strict to keep you disciplined.
> >
> OK well "pretty well" means I can usually get things to work, and
> normally I'd get rid of any depreciated stuff but this was rough and
> ready. as it happens firefox didn't like the align in the tag
> and that's what was causing the problem. doens't help using an ancient
> version of golive to knock up these rough and ready things...
btw, I mean px rather pt. Use % or em for font-size.
--
dorayme