CSS and header image implimentation.

Discussion in 'HTML' started by Tj, Jun 16, 2004.

  1. Tj

    Tj Guest

    What would be the proper way to insert a full width header image into a
    xhtml/css page?
    Are there rights/wrongs or pros/cons to the following options:

    1. Using css to insert it as a background image of the header div.
    2. Placing it in the xhtml with an img tag between div's.

    Also, please advise if you know of more appropriate NG's or Forums for css
    queries.


    Cheers,
    Tj
    Tj, Jun 16, 2004
    #1
    1. Advertising

  2. Tj wrote:

    > What would be the proper way to insert a full width header image into a
    > xhtml/css page?


    > 1. Using css to insert it as a background image of the header div.


    Is it entirely decorative?

    > 2. Placing it in the xhtml with an img tag between div's.


    Does it contain content?


    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Jun 16, 2004
    #2
    1. Advertising

  3. Tj

    Tj Guest

    "David Dorward" <> wrote in message
    news:caqgr0$cil$1$...
    > Tj wrote:
    >
    > > What would be the proper way to insert a full width header image into a
    > > xhtml/css page?

    >
    > > 1. Using css to insert it as a background image of the header div.

    >
    > Is it entirely decorative?
    >
    > > 2. Placing it in the xhtml with an img tag between div's.

    >
    > Does it contain content?
    >
    >
    > --
    > David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    > Home is where the ~/.bashrc is



    Hi David.

    Nope. No content other than the image. The div's directly below it will
    contain nav, etc.
    Tj, Jun 17, 2004
    #3
  4. Tj

    Mitja Guest

    Tj <>
    (news:) wrote:
    > "David Dorward" <> wrote in message
    > news:caqgr0$cil$1$...
    >> Tj wrote:
    >>
    >>> What would be the proper way to insert a full width header image
    >>> into a xhtml/css page?

    >>
    >>> 1. Using css to insert it as a background image of the header div.

    >>
    >> Is it entirely decorative?
    >>
    >>> 2. Placing it in the xhtml with an img tag between div's.

    >>
    >> Does it contain content?

    >
    >
    > Nope. No content other than the image. The div's directly below it
    > will contain nav, etc.


    What David meant with the questions was: If it's just some fancy decoration,
    say a picture of a flower, then the background option is OK, since those
    with images disabled won't miss anything. If it contains info (text,
    probably), then an <img> tag with alt attribute is a better solution.
    Mitja, Jun 17, 2004
    #4
  5. Tj

    Tj Guest

    "Mitja" <> wrote in message
    news:dfeAc.5025$...

    <snip>
    > >
    > >
    > > Nope. No content other than the image. The div's directly below it
    > > will contain nav, etc.

    >
    > What David meant with the questions was: If it's just some fancy

    decoration,
    > say a picture of a flower, then the background option is OK, since those
    > with images disabled won't miss anything. If it contains info (text,
    > probably), then an <img> tag with alt attribute is a better solution.
    >
    >


    Ah! Appreciate the clarification and enlightenment.

    Yes the image will contain the logo hence the company name. For this reason
    I am now understanding that an <img> tag with alt att is the proper choice.

    Thanks to both of you for the useful replies!

    Tj
    Tj, Jun 17, 2004
    #5
    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. Replies:
    3
    Views:
    304
    Barry Schwarz
    Aug 26, 2007
  2. mlt
    Replies:
    2
    Views:
    818
    Jean-Marc Bourguet
    Jan 31, 2009
  3. hansiman

    Image in header column (not replacing column header text)

    hansiman, Feb 5, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    294
    hansiman
    Feb 7, 2004
  4. Jaddu

    log4net implimentation in a DLL ..???

    Jaddu, Jun 11, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    125
    Jaddu
    Jun 11, 2007
  5. buildmorelines

    need some visual clarity/implimentation LWP help

    buildmorelines, Oct 8, 2004, in forum: Perl Misc
    Replies:
    2
    Views:
    81
    Ben Morrow
    Oct 9, 2004
Loading...

Share This Page