xhtml

How can I get the WordPress language_attributes function to return valid XHTML 1.1?

I have a WordPress template that contains the following element: <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes('xhtml'); ?>> This returns: <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en-US"> Unfortunately the "lang" attribute is invalid XHTML 1.1 - and the client would like thi...

CSS Positioning Puzzle

The image below represents a website layout I am trying to create. The blue section (bottom right) represents an image should be behind the three neighboring elements and overflow them slightly. I do not know the best way to do this, at the minute I have a wrapper div round the colored sections and put a background image in there but I...

How to make the first column of a table invisible?

Below is the CSS code of my table display. How can I modify this code to make the first column invisible? table.tbl { width:100%; border: 2px solid #c3daf9; font-size: 0.9em; clear: both; } td.tbl-header { background: url(/images/head_bg.gif); text-align: center; padding: 3px; font-weight: bold; border-bottom: 2px solid #c3daf9; } tr.tb...

Validating XHTML elements with XML children

G'day guys, I've tried reading the XML Modularization recommendation which promises to allow custom XHTML extensions but can't make heads nor tails from it. I need an XML document containing a mix of XHTML and user-defined XML elements to validate and having trouble doing so. Unfortunately I'm using an XSD and not a DTD, a la XSL which v...

What is the difference between Browser , Rendering engine and user agent?

To make cross platform and cross browser website application what is the role of user agent switcher? https://addons.mozilla.org/en-US/firefox/addon/59 Is user agent different thing then rendering engine? and if some browser use same rendering engine then do we need to check on every browser or one is enough? ...

How to Submit part of a TextArea/anyfield using JS or DHTML or any other way?

I want to submit part of a TextArea (User has entered Multiple Lines and selected one line either by Highlighting or by placing the cursor on the line). If user press the Submit Button then, I need to get the Line or word user has selected. Just for my requirement Understanding See Below Example Ex:- TOAD, SQL Server : where we can ent...

How do you create tabstops in XHTML?

Hi there, I'd like to use an element like 'span' or any other regular ole' element to create a tabstop in an xhtml webpage (i.e. valid XML). The effect should be equivalent to 4 "&nbsp;" right next to each other (couldn't do that without putting a space between the ampersand and 'n'. Anyone know how to do this? Edit: My initial post did...

display: inline-block extra margin

EDIT From what I've found there is no way to remove the margin... except if you either have everything on the same line or, add comments to comment out the line breaks. example: <div>Some Text</div><!-- --><div>Some Text</div> not the best solution but still easier to read if you have multiple lines... -mike Hello! I'm working wit...

Why is my text changing size randomly

A little disclaimer before I get ridiculed for not putting up code examples: I would have to put my whole site on here so there is nothing really specific except a combination of PHP,CSS,JAVESCRIPT,and XHTML that creates 70 plus pages Basically I am just looking for a guess on what it could be making my text change sizes randomly. I can...

Blueprint CSS Framework/Sticky Footer with IE6 Problem

Hello all, I'm currently using the Blueprint CSS framework setting my width to 910px along with the sticky footer markup by Steve Hatcher. The problem I'm getting is that for some reason in only Internet Explorer 6 is that an extra padding/margin of 10px is being added on the right hand side of my #wrap class. I have uploaded my test ...

Parsing HTML with Php

I cant get the data between the tags into the arrays: // Load the HTML string from file and create a SimpleXMLElement $html_string = file_get_contents("data/csr.html"); /*the string really is in $html_string*/ $root = new SimpleXMLElement($html_string); Problem starts here when I try to get that the value between the tags: div, h2 and...

Output W3C compliant XHTML from image slices

When slicing and saving for web in Photoshop CS4, the HTML layout output by Photoshop is done using tags, which is not what we want. Is there a way to get Photoshop to output W3C compliant tableless XHTML with CSS? Alternatively, is there another application that I can use to slice to W3C XHTML? ...

How can I insert a XML file in a XHTML page <textarea> using JSP?

How can I include a XML file as content in a textarea element in a XHTML document? It will cause validation errors if the special characters are not escaped. Is there an easy way in JSP to escape special characters before they are inserted using the include directive, like using the JSTL? Example code: <div> <textarea name...

Push cookie notification

Hello everyone, The question that I have is very basic: Is there a way to inform the web browser that the content of the cookie has changed? I don't want to keep looking at the file and check if it has been updated because it'll cause performance degree on my app. Thanks in advance! ...

How do you access an element by its attribute value using XSL transforms and XML?

Hello All Im trying to transform an XML document into XHTML using XSL transformation and was wondering how i can choose an XML element given the value of its attribute. e.g. <image size="small">http:example.small.jpg</image> <image size="medium">http:example.medium.jpg</image> <image size="large">http:example.largw.jpg</image> I only...

Having <link> in <body>?

Is it a bad idea to link CSS files inside the body? I've read that the browser is forced to start CSS rendering over again if it finds another css file outside of head, just because it might need to apply styles to elements its already rendered. Also I don't think the html will validate properly (I need to confirm this). Are there any...

Javascript Toggling

Hiya, I'm trying to get a toggle effect but not quite sure how to do it or what to look for. (i jave Jquery loaded). assume html similar to <table class="left-dates"> <tr><td>All Dates</td></tr> <tr><td>01 dec 2009</td></tr> <tr><td>02 dec 2009</td></tr> <tr><td>03 dec 2009</td></tr> <tr><td>04 dec 2009</td></tr>...

xml.writer - why to use XHTML Namespaces?

Hi, While I was learning about how to write an XHTML document with XML writer in C#, one response in my thread said I need to use XHTML namespace: const string XHTMLNS = "http://www.w3.org/1999/xhtml"; writer.WriteStartElement("html", XHTMLNS); writer.WriteStartElement("head", XHTMLNS); I am not using it (I have just "html") a...

Need to wrap table rows and controls in an ASP.NET webform

Here's my table: <table class="detailTable"> <tr> <th> Event Title: </th> <td> <asp:Label ID="lblTitle" runat="server"></asp:Label> </td> </tr> <tr> <th> Date: </th> <td> ...

Arbitrary table of key/value pairs in a <meta> tag. Any open standard?

Is there an open standard (microformats'ish) that exists for specifying an arbitrary table of key/value pairs in an HTML meta tag? So let's say I had a website about color, and had a page about a 5-color palette. I essentially want to express information represented in the page, in a format that can be gobbled up by third-party servic...