tagged [xhtml]

Valid content-type for XML, HTML and XHTML documents

Valid content-type for XML, HTML and XHTML documents What are the correct content-types for XML, HTML and XHTML documents? I need to write a simple crawler that only fetches these kinds of files. Nowa...

3 Nov at 01:48

How can I find the link URL by link text with XPath?

How can I find the link URL by link text with XPath? I have a well formed [XHTML](http://en.wikipedia.org/wiki/XHTML) page. I want to find the destination URL of a link when I have the text that is li...

17 Aug at 14:33

Make a space between paragraph (X)HTML and CSS

Make a space between paragraph (X)HTML and CSS I want space between my `content` tags. Not before and not after `` tags. For example, my code is: I don't want space between h1 and p which is done with...

1 Oct at 22:15

What would be the best method to code heading/title for <ul> or <ol>, Like we have <caption> in <table>?

What would be the best method to code heading/title for or , Like we have in ? What would be the best method to code heading/title of `` or ``? Like we have `` in ``, and we don't want to make them bo...

IE 8: background-size fix

IE 8: background-size fix I've tried to add background size to IE but it's not working at all: HTML CSS: ``` div#content h2#news { background: url('../images/news-background.jpg') no-repeat; backg...

how to clear the last <li> tag within a <ul>

how to clear the last tag within a I know this is pretty basic, but it is giving me hangups. I have a basic list: What do I need to do to make sure the last `` item gets cleared? I've tried adding sty...

8 Jul at 04:30

A space between inline-block list items

A space between inline-block list items > [Unwanted margin in inline-block list items](https://stackoverflow.com/questions/4969082/unwanted-margin-in-inline-block-list-items) [How to remove “Invisible...

14 May at 06:13

Floating not right in ie?

Floating not right in ie? i want to do like the following format: ![alt text](https://i.imgur.com/WhWTH.jpg) So this is what i did : ``` .toptitle{ font-size:14px; } .toprating{ background:yellow; flo...

20 Jun at 09:12

Margin on child element moves parent element

Margin on child element moves parent element I have a `div` () that contains another `div` (). Parent is the first element in `body` with no particular CSS style. When I set The end result is that top...

19 Nov at 11:23

Can an XSLT insert the current date?

Can an XSLT insert the current date? A program we use in my office exports reports by translating a XML file it exports with an XSLT file into XHTML. I'm rewriting the XSLT to change the formatting an...

15 Oct at 21:14

For div to extend full height

For div to extend full height Is there a method I can use for a div to extend to full height? I've got a sticky footer in it as well. Here's the web page: . The middle bit I'm talking about is the whi...

16 Aug at 06:38

display: inline-block extra margin

display: inline-block extra margin I'm working with a few `div`s that are set to `display: inline-block` and have a set `height` and `width`. In the HTML, if there is a line break after each `div` the...

17 Nov at 17:51

How do I center align horizontal <UL> menu?

How do I center align horizontal menu? I need to center align a horizontal menu. I've tried various solutions, including the mix of `inline-block` / `block` / `center-align` etc., but haven't succeede...

1 Dec at 15:48

Add centered text to the middle of a horizontal rule

Add centered text to the middle of a horizontal rule I'm wondering what options one has in xhtml 1.0 strict to create a line on both sides of text like-so: I've thought of doing some fancy things like...

15 Jul at 21:19

Uses for the '&quot;' entity in HTML

Uses for the '&quot;' entity in HTML I am revising some files authored by another party. As part of this effort, I am doing some bulk editing via . I've just noticed that some of the original source X...

Regular Expression to Extract HTML Body Content

Regular Expression to Extract HTML Body Content I am looking for a regex statement that will let me extract the HTML content from just between the body tags from a XHTML document. The XHTML that I nee...

14 Sep at 05:34

CSS table column autowidth

CSS table column autowidth Given the following how do i make my last column auto size to its content? (The last column should autosize-width to the content. Suppose i have only 1 li element it should ...

3 Oct at 23:4

On jQuery, Metadata, and XHTML Compliance

On jQuery, Metadata, and XHTML Compliance I want to add some jQuery functionality to our sites where one piece of markup will have a click handler which will need to cause action to happen on another ...

19 May at 15:55

Error parsing XHTML: The content of elements must consist of well-formed character data or markup

Error parsing XHTML: The content of elements must consist of well-formed character data or markup As an extension of this [question](https://stackoverflow.com/questions/4304132/hcommandbutton-multiple...

23 May at 12:34

IE6/7 link overlapping + text-indent

IE6/7 link overlapping + text-indent I need a little guidance here... I have 2 links: ``` RAM Moudles

Table with table-layout: fixed; and how to make one column wider

Table with table-layout: fixed; and how to make one column wider So I have a table with this style: Which makes all columns to be of the same width. I would like to have one column (the first one) to ...

8 Mar at 15:24