I have a form with the following...
<dt class=idx><span>Sex:</span></dt><dl><fieldset>Male<input type="radio" name="Sex" value="Male" checked>Female<input type="radio" name="Sex" value="Female"></fieldset></dl>
the problem is that the box created by the fieldset extends to the right margin. I'd like it to extend only as far as necess...
Hi there,
Is it possible to auto-select the text in a PRE tag without the use of Javascript?
...
I have the following HTML snippet, http://paste.enzotools.org/show/1209/ , and I want to extract the tag that has a text() descendant with the value of "172.80" (it's the fourth node from that snippet). My attempts so far have been:
'descendant::td[@class="roomPrice figure" and contains(descendant::text(), "172.80")]'
'descendant::td[...
I'm working on a WordPress plugin that exports posts and associated data into a tab-seperated text format. It's almost finished, but I'm struggling to find the best method to re-process HTML into single strings.
I'm using a combination of preg_replace and htmlentities, but it's getting a little messy.
I'm sure there must be a preferred...
Here's the page to reference to: http://dev.thriveafrica.org/invest/
In Safari, when you select one of the monthly options, the box turns blue and expands with some text in it. In Firefox, it turns blue but the box doesn't expand to show the text.
Here's the jQuery behind it. Excuse me if it's messy:
$('#monthly .own, .you, i...
Hi, I have the code below which is a div used for naviagtion its placed at the top of the page inside another div. It works in every browser I have tested in but IE 8/9.
CSS:
#nav
{
text-align: center;
background-color: #363A36;
color: #ffffff;
height: 25px;
padding: 10px;
margin-left: auto;
margin-right: auto;
width: 60%;
margin-t...
Hello all,
Hoping someone has the time to help me out with some jquery confusion?
I am trying to get the parent of an elements background change when the child is hovered and then go back to its default when the childs hover has ended.
The problem I have at the moment is with my script I cannot get the code to return the background c...
Hello,
I was wondering how it is possible to insert text between HTML tags in Cocoa. I am displaying source code in a NSTextView - example:
<html>
<head>
<title>test</title>
</head>
<body>hello!</body>
</html>
The code above can vary in size, but what should I do if I wanted to insert say <link rel="apple-touch-icon" href="webclip.pn...
Hi all,
I am stepping through code, and I realized I cannot close a window, because the DispHTMLWindow2 object close property is still to true.
if(winObject.closed != true)
winObject.close();
The problem is winObject.closed == true, and the window is clearly open.
Any ideas where I can look to figure this out?
Thanks,...
Hi All,
I have a table (standard markup) with a radio select in each row. Once the radio is selected I'd like to highlight that . Sounds straight forward enough but I can't get it to trigger.
Here's the markup:
The Table Row:
<tr>
<td>some data</td>
<td>some data</td>
<td>some data</td>
<td>
<label class="label_radio"><input...
Which should I use:
<link rel="SHORTCUT ICON" type="image/x-icon" href="favicon.ico" />
Or:
<link rel="icon" type="image/ico" href="favicon.ico" />
I've seen both in use and both work in a lot of current browsers - but which is more consistently supported by the most browsers?
...
I want to print some stuff on to labels of a predefined size. Can the layout be done in the browser and printed?
Obviously the problem is that it seems that size is not guaranteed when printing from the browser.
Avery only provides word doc templates (possibly for this reason)
Question:
Can layout dimensions be guaranteed when prin...
Is it possible to change the dark blue selection colour of an input with CSS?
I'm aware of the following, but these will not change the inner selection of text in a text field or drop down.
::selection
::-moz-selection
::-webkit-selection
...
I have a site that loads information using the XMLHttpRequest when a user clicks a link. The system works well but I would like to be able to execute JavaScript gathered in this process.
This is a problem as I would like to download the scripts 'on demand' if it were, rather than loading them all when the page is loaded.
Thanks for any...
I am having an issue wherein my web application behaves different in (IE5 & IE6) as compared with (IE7 & IE8)
There is some CSS Issue but I do not want to get in a situation where I make some changes in CSS File and web application would work fine in (IE5 & IE6) and not in (IE7 & IE8) and so my question is:
How should I approach proble...
What's the best, most robust CSS-button definition?
Ideally, I'd like gradients, rounded images, and graceful degradation down to IE8. It would also be great if the buttons didn't use any images, and the buttons scaled horizontally to fit their content.
What's the best solution to this?
...
I have a loop which generates tables according to a database content.
In other words, the content is changed all the time.
Currently all tables are aligned beneath eachother. This makes one huge vertical scroll, I would save alot of space if the tables could be aligned next to eachother.
How can I do so?
Here is the table code:
$disp...
I am looking for a regular expression to find all input fields of type hidden in html output. Anyone know an expression to do such?
...
I found this nice article about Writing Your Own RTF Converter. It converts rtf into html
But there is nothing about backward conversion.
How can I do that without any third-party components and additional libraries?
...
As you know, you can specify dimensions with CSS in px or em. As far as I understand it, em means "line height of the current element's fonts". My approach currently is to always use px (also for margin which seems to be a controversial practice).
Question: Can I rely on the ratio of px and em to be the same across browsers? If not, the...