I'd like to create two column layout for my list using CSS.
Let's say I have 5 items, the presentation would be:
<item 1> <item 4>
<item 2> <item 5>
<item 3>
How can I do this with HTML and CSS? Keep in mind that the list length is variable.
I'll be generating the HTML server side using C#, that will provide more flexibility.
...
I'm trying to glue together two web services by passing a value from one to the other, unfortunately there's no API or clear way of hacking up the search query so I need to set the value of a input inside an iframe.
Here's the markup for the horrible iframe.
<form id="searchForm" method="post" action="/search/initialSearch">
...
I found the following code somewhere, but I am not understanding the code properly.
ArticleVote.submitVote('no');return false;
Is ArticleVote a class and submitVote() a function of that class?
Or what does the above code mean? And is there any concept of classes and objects in jQuery or in traditional JavaScript? How to create them?...
I have a javascript function that checks for a date range. Is there any way to check if a user has input a valid date in a textbox, regardless of format?
function checkEnteredDate() {
var inputDate = document.getElementById('txtDate');
//if statement to check for valid date
var formatDate = new Da...
I'm developing a web application.
I need to display some decimal data correctly so that it can be copied and pasted into a certain GUI application that is not under my control.
The GUI application is locale sensitive and it accepts only the correct decimal separator which is set in the system.
I can guess the decimal separator from Ac...
Hello,
Can anyone tell me how can I add an image over another image without using Z-index or Z-order?
Thanks!
Adrian :)
...
I am assisting with the creation of a new website and tend to run into simple errors as I go. The following code is being used to style a link:
a.homepage-employment,
a:visited.homepage-employment {
display:block;
padding:5px;
background-color:#055830;
color:#fff;
width:100%;
}
a:hover.homepage-employment {
display:block;
padding:5px;
...
I have the following regular expression which is used to give me the tags in the HTML string:
<[^>]*>
So, if I pass in the following:
<b> Bold </b>
Then it will give me:
<b>
</b>
How can I make it to give me:
<b>
Bold
</b>
UPDATE:
Here is another example to get the big picture:
If this is the text:
<b>Bold</b> This ...
Hello, I have a HTML table like this:
<table border="1">
<tbody>
<tr>
<td><a href="#" class="delete">DELETE ROW</a>COL 1</td>
<td><a href="#" class="delete">DELETE COL</a>COL 2</td>
<td><a href="#" class="delete">DELETE COL</a>COL 3</td>
<td><a href="#" class="delete">DELETE CO...
I'm trying to put together a HTML POST-ed form that has two fields--a file upload, and a text field. Since the form has a type multipart/form-data for the file upload, I can't get at the text field through the normal PHP $_POST variable. So how can I get at the text field in the form with PHP?
As per requested, here's some code, basic...
I want to have a anchor with a specifc height and width. There is no text on it since it's meant to be put in front of a certain area of the page.
Here is the code:
<a href="/" style="width:370px;height:80px;display:block;position:absolute;"></a>
It's working fine in everything but IE6 and IE7. If I add a border, I can see that the a...
So the utility Diff works just like I want for 2 files, but I have a project that requires comparisons with more than 2 files at a time, maybe up to 10 at a time. This requires having all those files side by side to each other as well. My research has not really turned up anything, vimdiff seems to be the best so far with the ability to ...
I have a .net datagrid with some 20 columns. I need a column's visibilty to be toggled based on the click of a button using javascript. Any ideas?
...
Hey guys, for the page I am doing needs a login authentication using Twitter (using tweetphp API). For test purposes I used this code below to do a successful login:
if (!isset($_SERVER['PHP_AUTH_USER'])){
header('WWW-Authenticate: Basic realm="Enter your Twitter username and password:"');
header('HTTP/1.0 401 Unauthorized');
echo ...
I'm letting users upload a profile picture for themselves on my site. These images are coming in on all different formats and sizes. When I display these profile photos I want them to be of a uniform pixel size without distortion.
Do I have to have the user crop the image right when they upload it?
Given a randomn image, how can I sc...
I currently have a small-midsize website with .htm extensions. I have redesigned the full website, this time using a .aspx extension. I want to issue 301 redirects to keep my search engine rankings, but am unsure of how to do so from an .html page in a spider friendly way. With research I have repeatedly encountered references to ISAPI r...
We all know that the contents of an HTML page aren't just the data between open and closed tags, for example, <p></p>.
Beyond image "alt" and any "title" attributes, what HTML offer to me that I should consider as a content?
Any suggestions?
...
Is there a integer element for a cookie? I need the cookie to increment by 10 everytime a certain button is pushed. How can I start the cookie at 0 the first time and it's next value is based on it's current state.
document.cookie += 10;
gives 10, then 1010, then 101010.
Right I dea but I need integer values-
Need 10, 20, 30, etc...
...
I have a text file that has data wrapped between tags. The tags are:
<title>
<url>
<pubDate>
So, the entries look like this:
<title>title 1</title>
<url>url 1</url>
<pubDate>pubDate 1</pubDate>
<title>title 2</title>
<url>url 2</url>
<pubDate>pubDate 2</pubDate>
<title>title 3</title>
<url>url 3</url>
<pubDate>pubDate 3</pubDa...
Even with HTML5 being the path forward for HTML we get two options as developers: XHTML syntax and HTML syntax. I've been using XHTML as my main doctype for 5 or so years so I'm very comfortable with it.
But my question is given that non-xml syntax will be allowed, is there any reason to stick with a valid XML syntax? Do you gain an...