html

How to quickly surround text with html markup in vs 2008?

Hello, I am working with the vs 2008 editor. Is there a way to take a piece of text for example, highlight it and use shortcuts to quickly add markup. For example, lets say I have the text, I went to the store and I want to bold the line the store, I have to type <b>the store</b>. Is there a quicker and easier way to do this? Thanks...

"correct" way to do simple 2 column formatting in html

Hi - This is a challenge for the css gurus out there. I want to show 2 links on my page, on the same "line", one on the left, one on the right. The code below works perfectly well in terms of visual presentation, but I'm aware that tables to format a page are not the done thing. Can anyone tell me what the "approved" markup for this s...

Javascript Not Firing after Dir Reorganization

Ok, so here's the situation. I'm working on a site that allows people to upload things to a database that are then pulled to the frontpage so people can see them. It is a pretty straightforward site and I had it working real well but i was developing everything at ../html/backend for the sake of simplicity and to make sure nothing was s...

CSS tooltip for simple text

I would like to use tooltip in a web page with the following constraints: Tooltip should work with simple texts, not only with anchors. I do not want to use javascript, only css. I would like to make it work at least in Firefox and Internet Explorer. A promising candidate is Eric Meyer's solution, but it uses anchors. Loadaveragezero...

What's the need for XHTML?

In an interview I was asked a question that I'd never thought about, which was "We already have HTML which fulfills all the requirements of writing a web page, so what's the need for XHTML?" I Googled a lot and also read many articles, but I'm not able to get properly why XHTML has been introduced. Please explain to me. ...

How can I highlight a subset of the text in an input box?

I'm trying to figure out if it's possible using Javascript to highlight a specific range of data in a text field. textfield.select(); That ^^ works to select the entire text, but for all my googling I haven't stumbled upon a way to select, for example, characters 2 through 10 of the entered text. Is this possible? Thanks! ...

HTML Examples - Syntax Highlighting and Encoding for Blog Posts

What is a really simple online tool for encoding and color coding HTML docs and snippets from reposting into blog entries? I found this one: http://www.stevetrefethen.com/highlighter/ but was looking for some alternatives. UPDATE: Sorry, I should have mentioned that I'm looking for more of a "one off" tool. I won't be posting code ...

I want to break up an HTML form onto several JQuery UI tabs and have one "ALL" tab that has all the bits of form in one.

I want to have a large HTML form broken up into several smaller sub-forms in a JQuery UI tabs layout. But I want to have one special "All" tab that has all of the sub-forms on that tab. So when a user clicks on the All tab, they can see and edit all of the form fields that are normally divided up on several tabs. How could I easily do...

Layout a HTML list in evenly-spaced columns

I'd like to lay out a list such as the following in 2/3 evenly spaced columns <ul> <li>one<li> <li>two<li> <li>three<li> <li>four<li> <li>five<li> <li>six<li> <li>seven<li> <li>eight<li> <li>nine<li> </ul> One solution is to separate the list into two lists and float one of them right, possibly with a margin, e.g. ...

Reorder Divs

How would I go about reordering divs without altering the HTML source code? example, I want divs to appear in order #div2, #div1, #div3, but in the HTML they are: <div id="#div1"></div> <div id="#div2"></div> <div id="#div3"></div> Thanks! ...

Create button in Outlook 2007 message

I am attempting to create a outlook 2007 message and place a button within the message. I believe this was at one time possible. However I am reading that this may no longer be possible in Outlook 2007. Can anyone confirm this? ...

How can I monitor users clicking on links via Javascript?

I've been tasked with determining if it's possible to detect link clicks with javascript. I'm aware of the onclick attribute, which gets me part of the way there. Other then that, I don't know what the best approach is. I've already told my boss that it will likely involve some form of ajax, which probably involves a big library, which...

How to slice PSDs?

Does anyone have any links/information to share on how to slice PSDs? It has always seemed beyond me. Any help would be appreciated. ...

Choice in order of priority in forms (ordering 5 choices in order of priority)

I am trying to create a form for my php/mysql application. I want my users to list the priority of thier choices where they have 5 options and they have to choose each in order of preference ...

<div> border does not enclose all of the div's elements

i'm now starting designing with proper mark-up and organization. and now, i have problem with my div border. it does not enclose all ot the div's content. this is my html snippet: <div id="paneMiddle"> <div id="subPaneLatestItems"> <p id="latestItemsTitle">Latest Shop Items:</p> <div> <img src="img/flower1...

How to strip HTML attributes except "src" and "alt" in JAVA

Hi, problem: How do I strip all attributes from HTML tags in a string, except "alt" and "src" using Java? And further.. how do I get the content from all "src" attributes in the string? :) ...

Using PHP to create a PDF from a mix of plain text and HTML text

I have a form with 5 fields, two of which are textboxes extended with tinyMCE, the rest are simple inputs of type text. I need to generate a PDF from this input. I understand that I can use Zend_Pdf to generate the PDF and include the plain text data. But how, for example, can I include a bulleted list from the tinyMCE fields? Would ...

Empty HTML tags

I have a lot of empty span tags and so on in my code, due to CSS image replacement techniques. They trigger a HTML validation warning. Should I care? Thanks. ...

What are the advantages of DIVS over tables?

Hello, I am curious as to what are all the advantages of using DIV's over Tables and vice versa. Thanks, XaiSoft ...

Custom Image Handler: Caching Strategy

The Scenario I am building a custom CMS for a communications application. The users can upload images to the server and then later reference them in posts they write using markdown. Images are stored in a database and referenced with a url of the form images/{id}. A custom image handler retrieves these and sets a far future expires h...