xhtml

CSS sprites navigation and User with image disabled

馋奶兔 提交于 2019-12-13 02:00:39
问题 I made a css menu with css sprites but the problem is with sprite we don't use inline image we use in background only so if images are disabled in browser then nothing will show . any solution for this ? For example : See this menu and turn off images : http://line25.com/wp-content/uploads/2009/css-menu/demo/demo.html (it will not be seen if images are disabled in browser) this menu is against on this quote Ensure your website works with images disabled Creating a site that relies too heavily

line-height not working after change from XHTML1 Trans to HTML5 doctype

痴心易碎 提交于 2019-12-13 01:49:46
问题 A website that I've been working on was originally created using XHTML 1.0 Transitional - however, since I dislike it, I switched over to the HTML5 doctype. When I refreshed the page, for some reason there is a subtle shift in the text on the page. The line-height stops working when it goes under a certain pixel (usually the font-size). This throws off the visual-alignment of the menu I have set up for logged in users. For example, if the font-size is set to 14 pixels, line-height:14px; will

Is there a better way to semantically code up an FAQ in XHTML 1.0 Transitional?

霸气de小男生 提交于 2019-12-13 01:09:00
问题 The following code segment for an FAQ, which uses XHTML 1.0, will not validate successfully in the W3C validator. I’m inserting the Q&A into a definition list in order to maintain the question & answer relationship semantically. The problem is, the questions can be multiple paragraphs. And the <dt> tag, at least in XHTML 1.0, only allows for inline elements. So I can’t put a <p> tag in there without throwing an error in the W3C validator. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Does using “JSP Document” / “JSP in XML notation” imply outputting XHTML?

丶灬走出姿态 提交于 2019-12-13 00:52:12
问题 I'm really not sure about this: does using "JSP Document" / "JSP in XML notation" imply outputting XHTML? If so, is there anything special to look after as to produce a "valid" XHTML page? More specifically: can I have a valid "JSP Document" (JSP in XML) that is producing an invalid XHTML page? 回答1: I'm really not sure about this: does using "JSP Document" / "JSP in XML notation" imply outputting XHTML? It at least implies consuming and producing well formed XML. If you write invalid XML,

Fluid width menu using CSS

社会主义新天地 提交于 2019-12-13 00:39:14
问题 I have a horizontal CSS menu. The problem is when the user creates more than 5 menu items the li tabs move onto a new line. I dont want this to happen. How can I make it fluid width so if the user creates just 3 menu items then each tab increases in width so it fits full width? HTML: <div class="container"> <div id="new-menu-lower"> <ul class="menuul"> <li class="menuli"> <a href="/test.aspx">Test</a> </li> <li class="menuli"> <a href="/test.aspx">Test</a> </li> <li class="menuli"> <a href="

Unable to add jsp page to xhtml page?

拟墨画扇 提交于 2019-12-12 22:17:09
问题 I am trying to include jsp page in my xhtml page following how-to-include-a-jsp-page-in-a-facelets-page but UIComponentBase class is not found, not sure why as application builds fine am getting this runtime exception. I am using Mojarra 2.1.7 , here is the stacktrace: Servlet.service() for servlet Faces Servlet threw exception: java.lang.ClassNotFoundException : javax.faces.component.UIComponentBase at java.net.URLClassLoader$1.run(URLClassLoader.java:200) [:1.6.0_18-ea] at java.security

Which Javascript solution(Not .htc) can really make Antialiased round corner in IE7 and 8?

醉酒当歌 提交于 2019-12-12 20:31:34
问题 Which JavaScript solution (Not .htc ) can really make Anti aliased round corner in IE7 and 8 like CSS3 gives in supported browsers? I tried many http://www.ruzee.com/blog/ruzeeborders/ http://blue-anvil.com/archives/anti-aliased-rounded-corners-with-jquery/ http://www.curvycorners.net/ All are claiming to give anti aliased corner but giving corners like this alt text http://shup.com/Shup/375652/11063104941-My-Desktop.png But no one is giving anti aliased corner. if I need 10px round corner.

XSLT transformation to produce valid XHTML: a namespace issue

做~自己de王妃 提交于 2019-12-12 20:18:51
问题 I have seen this resource link text but I still have troubles generating a valid XHTML document using MSXML parser. I have in input the following document: <?xml version="1.0" encoding="UTF-8" ?> - <html xml:lang="it" xmlns="http://www.w3.org/1999/xhtml"> - <head xmlns=""> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Bla bla bla</title> <link rel="stylesheet" type="text/css" media="screen" href="css/bla.css" /> </head> - <body xmlns="" style="background-color:

Why single textarea mess all following xhtml?

混江龙づ霸主 提交于 2019-12-12 20:01:50
问题 I encounter a problem in my web program. I got a textarea in my form, sometimes there is nothing in textarea, so genshi template engine just output it as <textarea xxxx /> and here comes the problem, all following tags are in the textarea. Why all browser can't handle single textarea correctly? If I write it as <textarea xxxx></textarea> and everything works fine. Why a single textarea messes following tags in xhtml? 回答1: Because you are, presumably, serving your XHTML with a text/html

Is it necessary to use lowercase for every Element and attribute , properties in css and xhtml ?

情到浓时终转凉″ 提交于 2019-12-12 18:33:55
问题 4.2. Element and attribute names must be in lower case XHTML documents must use lower case for all HTML element and attribute names. This difference is necessary because XML is case-sensitive e.g. <li> and <LI> are different tags. Source : http://www.w3.org/TR/2002/REC-xhtml1-20020801/diffs.html#h-4.2 But is it also necessary for attributes, properties, values, class and ID for elements. Upper case and came case should not be used. What is the benefit of use lowercase for every thing? 回答1: