html

Getting CSS to "float: right" and vertically center

Hello.. I am having some problems getting a small piece of text to be centered while floating next to an image. <html> <head> <style type="text/css"> img { float:right; } </style> </head> <body> <p>In the paragraph below, we have added an image with style <b>float:right</b>. The result is that the image will float to the right in the p...

Displaying the values stored in a session(using php) into a field

Here's the situation, I created 6 pages,each of which has some text fields.I stored the values entered in these text fields in php sessions.now after the user fills up these text fields,he will be going to a confirmation page,where he will be verifying the details and then the values are submitted. Now in this confirmation page is ther...

Captions in side by side pictures?

How do I put pictures side by side in wordpress but with captions underneath each one. I found that I could use the tag to put pictures next to each other but adding captions keeps messing this up. The caption part looks like this: [caption id="" align="" width="" caption=""] [/caption] Can someone help with this? (Small sub-quest...

Getting the contents of web page and processing it (Print or save to file)

I am a Real Estate appraiser and have some limited experience with vb and .net. I have a task which I perform which requires me to go to the conuty appraisers web site and print a copy (to image bmp or jpg or directly to the default printer) of the current public record info for anywhere from a few pages to 1,000 plus records at a time. ...

How do I retrieve the attribute of an element using Swing's HTMLEditorKit.ParserCallback?

I am extending HTMLEditorKit.ParserCallback to parse HTML. I am matching on a certain element type in an overridden method like this: @Override public void handleStartTag(Tag t, MutableAttributeSet a, int pos) { if (Tag.DIV.equals(t)) { String id = (String) a.getAttribute("id"); String clazz = (String) a.getAttribute...

any special php function to make a string 'url' friendly for address-bar ?

Is there any such function? If not, anybody got one? I need to make a strings submitted by users 'url friendly' because I will later on use it as an url to a post on my site. Thanks BTW, its PHP! ...

Increasing HTML form size

Hello, For the HTML form below, the entry field, button, and entry text all seem to be about 12 px. What is the best method of increasing them all? I think I'd like to have them at about 14 px. Thanks in advance, John <div class="searchbox2"> <form action="sitesearch.php" method="get"> <label> <input type="text" class="name=...

IE7 Display problem with parent & child background images

I'm having a problem with IE7 displaying a table (don't worry it's used for tabular data) where the table row has a background image which repeats on the x-axis and the table division (in this case a TH) has seperate background image, which doesnt repeat at all. Here's an example: Here's the CSS: <style> table, td, th, tr { border...

jQuery: Easiest way to wrap an image tag with an A anchor tag

This is a simplified version of my problem. I have two buttons, and one image. The image code is something like this <img class="onoff" src="image.jpg"> When I press button one I want the image to be wrapped in an A tag, like <a href="link.html"> <img class="onoff" src="image.jpg"> </a> And when I press the other button, the A ta...

How do I select a group of child elements from a parent element of a particular class?

If I have a table as in this example: <table class="detailView"> <tr> <td>Value1</td> <td>value2</td> </tr> </table> How do I style the <tr> and <td> elements only if the table is of class="detailView"? ...

Find following tag with pyparsing

I'm using pyparsing to parse HTML. I'm grabbing all embed tags, but in some cases there's an a tag directly following that I also want to grab if it's available. example: import pyparsing target = pyparsing.makeHTMLTags("embed")[0] target.setParseAction(pyparsing.withAttribute(src=pyparsing.withAttribute.ANY_VALUE)) target.ignore(pypar...

Why isn't the table centered in Explorer?

This is a HTML email. I have 2 tables inside each other. 1 set to 100% and another inside 700px wide. This is the HTML: <table width="100%" border="0" align="center" cellspacing="0"> <tr> <td width="700"> <table width="700" border="0" align="center" cellspacing="0"> <tr> <td colspan="2" align="center"><img ...

How to carry out MVC in developing html/js/css?

Is it possible? The ultimate goal I want to achieve is that: When I want to add a new feature to a page,just do something like: importhtml(html.file); importcss(css.file); importjs(js.file); ...

html table problem with doctype

I am trying to allign a table with an input so that the table creates a google-like drop-down. I am using jquery to retrieve the position and dimensions of the input element and then css to position the table. Things work pretty smooth when I don't use DOCTYPE. Now, when ANY DOCTYPE is included on the page things go wrong (weirdly not i...

Link structure for sorting an HTML table built using PHP

I appreciate any help I can get with this problem: I have 2 search forms, one does a keyword search and the other does a search by country, state and city (with an input for each) The results are output to a table. The header row contains a link for sorting each column. Problem is I don't know how to build my GET url string for sorting...

using javascript find the height a div is going to take before it is rendered

I have a div which contains different amount of text at different moments (determined by what the server decides to send). I want to find the height this div would take if rendered. At the point when I want the height, the div is not being rendered (display:none). The display is to be set to 'block' later. I have tried .offsetHeight and...

Flash vs. (Ex)Canvas vs. SVG/VML

Hi Guys, If you were to design a graphics-heavy interactive web application (say a game like Mario Bros.) today, which of the three available technologies would you prefer - Flash, (Ex)Canvas or SVG/VML? What parameters would you consider and how would you rate these technologies on each parameter? I can think of the following: a) Spe...

To find out if a div has a scrollbar

If a div is set as overflow:auto, how can I find out (using plain JS) if a scrollbar (Vertical / Horizontal) has been rendered? ...

HTML Tags don't change on AsyncPostBack

To regenerate the problem, please create a project in VS with the following codes: This code inside the form tag of the MasterPage, and nothing for the code behind. <asp:ScriptManager ID="scmManager" runat="server" AsyncPostBackTimeout="3600" /> <div> <div id="divCContents"> <div id="divSideBar"> <asp:contentpla...

What does default CSS's browsers depend on ?

Hi (please excuse me for my ugly english ;-) ) Do you know if the default CSS of any user agent ... : depends on its release number ? depends on its layout engine ? depends on the release number of its layout engine ? depends on the OS ? depends on the OS release number ? If yes (for any choice), have you any example do demonstrate ...