Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lightbox validate error

Featured Replies

The lightbox works fine, but in the w3Validator I am getting an error message

 

Bad value lightbox[set] for attribute rel on element a: The string lightbox[set] is not a registered keyword or absolute URL.

 

and it referees to the following code

 

<div class="projectBox" style="margin: 0"><a href="images/SMILE17.jpg" rel="lightbox[set]"><img class="opacity" src="img/prj01.jpg"></a></div>
		<div class="projectBox"><a href="images/DEC14.jpg" rel="lightbox[set]"><img class="opacity" src="img/prj02.jpg"></a></div>
		<div class="projectBox"><a href="images/SMILE13.jpg" rel="lightbox[set]"><img class="opacity" src="img/prj03.jpg"></a></div>
		<div class="clear"></div>

Does anyone know why this is?

 

  • Author

ooo ok so I can leave it if need be, but do I simply change

 

rel="lightbox[set]

 

to

 

data-lightbox="true"

 

or do I have to change some bits in the lightbox.js file?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.