I have this code:
<style type="text/css">
body > div { height: 260px; overflow: hidden; }
div div { float: left; height: 250px; width: 250px; margin: 1px; background: #ccc; }
</style>
<div>
<div>first 1</div>
<div>first 2</div>
<div>first 3</div>
<div>first 4</div>
<div>first 5</div>
</div>
I wonna give ma...
I have the following problem, where an LI item in the list appears to be moved from the rest of the LI items:
Has anyone faced a similar issue? Any solutions/hacks that worked?
...
Hello,
Using PHP, what would be a simple way to use XQuery to find the first instance of a given HTML element and then replace all the HTML inside that element?
So far, I've got this:
$myHTML = '<strong>Some <em>HTML</em></strong>';
$domDocument = new DOMDocument('1.0');
@$domDocument->loadHTML($content);
$xpd = new DOMXPath($domDocum...
Is there any difference between using <img src=pathto.png /> and <img src=data:image/png;base64,encodedpngdata... /> from the perspective of the server?
In the case of src=pathto.png will the server just encode the image and send it to the browser?
...
Hi,
Does anyone know how to generate an HTMLDocument object programmatically in Java without resorting to generating a String externally and then using HTMLEditorKit#read to parse it? Two reasons I ask:
Firstly my HTML generation routine needs to be very fast and I assume that parsing a string into an internal model is more costly than...
In SharePoint we have the the richhtmlfield that allows the user to edit the html content of the page. How can I change the css that is applied when they select H1, H2, Normal etc. from the paragraph formatting button?
I would also like to change the css applied to the tables added to the richhtmlfield, is this possible?
All the best
...
In html/css can I achieve this?
1.
1.1
1.2
2.
2.1
2.2
using LI and UL tags?
...
We are developing a web application that should be accessible from a mobile phone.
It involves a simple text-only tree catalog.
To avoid extra round-trips to the server to expand the tree items as you click on them, I decided to use WML.
It allows preloading multiple <card>'s in one document and fast browsing between these <card>'s.
...
Hello friends This is my code
NSURL *url=[NSURL URLWithString:@"http://www.engadget.com"];
NSString *webPage=[[NSString alloc]initWithContentsOfURL:url
encoding:NSUTF8StringEncoding error:nil];
In the webPage string i got an html page of the link... In that string there is lot of tags and text... I want to ...
What is the best solution to convert PDF documents to be viewed in the browser as HTML? The site has several PDF documents and the visitor can click on view as HTML and this should be viewed on the screen as an HTML file.
Standard website running PHP, Linux, Apache.
...
Does anybody know of a good tool that cleans up files with php and html in it? I've used Tidy before but it doesn't do a good job at leaving the php code alone. I know there are various implementations of tidy but does any tool reign champion specifically for pages with html and php?
Thanks
...
I want to position a textbox and a button next to each other in an 'elastic' or 'liquid' way (what's the correct term?) like so:
When placed in a container of arbitrary width (incl. browser window resizing), the button should right align and take up as much width as it requires while the textbox should use the remaining width. Unfortu...
I know that onload event waits for page resources to load before firing - images, stylesheets, etc.
But does this include IFrames inside the page? In other words, is it guaranteed that all the child Frames' onloads will always fire before the parent's does?
Also, please let me know if behavior varies between browsers.
...
For design purposes, I want to copy the exact HTML that is created by some javascript after the page loads. Firebug shows me what's going on, of course, but I really just want some static text that I can copy and paste at will.
...
For some reason, one of the inside borders disappears on my table whenever I change the default height with some CSS.
HTML:
<table class="event">
<tr>
<td>Start Date</td>
<td>2009-6-2</td>
</tr>
<tr>
<td>End Date</td>
<td>2009-6-8</td>
</tr>
<tr>
<td>Location</td>
<td>Vail</td>
</tr>
</table>
CSS:
...
Is it possible to get the current URL that an IFrame is set to if it's loading an outside page (say, Wikipedia)? I've seen a few people say that it is impossible if it is not on your own server, but the places I've found that were 4 years old.
If it is impossible, is there an easier way to display a page inside another page and still h...
Would it be possible if a user clicked on a link inside an iframe showing an outside site to have the webpage request be routed through the server that the iframe is hosted on?
Example:
Iframe on somesite.com showing google.com
User clicks a result link to someothersite.com
The request is sent through somesite.com's server and is logged...
My initial strategy at developing forms was like this: the form post back to the same page and in the page handler I start by looking for POST variables and taking appropriate actions, then display the page content. It was all looking rosy in the beginning. I would place a hidden field inside my form and the page to keep track of current...
I'm having some difficulty with a specific Regex I'm trying to use. I'm searching for every occurrence of a string (for my purposes, I'll say it's "mystring") in a document, EXCEPT where it's in a tag, e.g.
<a href="_mystring_">
should not match, but
<a href="someotherstring">_mystring_</a>
Should match, since it's not inside a ta...
BACKGROUND: WYSIWYG HTML editors tend to be both "intuitive" and "smart". Intuitive means someone can reasonably edit HTML without knowing the inner guts of how HTML tags actually work. Smart means that the user does not have to worry about adding the HTML or HEAD or TITLE tags, because the editor does that for them.
PROBLEM: These days...