HighDots Forums  

help with "alt" text

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss help with "alt" text in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mickee24
 
Posts: n/a

Default help with "alt" text - 11-07-2005 , 06:34 PM






I would like to apply alt text to my header here in an external css.

#header {
background:#fff url(images/ban_hang_1.gif);
margin: 0;
padding: 0px;
height: 180px;
width: 724px;
}

what is the best way?

thanks, m


Reply With Quote
  #2  
Old   
darrel
 
Posts: n/a

Default Re: help with "alt" text - 11-07-2005 , 06:39 PM






Quote:
I would like to apply alt text to my header here in an external css.

#header {
background:#fff url(images/ban_hang_1.gif);
margin: 0;
padding: 0px;
height: 180px;
width: 724px;
}

what is the best way?
You can't. Alt attributes belong in the HTML...not in the CSS file.

If you want your banner image to exist solely in the CSS file, then you need
to use an image replacement technique:

http://www.alistapart.com/articles/fir/

Though, personally, I find it usually better to just put the image in your
HTML to begin with:

<h1><img src="images/ban_hang_1.gif" alt="your header text"></h1>

-Darrel




Reply With Quote
  #3  
Old   
Thierry | www.TJKDesign.com
 
Posts: n/a

Default Re: help with "alt" text - 11-07-2005 , 06:51 PM



mickee24 wrote:
Quote:
I would like to apply alt text to my header here in an external css.

#header {
background:#fff url(images/ban_hang_1.gif);
margin: 0;
padding: 0px;
height: 180px;
width: 724px;
}

what is the best way?
As Darrel said, you can't.
You can go with his suggestion or use an Image Replacement technique that
lets you plug real text, like this one:
http://www.tjkdesign.com/articles/tip.asp

HTH,
--
Thierry | http://www.TJKDesign.com | CSS-P Templates + Articles:
CSS Popups, CSS 3 Column Layout, CSS Tabs, CSS Dropdown Menu,
TIP Method, Sliced Images, Clean Popup Windows, Easy Maintenance.....




Reply With Quote
  #4  
Old   
mickee24
 
Posts: n/a

Default Re: help with "alt" text - 11-07-2005 , 07:42 PM



Whoa. was hoping there was a simple solution i missed. thanks for the help!

-m

Reply With Quote
  #5  
Old   
Thierry | www.TJKDesign.com
 
Posts: n/a

Default Re: help with "alt" text - 11-07-2005 , 07:57 PM



mickee24 wrote:
Quote:
Whoa. was hoping there was a simple solution i missed. thanks for the
help!
You're welcome,

--
Thierry | http://www.TJKDesign.com | CSS-P Templates + Articles:
CSS Popups, CSS 3 Column Layout, CSS Tabs, CSS Dropdown Menu,
TIP Method, Sliced Images, Clean Popup Windows, Easy Maintenance.....




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.