SitePoint Sponsor |
|
User Tag List
Results 1 to 25 of 28
Thread: Spacer Gifs and Alt Tags
-
Jan 21, 2001, 10:48 #1
- Join Date
- Dec 2000
- Location
- orbis terrarum
- Posts
- 1,523
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I was just wondering what some people do faced with this problem:
My site uses some spacer gifs mainly to prevent Netscape from collapsing table cells. Now I know that you should always include Alt tags in images, but I find it very annoying when you randomly leave your mouse on the screen and the Alt window shows up and says "Spacer".
How have you guys solved this problems?
-
Jan 21, 2001, 11:01 #2
- Join Date
- May 2000
- Location
- Helsinki, Finland
- Posts
- 229
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Why don't you just do:
Code:<img src="image.gif" width="1" height="1" alt="" border="0">
-
Jan 21, 2001, 12:11 #3
- Join Date
- Dec 1999
- Location
- UK
- Posts
- 656
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Jan 21, 2001, 13:36 #4
- Join Date
- Dec 2000
- Location
- orbis terrarum
- Posts
- 1,523
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I get what your saying, but alt="" still has a popup and leaving alt out alltogether apparently confused text readers.
I suppose I'll just have to go with alt="".
Thanx.
-
Jan 21, 2001, 13:37 #5
- Join Date
- May 2000
- Location
- Helsinki, Finland
- Posts
- 229
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by Fletch
Hi,
Or you could even not include an alt tag at all. So it would be
-
Jan 21, 2001, 14:00 #6
- Join Date
- Aug 1999
- Location
- East Lansing, MI USA
- Posts
- 12,937
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I've never had to use a spacing gif in my life.
If I want netscape to render an empty cell I put an in it.Chris Beasley - I publish content and ecommerce sites.
Featured Article: Free Comprehensive SEO Guide
My Guide to Building a Successful Website
My Blog|My Webmaster Forums
-
Jan 21, 2001, 14:02 #7
- Join Date
- Aug 2000
- Location
- boston, MA
- Posts
- 277
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Or you could put the name of your site in the alt tags. That way, people who didn't know any better would assume it was just telling you the site's name.
-
Jan 21, 2001, 14:04 #8
- Join Date
- Jul 1999
- Location
- Lancashire, UK
- Posts
- 8,277
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
The RNIB in the UK have the following suggestions
http://www.rnib.org.uk/digital/hints.htm
If you have a spacer Gof the best thing to do is include the ALT tag but leave a SPACE between the " " or s full stop "."
-
Jan 21, 2001, 15:09 #9
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
aspen...the problem with over a spacer gif is if your user resized their browser's font size, then guess what? Your tables break. Because even though invisible, a is still considered "text" so it has to obey the user. A spacer GIF stays the same size no matter what.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Jan 21, 2001, 16:02 #10
- Join Date
- Aug 1999
- Location
- Pittsburgh, PA, USA
- Posts
- 3,910
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by hmahonen
Originally posted by Fletch
Hi,
Or you could even not include an alt tag at all. So it would beI wouldn't recommend ALT tags for blank spacer images - I honesly cannot think of a good reason to.
-
Jan 21, 2001, 16:14 #11
- Join Date
- Jul 2000
- Location
- Long Island, NY
- Posts
- 755
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm glad someone brought this up. I don't use alt tags for spacers, and I have some other images that I can't figure a good an alt tag for - like some tiny colored squares that I use as dividers beween text links on one site. The text won't run together with or with out them and they look good..not ready to give them up, but they don't lend themselves to an alt tag. Of course, that means that my pages will never meet standards, even though they might be accessible in all browsers including text only, and set up so that they make sense with alternative software for disabled visitors.
Seems to me that a couple of years back the conventional wisdom was to include an alt tag whenever the image conveyed information of any kind. Now it's across the board, no matter what.
-
Jan 21, 2001, 16:29 #12
- Join Date
- Sep 1999
- Posts
- 1,390
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by aspen
I've never had to use a spacing gif in my life.
If I want netscape to render an empty cell I put an in it.
is 64 characters. Using is 6 characters. That's a 93% savings
-
Jan 21, 2001, 16:56 #13
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Aidan...read my post from a few lines back...
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Jan 21, 2001, 17:18 #14
- Join Date
- Sep 1999
- Posts
- 1,390
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by creole
Aidan...read my post from a few lines back...
-
Jan 21, 2001, 17:52 #15
- Join Date
- Dec 2000
- Location
- orbis terrarum
- Posts
- 1,523
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm sorry Aidan if my words where unclear, by spacer gif I also ment the gif you put when a table cell has a background color or motif as part of your layout to prevent it from collapsing in Netscape.
A non-breaking space is often too high for the cell. And as creole mentionned, when a user changes the size of his fonts your whole layout can be drastically altered, often for the worse!
-
Jan 21, 2001, 21:53 #16
- Join Date
- Mar 2000
- Location
- Muskegon, MI
- Posts
- 2,328
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by Aidan Bahta
Originally posted by creole
Aidan...read my post from a few lines back...
I usually critique site in the Web review forum who do not use alt tags, but this is an exception. The reason for alt tags is that users can use reading browsers and hear items like "XYZ Company" or whatever message the image is supposed to be conveying. Spacers are not meant to be seen or heard. It's a 'trick' used to deal with the shortcomings of Netscape 4. It will be moot point in a year.
-
Jan 22, 2001, 04:25 #17
- Join Date
- May 2000
- Location
- Helsinki, Finland
- Posts
- 229
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by TWTCommish
What, the word "Spacer" all over would be better looking?I wouldn't recommend ALT tags for blank spacer images - I honesly cannot think of a good reason to.[/B]
Code:<img src="image.gif" width="1" height="1" alt="" border="0">
-
Jan 22, 2001, 10:17 #18
- Join Date
- Mar 2000
- Location
- Muskegon, MI
- Posts
- 2,328
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by hmahonen
Originally posted by TWTCommish
What, the word &quot;Spacer&quot; all over would be better looking?I wouldn't recommend ALT tags for blank spacer images - I honesly cannot think of a good reason to.
Code:<img src="image.gif" width="1" height="1" alt="" border="0">
-
Jan 22, 2001, 17:22 #19
- Join Date
- Jul 2000
- Location
- 80,000 feet below the surface
- Posts
- 1,442
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by westmich
How does alt="" help a text or reading browser? There is nothing there for it to read. Alt tags were designed to convey a message if the picture could not be seen. There is no image to be seen with a transparent spacer. Using an alt tag defeates the purpose. [/B]
-
Jan 22, 2001, 18:48 #20
- Join Date
- Jan 2001
- Location
- Mukilteo WA
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
What if you used   while also setting the font size attribute so it could'nt be resized ? Or instead of & nbsp what about a "." with the font size fixed to say 1px. Should allow you to space all but the smallest cells with no problems wihtout the spacer.
-
Jan 22, 2001, 19:36 #21
- Join Date
- Jul 2000
- Location
- Singapore
- Posts
- 2,103
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Spacer gifs in my opinion are quick easy solutions to table collapsing. If you did a good layout and table management, you won't need them and a code would do.
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
-
Jan 22, 2001, 21:35 #22
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
sheesh...that's sort of an arrogant attitude lymlinz.
There is nothing wrong with using spacer GIfs...sometimes it is the only way to get what you need. What if you want a 2 pixel tall line across the screen? A would not let you do that without devising some elaborate method to keep the size down. A spacer GIF is reliable and ALWAYS does what you want it to do.
You can't always say that for a .Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Jan 22, 2001, 23:15 #23
- Join Date
- Jul 2000
- Location
- Singapore
- Posts
- 2,103
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well yes, for heights..
but weren't we talking about widths? hmm..
pardon me if it felt arrogant but it sure didn't seem"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
-
Jan 23, 2001, 00:36 #24
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
s'cool man...I know you're good at your coding...
I was under the impression we were talking about spacer GIF's in general both height and width.Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Jan 23, 2001, 00:40 #25
- Join Date
- Jul 2000
- Location
- Singapore
- Posts
- 2,103
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
yeah..sorry about it anyways...hmm.
nope..i sure ain't good at coding....and the least I would like of a description of myself is arrogant...yup...
I'm learning from the guys here
<Edited by lynlimz on 01-23-2001 at 12:43 AM>"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
Bookmarks