Category : html

Q(Question): Are there any non-obvious gotchas to using ISO-8859-15 as a page encoding rather than ISO-8859-1 ? This gains the Euro symbol, but obviously loses the £ sign (and a few other less useful symbols) A(Answer): Andy Dingley wrote: Are there any non-obvious gotchas to using ISO-8859-15 as a page encoding rather than ISO-8859-1 ? ..

Read more

Q(Question): I have so far seen two methods for including external resources as CSS stylesheets in a document. The first is this: <link href="/stylesheets/style.css" rel="stylesheet" type="text/css" /> And the second is this: <style type="text/css"> @import "/stylesheets/style.css"; </style> What is the difference? And which should I use, given that I am trying to make the (application/xhtml+xml) ..

Read more

Q(Question): If I use the code: —– <div style="text-align: center;"> <a href="photos.php?img=xx1.jpg"> <img src="xx1.jpg" style="padding: 10px;" /> </a> <a href="photos.php?img=xx2.jpg"> <img src="xx2.jpg" style="padding: 10px;" /> </a> </div> —– Then the images appear side by side (if they are small enough) and are centered in the div. If there are more images within the div than ..

Read more

Q(Question): Hello guys I have the following code: <html> <head> <style> #one{width:110px;height:100px;background-color:yellow;border:1px solid green;} #two{float:left; width:100px;height:100px;background-color:red;} #three{float:left;width:10px;height:100px;backgrou nd-color:blue;} .clear{clear:both;} </style> </head> <body> <div id="one"> <div id="two"> </div> <div id="three"> </div> <div class="clear"></div> </div> </body> </html> If you see it in opera and ff, it works correctly. But it doesnt in ie 6. If I remove ..

Read more