Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS and header image implimentation.

Reply
Thread Tools

CSS and header image implimentation.

 
 
Tj
Guest
Posts: n/a
 
      06-16-2004
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


 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      06-16-2004
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
 
Reply With Quote
 
 
 
 
Tj
Guest
Posts: n/a
 
      06-16-2004

"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.


 
Reply With Quote
 
Mitja
Guest
Posts: n/a
 
      06-17-2004
Tj <>
(news:zfydnXjr-) 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.


 
Reply With Quote
 
Tj
Guest
Posts: n/a
 
      06-17-2004

"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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Search for built-in header and application header linq936@gmail.com C Programming 3 08-25-2007 11:49 PM
datagrid having row header and column header krishna.dwivedi@gmail.com ASP .Net Datagrid Control 0 07-13-2006 08:20 AM
What is better /standard for creating files. a cpp file with header or cpp and seperate file for header DrUg13 C++ 1 02-10-2004 09:20 AM
Image in header column (not replacing column header text) hansiman ASP .Net Datagrid Control 3 02-07-2004 12:17 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57