xhtml

Is there a method for keeping the id I set for an asp .net control when it outputs to HTML?

馋奶兔 提交于 2019-12-22 05:21:46
问题 When I create a form, I try to make accessibility a top priority, but the output from asp .NET negates some of this. For example, when I set a label tag for an input tag, I create it a such: <label for="frmFirstName">First Name<span class="required">*</span></label> <asp:TextBox id="frmFirstName" CssClass="textbox" runat="server" /> But, when the HTML is output from the page, it is output as: <label for="frmFirstName">First Name<span class="required">*</span></label> <input name="ctl00

Keep contents of a div together for printing in IE8

泄露秘密 提交于 2019-12-22 05:11:49
问题 Given the following HTML document, I need to keep the "Table title" line on the same page as the <table> when being printed in IE8. Despite the page-break-inside:avoid; , there is still a page break between the title and the table. My understanding of this suggests a page break should be avoided and the whole div pushed on to page 2. The doctype is XHTML 1.0 Transitional, I have <meta http-equiv="X-UA-Compatible" content="IE=8" /> set to force IE8 into Standards Mode which supposedly supports

Is it “bad practice” to be sensitive to linebreaks in XML documents?

北战南征 提交于 2019-12-22 04:32:55
问题 I'm generating some XML documents and when it comes to the address part I have fragments that look like this: <Address>15 Sample St Example Bay Some Country</Address> The XSLT that I have for converting this to XHTML has some funky recursive template to convert newline characters within strings to <br/> tags. This is all working fine; but is it considered "bad practice" to rely on linebreaks within XML documents? If so, is it recommended that I do this instead? <Address><Line>15 Sample St<

What is this technique to resize the images proportionally used by google chrome new tab?

不想你离开。 提交于 2019-12-22 03:47:03
问题 I saw this code in Google Chrome Beta version's new tab where it show the icon if installed tabs. They are using any technique to resize the images. this is html of a icon <div class="app-img-container launch-click-target" title="Box Office" style="height: 97.56981132075472px; width: 97.56981132075472px; "> <img class="" src="chrome://extension-icon/dhbbohlkjglcppclgngklojecglglinl/128/0"> </div> and it's css of related classes .app-img-container { margin-left: auto; margin-right: auto;

Anchor tag around table is not clickable in IE 6, 7 & 8

 ̄綄美尐妖づ 提交于 2019-12-22 02:08:40
问题 The problem: when surrounding a table with an anchor tag, the table and everything within is not clickable in IE 6, 7 & 8. How do I solve this issue assuming I can't replace the table with divs? Sample code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> <head> <title>Test</title> </head> <body> <a href="http://www.google.com"> <table height="35"> <tr> <td>I'm

Why is using DIVs or spans tags “better” than using a table layout? [duplicate]

前提是你 提交于 2019-12-22 01:37:23
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Why not use tables for layout in HTML? Why is using markup with divs defining everything (container, header, content, etc) BETTER than using tables? I understand that when you build your page using tables it: look ugly as hell, look even UGLIER when nested, because of the higher volume of bullshit - slightly higher page load time, and less readable code. BUT. Using tables is so easy and saves SO much time in

How can a JSF/ICEfaces component's parameters be updated immediately?

余生长醉 提交于 2019-12-21 23:37:42
问题 I have an ICEfaces web app which contains a component with a property linked to a backing bean variable. In theory, variable value is programmatically modified, and the component sees the change and updates its appearance/properties accordingly. However, it seems that the change in variable isn't "noticed" by the component until the end of the JSF cycle (which, from my basic understanding, is the render response phase). The problem is, I have a long file-copy operation to perform, and I would

Get tag's and values from Jscript where pageScroll happen in UIWebView

梦想的初衷 提交于 2019-12-21 22:45:14
问题 In my app the XHTML file is loaded in the web view when web view is allocated. if whatever file is loaded have 5000 lines of text in 200 Tag then only 10 Tag's value will see on first page ans when swipe on the screen the new page come and at that time other 10 or 12 Tag's value will come. My question is how to get only that scrollable part of html from java script ? i use below line to scroll the page NSString* goTo =[NSString stringWithFormat:@"pageScroll(%f)", pageOffset]; [webView

@font-face not working in Firefox?

◇◆丶佛笑我妖孽 提交于 2019-12-21 20:49:42
问题 This is code generated from FontSquirrel, and working great in every other browser (including IE), but not the mighty Firefox! What am I doing wrong? (ps- I am using FF3.5) If you can't view my example, here is the source: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots"

What is the biggest cons to use position: absolute & top/left over Float & margin+padding, If site is fixed width (970px), centered?

独自空忆成欢 提交于 2019-12-21 17:25:45
问题 What is the biggest disadvantage to use CSS positioning(From Dreamweaver AP Div) for everything instead Float for fixed width, centered website? if I don't care for Mobile users Small screen users (smaller than 1024 px screen size) But I care for Screen reader user All browser user (including IE6) 回答1: If you don't care about small resolution, it's just a question of flexibility : when you use absolute positionning, you break the flow. So, everything must be exactly sized. For many elements