In the process of trying to make a stylesheet to convert old LoC transcriptions of books that used a very-outdated SGML DTD for formatting, I've run into a roadblock at the following situation:
In the converted XML files, there are some lines of text like the following:
<p> Text on left <hsep></hsep> Text on right </p>
hsep essentiall...
The HTML tag img can have width and height property, while it can also have CSS style width and height.
<img src="xxx.img" width="16" height="16"
style="width: 16px; height: 16px"></img>
What's the difference between the HTML property and CSS attributes? Should they have same effects?
...
I'm writing note software in PHP (to store notes) and most often I include code within, when I fetch the note from the database it collapses all whitespace I assume, so any code blocks look ugly. (I nl2br() it, I mean horizontal space)
What would be the most efficient way to deal with this? I think the database entry keeps the spaces, s...
Hi guys,
Wasn't really sure how to ask the question, but my situation is this...
I have a table with one row, which contains a few input boxes. When a user presses the add new, I have managed to add another row to the table. First I make a new variable called oldtable, and then split it at each <tr>.. and save that to the array rows. I...
I need to learn XSLT for Wordpress andSymphony theming. What are some beginner friendly resources that are relatively easy to follow along to?
...
When I bullet something in word, copy it, then paste it into TinyMCE the bold+underline+sizing works but bullet's don't show up. I have the latest version from their website - on which the copy+pasting of bullets work.
Anyone heard of this?
...
I have a div block that I want to be a link to somewhere. I don't think I can just wrap it in an anchor tag because I don't think you're supposed to wrap an inline element around a block element.
Currently I just use javascript and it works fine except that the status bar doesn't show the destination URL when they hover over the div.
...
My question is, how can i use .removechild() in javascript without having the elements ID?
The reason I don''t have its ID, is because the td was only added using append child, which as far as i know, does not allow adding an ID as well, but i may be wrong?
I used :
var myRow = document.createElement("tr");
to make the child in my f...
I'm trying to assign a variable from a html text input value and then have that variable used in a function that uses the jquery ":contains" selector to hide divs that don't match the variable...here is the code I have...
<head>
<script language="JavaScript" type="Text/JavaScript" src="jquery.js"></script>
<script language="JavaScript" ...
I am currently using jquery corner for making a div round cornered. But the problem I am facing is that when the background of that rounded div is a gradient, it is showing some odd colors in the corners.
I want to know any other better way for including round corners for div
EDIT 1:
$(".nav").corner("20");
This code im using for th...
I'm trying to send HTML emails in codeigniter for notifications but the emails keep ariving with the HTML in plain text.
Are their headers that need to be set to ensure the email is read as HTML? I open HTML tags etc.
...
Hi,
Please tell me, Can I rely completely upon jquery html() method that it'll perform like innerHTML? is there any difference between innerHTML and jquery html() method? and if these both do the same work can I used jquery html() method in place of innerHTML?
My problem is: I am working on already designed pages, the pages contains ta...
I need to implement an alert-type modal popup that appears with a dimmed background. The problem is, we may have other elements on the page being showed that are also modals with z-indexes above default.
How do I determine the appropriate z-index that makes a given element the highest-layered element?
(jQuery is fine.)
...
My html page is using java applet and it has javascript callback functions. With IE and Firefox, we can see a hand cursor when mouse is over the link where there's javascript callback function. But with Safari, we cannot see hand cursor unless we click on java applet area to activate the applet.
Please advise if you have a solution that...
I have simple html table on the page. I want to add horizontal-vertical scroll bars to the table when the browser is resized to continue showing the table content.
How can I do this?
...
I'm attempting to develop an application that scapes html of a site for relevant data and then display it back to the user in a more UI friendly way. I'm assuming that you can start a webView by
mWebView = (WebView) findViewById(R.id.webview);
but never setting the content to the actual view. So now my question is, can I take the html...
If I insert new INPUT with new ID, how do I enable that new INPUT to have the calendar popup with jsDatePick?
http://javascriptcalendar.org/javascript-date-picker.php
Anyone tried?
...
I know that when generating html that needs to be viewed in Excel, if I want to ensure that <br> tags don't cause a new row to be generated, I can specify
<style><!--table br {mso-data-placement:same-cell;} --></style>
In the <head> section.
What do I need to do if I want the same behaviour for lists (i.e. for content inside of <ul> ...
Hi there. I'm currently trying to write some javascript to loop through the elements in a table, but was wondering what the best practise was. I could just call .cells[] on my table object to get all of the cells in the table, but the W3Schools page says that this is not a W3C standard - should I avoid it then?
The other option is to us...
sometimes, I found too mary people like to insert tag in tag, sometimes, they place two tags. I want to know, why do this?
...