News:

Looking for documentation? Take a look on our wiki

Main Menu

Adding 'Alt' text to Facebox Closelabel

Started by Lund, April 06, 2012, 00:49:52 AM

Previous topic - Next topic

Lund

Hi all,

Firstly forgive my ignorance. I am using Joomla 1.6.4 with VM2 plugin

I am trying to add and alternative text attribute to the Facebox closelabel, however I cannot find the file to amend..

...facebox/closelabel.png' title='close' class='close_image' /></a></div></div>" ;

Regards,
Lund

jenkinhill

It is a background image so does not really need an alt attribute.

Anyway it is in components\com_virtuemart\assets\css\facebox.css

background:url(../images/facebox/closelabel.png) no-repeat #FFF;
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Lund

#2
Quote from: jenkinhill on April 06, 2012, 12:26:38 PM
It is a background image so does not really need an alt attribute.

Anyway it is in components\com_virtuemart\assets\css\facebox.css

background:url(../images/facebox/closelabel.png) no-repeat #FFF;

I'm not so sure it is a background image. It doesn't appear in my facebox.css;

#facebox .close{
  position:absolute;
  top:5px;
  right:5px;
  padding:2px;
  background:#fff;
}
#facebox .close img{
  opacity:0.3;
}

The W3C Validator is flagging it up as an image also, thats why I want an alt attribute. I just cannot find the instance in html or php to add the 'alt' attribute.

Regards,
Lund



Line 112, Column 239: required attribute "alt" not specified
…facebox/closelabel.png' title='close' class='close_image' /></a></div></div>" ;

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

jenkinhill

My code is from the last stable release, VM2.0.2 - maybe you are using the first VM2 release?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum