4 replies [Last post]
mihirc
mihirc's picture
Offline
Leader
Pune, Maharashtra, India
Last seen: 5 years 15 weeks ago
Pune, Maharashtra, India
Timezone: GMT+5.5
Joined: 2007-05-09
Posts: 728
Points: 204

Hi guys,

Long time since i am posting a query. Anyways, heres the problem. I do photography, and am making a simple landing page for it. One that will link to my flickr account and my travel blogs.

So i created this very simple black layout.

here's the link...

http://www.mihir.tekdi.com

Am using one of the lightbox effects for the one image there..

Please solve this...

mihir. Smile

Proprietor - Thoughtfulviewfinder Services
Web Development | Design | Merchandise | Photography
My personal blog: MihirChhatre.com

PVasili
Offline
Regular
Moscow
Last seen: 12 years 5 weeks ago
Moscow
Timezone: GMT+4
Joined: 2007-10-12
Posts: 13
Points: 0

Wrong: DOCTYPE = strict and

Wrong:
DOCTYPE = strict and HTML element is missing, but required. Sad

All content management systems suck, Drupal just happens to suck less.
(Boris Mann at DrupalCON Amsterdam, August 2005)

Triumph (not verified)
Anonymous's picture
Guru

There seems to be an

There seems to be an epidemic of doctypes without the space between the quoted parts. This is not valid:

This is valid:
Notice the space between the EN" and the "http?

The target attribute is not a part of the HTML 4.01 Strict doctype. If you need to use it (and you don't, especially if you are actually using lightbox) then you will have to use HTML 4.01 Transitional.

My advice: get rid of target="_blank"

mihirc
mihirc's picture
Offline
Leader
Pune, Maharashtra, India
Last seen: 5 years 15 weeks ago
Pune, Maharashtra, India
Timezone: GMT+5.5
Joined: 2007-05-09
Posts: 728
Points: 204

Hi, so the space matters?

Hi,

so the space matters? ow... and why does the target=_blank not validate? isnt it a valid XHTML code? and i think, this makes the lightbox work.

Sad Sadly i was hoping to use the STRICT DOCTYPE, since i was making a HTML page (as i mostly do Joomla, and my bosses prefer using Transitional).. anyways, so that space is causing it a problem to validate?

will try it out then...

mihir Smile

Proprietor - Thoughtfulviewfinder Services
Web Development | Design | Merchandise | Photography
My personal blog: MihirChhatre.com

Triumph (not verified)
Anonymous's picture
Guru

mihirc wrote:... so the

mihirc wrote:
... so the space matters?
Apparently, it does. Without it no doctype is detected by vw3

mihirc wrote:
and why does the target=_blank not validate? isnt it a valid XHTML code?
First of all you are not using XHTML you are using HTML 4.01 according to your doctype. Second, target has no real meaning to anything except a frameset doctype.

mihirc wrote:
and i think, this makes the lightbox work.
You would be wrong. Javascript makes lightbox work and it is the rel attribute that activates it. Dump the target attribute. Look here. No target attributes there.

mihirc wrote:
Sad Sadly i was hoping to use the STRICT DOCTYPE, ...

So go ahead. No one is stopping you.
mihirc wrote:
... so that space is causing it a problem to validate?

No the space is causing the doctype to be invalid, the target attribute is causing the problem with validation.