And XHTML is for what? Spaceships? eXtensible Hypertext Markup Language. It simply makes things more organized, and most of the guys who code web sites these days are using an XHTML DOCTYPEAny particular reason why you are using XHTML?
HTML is a more practical markup language for the web.
I've searched on these errors and I don't understand what's gone wrong.
HTML:<a href="gallery.htm"<li>previous jobs</li></a>
Can anyone point out what I'm doing wrong. Before I fill up the page with a load of poor xhtml.
Any particular reason why you are using XHTML?
<div class="thumbnail">
<a href="images_site/Caltite Basement Welwyn Garden City/1-Waterproof Basement.jpg" rel="lightbox[concrete_basement]" title="Concrete Slab and Kickers cast, 'Caltite' Concrete used throughout; retardant sprayed on kickers to ensure excellent 'dry-joints'"><img src="images_site/images_thumbs/Caltite Basement Welwyn Garden City/1-Waterproof Basement_thumbs_thumbs_thumbs_thumbs.jpg"</a>
</div>
<div class="thumbnail">
<a href="images_site/Caltite Basement Welwyn Garden City/2-Waterproof Basement.jpg" rel="lightbox[concrete_basement]" title="Concrete Slab and Kickers cast, 'Caltite' Concrete used throughout; retardant sprayed on kickers to ensure excellent 'dry-joints'"><img src="images_site/images_thumbs/Caltite Basement Welwyn Garden City/2-Waterproof Basement_thumbs_thumbs_thumbs_thumbs.jpg"</a>
</div>
<div class="thumbnail">
<a href="images_site/Caltite Basement Welwyn Garden City/3-Waterproof Basement.jpg" rel="lightbox[concrete_basement]" title="External Shutters erected."><img src="images_site/images_thumbs/Caltite Basement Welwyn Garden City/3-Waterproof Basement_thumbs_thumbs_thumbs_thumbs.jpg" border="0"</a>
</div>
<div class="thumbnail">
<a href="images_site/Caltite Basement Welwyn Garden City/4-Waterproof Basement.jpg" rel="lightbox[concrete_basement]" title="External Shutters erected."><img src="images_site/images_thumbs/Caltite Basement Welwyn Garden City/4-Waterproof Basement_thumbs_thumbs_thumbs.jpg" border="0"></a>
</div>
<img src="link_to_image" alt="alternative_text_to_be_displayed_if_the_image_fails_to_load" />
It's also moaning about:
Can anyone point out what I'm doing wrong. Before I fill up the page with a load of poor xhtml.HTML:<a href="gallery.htm"<li>previous jobs</li></a>
<li><a href="gallery.htm">previous jobs</a></li>
There isn't a correct syntax for lightbox2, lightbox2 has no syntax, it's AJAX-based, as far as I'm concerned. And as far as I can see, only the <a> tag has something to do with lightbox. You've got to enter the image just as I've shown you. As for the border, I really don't think it's required by lightbox, so if it isn't, and need to specify a border, you can always do it using CSS.Oh yeah, NotAvailable that is only the correct syntax for entering a basic image; this is not a basic image, this is lightbox2.
I think we clarified this problem in the last century, but I see a couple of people still have knowledge to share...[...]
I don't know if the <a> tags require TITLE and REL in order for Lightbox to work, so I won't comment on that.
There isn't a correct syntax for lightbox2, lightbox2 has no syntax, it's AJAX-based, as far as I'm concerned.
As for the border, I really don't think it's required by lightbox, so if it isn't, and need to specify a border, you can always do it using CSS.
Are you sure you understand how lightbox2 works? Two images are needed! Unless you want to link it by some boring text. There is no point in putting the same sized image on the page, only to have it load in lightbox2. You need two images, one the source of the link, the other is a thumnail (obviously small sized) when clicked on this displays the big image. Therefore I think they are both needed in the <a> tag, I could of course be incorrect here and most likely amI was talking about the IMG tag in the second quote.
<a href="images/image-1.jpg" rel="lightbox"><img src="images/thumb-1.jpg" width="100" height="40" alt="" /></a>
<a href="images_site/Caltite Basement Welwyn Garden City/1-Waterproof Basement.jpg" rel="lightbox[concrete_basement]" title="Concrete Slab and Kickers cast, 'Caltite' Concrete used throughout; retardant sprayed on kickers to ensure excellent 'dry-joints'"><img src="images_site/images_thumbs/Caltite Basement Welwyn Garden City/1-Waterproof Basement_thumbs_thumbs_thumbs_thumbs.jpg"</a>
Results were not the same! The Div needed to be repeated to continue the correct float!And why are you repeating that DIV? It's enough to only include the <a><img /></a> between one DIV. The results will be the same.
Stating the blatantly obvious! Yet you think you have just contributed something extremely valuableI don't know if the <a> tags require TITLE and REL in order for Lightbox to work, so I won't comment on that.
As for the <img> tag, the right syntax is this.
There is need for correct syntax as Jim pointed out!There isn't a correct syntax for lightbox2, lightbox2 has no syntax, it's AJAX-based, as far as I'm concerned.
<a href="images/image-1.jpg" rel="lightbox"><img src="images/thumb-1.jpg" width="100" height="40" alt="" /></a>
<a href="images_site/Caltite Basement Welwyn Garden City/1-Waterproof Basement.jpg" rel="lightbox[concrete_basement]" title="Concrete Slab and Kickers cast, 'Caltite' Concrete used throughout; retardant sprayed on kickers to ensure excellent 'dry-joints'"><img src="images_site/images_thumbs/Caltite Basement Welwyn Garden City/1-Waterproof Basement_thumbs_thumbs_thumbs_thumbs.jpg"</a>
You have no idea what you're talking about. It's no basic or detailed format. You want it to be valid, I gave you the valid XHTML syntax. But I can see who I'm wasting my time with if you think closing a tag is something detailed and optional. If you don't trust me, try using the XHTML Validation Service...You are comparing a basic format; to a more detailed format. The only difference is the closing tag and the group I have placed it in [concrete_basement] which is correctly placed inside"" as the Lightbox site recommends. Title is for placing caption text inside the frames which you clearly do not understand.
I don't know what your CSS was, but I'm sure the problem was there...Results were not the same! The Div needed to be repeated to continue the correct float!
Yes, it was valuable being given the fact that you know no HTML.Yet you think you have just contributed something extremely valuable
There is no need for correct syntax, just the inclusion of the required attributes.There is need for correct syntax as Jim pointed out!
Jim, are you saying that it's near impossible to write valid xhtml strict with Lightbox2. I checked out that link (thank-you) Could you show me an example of how to write my lightbox2 correct?
Thanks for all input people.
One question; in dreamweaver mx 2004 ver 7.0 when the image is used as a link the default blue border: is there a way to over-ride this in an external css sheet.
a img {
border: none;
}
Thanks Jim,
One question; in dreamweaver mx 2004 ver 7.0 when the image is used as a link the default blue border: is there a way to over-ride this in an external css sheet. I have tried, yet with no success. So I've been over-riding it with an inline style (obviously a little tedious).![]()
a img {border:none; vertical-align:top}
Which I don't understand as the other style sheets have exactly this written in the same way yet they are fine118 The @charset rule may only occur at the start of the style sheet. Please check that there are no spaces before it. @charset "utf-8";
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
You can use the @charset rule in a external CSS style sheet, to declare its encoding. However, an important point is the rule must be the very first characters in the file. If you are inclined to put comments at the top of a file, they must come after the @charset rule. This is according to CSS2 4.4 CSS document representation.
"At most one @charset rule may appear in an external style sheet -- it must not appear in an embedded style sheet -- and it must appear at the very start of the document, not preceded by any characters." For example, here is an excerpt of a UTF-8 based style sheet:
HTML:@charset "utf-8"; /* unicode-example.css */ body { color : black; background-color : #FFFFED; } . . .