Simple Stupid

Discussion in 'HTML' started by Chris Slowe, Sep 3, 2007.

  1. Chris Slowe

    Chris Slowe Guest

    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
     
    Chris Slowe, Sep 3, 2007
    #1
    1. Advertising

  2. Chris Slowe

    dorayme Guest

    In article
    <>,
    Chris Slowe <> 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 <img...>? And best not to use pt sizes for fonts.
    And, use 4.01 Strict to keep you disciplined.

    --
    dorayme
     
    dorayme, Sep 3, 2007
    #2
    1. Advertising

  3. Chris Slowe

    Chris Slowe Guest

    On Sep 3, 10:48 pm, dorayme <> wrote:
    > In article
    > <>,
    > Chris Slowe <> 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 <img...>? 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 <img> 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
     
    Chris Slowe, Sep 3, 2007
    #3
  4. Chris Slowe

    dorayme Guest

    In article
    <>,
    Chris Slowe <> wrote:

    > On Sep 3, 10:48 pm, dorayme <> wrote:
    > > In article
    > > <>,
    > > Chris Slowe <> 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 <img...>? 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 <img> 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
     
    dorayme, Sep 4, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gajo

    Stupid (yet simple) error

    gajo, Nov 10, 2003, in forum: Java
    Replies:
    4
    Views:
    301
    Chris Smith
    Nov 24, 2003
  2. Ryan Waye

    Simple & Stupid C++ question

    Ryan Waye, Jun 23, 2004, in forum: C++
    Replies:
    5
    Views:
    499
    AngleWyrm
    Jun 23, 2004
  3. Brandon McCombs
    Replies:
    4
    Views:
    534
    Richard Wheeldon
    Aug 28, 2006
  4. Tony K

    Stupid yet simple yes/no question.

    Tony K, Apr 25, 2007, in forum: ASP .Net
    Replies:
    7
    Views:
    616
  5. rincewind

    stupid, STUPID question!

    rincewind, Apr 19, 2009, in forum: HTML
    Replies:
    25
    Views:
    1,055
Loading...

Share This Page