Alt tag on image

This is a discussion on "Alt tag on image" within the Web Page Design section. This forum, and the thread "Alt tag on image are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 1st, 2006, 13:43
Junior Member
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Alt tag on image

Hi,

I just wondered if somebody could help me with a problem im getting on my website.

I currently have a banner/logo image at the head of my pages but the alt tag is displaying over the image even though the image is viewable, and I have checked by asking friends if they can see the image and they say they can.

The code im using is as follows:

*CSS*
img.gecko {
height: 81px;
width: 510px;
float: center;
background-image: url('http://www.surfthegecko.com/images/logo/logo.png');
}


*XHTML*
<div id="top">
<
img class="gecko" alt="Website logo/banner" title="Website Banner" />
<
h1 class="top">Surfthegecko - Just a little fun!</h1>
</
div>

if you want to check out the site to see for yourselves then go to surfthegecko.com .

Any help would be much appreciated, I have a feeling it might well be todo with the fack that I have set it as a background image and then when I have called the class I have just taked on alt/title tags at the end, but im not too sure.

Thanks in advance and a Happy new year to all

Nick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 2nd, 2006, 20:17
Junior Member
Join Date: Jan 2006
Age: 30
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Alt tag on image

Browsers are looking for the src="" and you have none
Code: Select all
 <img class="gecko" alt="Website logo/banner" title="Website Banner" />
should be

Code: Select all
  <img src="http://www.surfthegecko.com/images/logo/logo.png"  class="gecko" alt="Website logo/banner" title="Website Banner" />
giving a backgroun image via css will not work right.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 2nd, 2006, 22:11
Junior Member
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Alt tag on image

ah many thanks, working perfectly now.

It is so obvious now.

Cheers

Nick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
alt, tag, image

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Treating an image with <div> tags like a normal image mikeym Web Page Design 2 Mar 1st, 2008 15:28
[SOLVED] multiple image rollover not restoring image snappy JavaScript Forum 4 Nov 5th, 2007 14:38
Image gallery not displaying enlarged image AdRock PHP Forum 15 Sep 1st, 2006 11:31
Background image overlaping footer image at bottom of div lw_d Web Page Design 4 Mar 21st, 2006 00:27
how can i create a wireframe image from a solid image of som benbacardi Graphics and 3D 5 May 22nd, 2004 11:05


All times are GMT. The time now is 21:28.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved