html

CSS Style Sheet is Not Working?

I have the following code in my stylesheet... body { background-image:url('Background.png'); } td.Header { background: purple Url("Header.png"); height:100px; width:100%; border:5px; border-style:solid; border-color:blue; } Now This is how I use it in my html: <table align="center" width="800px">...

XHTML - adding new elements

Hi! How can I add new tags to the xhtml document without making the markup 'invalid'? for eg: instead of <span class="time"> I'd like to use <time>. Is this possible? because I've seen a facebook app do something like this. ...

Tool suggestions for mocking up web templates

I have traditionally done "back-end" parts of websites. However, I am working on a project in my spare time that will necessitate creating my own HTML templates, and I am looking for a toolset. I am fairly comfortable with manipulating HTML and CSS, and although my Javascript is amateur at best I want to use this side project to really...

HTML meta "keywords". Worth including?

Do you use "keywords" meta in your site, knowing that Google does not use them (and has no plans) in page ranking, and perhaps even search? ...

Running a Python Script on a server (Does it have to be in /cgi-bin/)?

Right now I have a script thats http://www.example.com/cgi-bin/foo?var1=A&amp;var2=B Is there a way that I can have it run outside of the cgi-bin directory? Like could I have http://www.example.com/foo/?var1=A&amp;var2=B Thanks! ...

User Interface: Multiple choice select boxes

I have a form in which a user can select multiple options in a select menu. From a user experience perspective, what do you think is the most intuitive / best option? A) Use the "multiple" attribute for select element (then you can hold down control and select multiple options). ADV: Simple, no coding required. DIS: Not intuitive. B) H...

HTML-Two elements next to each, one absolute width and the other relative

I have an 'iframe' next to a 'form'. The form needs to have absolute width (width:450px), and the width of iframe will be relative as it will be whatever is left from the form. So for the iframe I will need something equivalent to 'width: 100% - 450px'. How can I achieve that? Thanks in advance. ...

jQuery / JavaScript - string replace

Hi Assuming we have a comment textarea where the user can enter this code: [quote="comment-1"] How can I replace that code before the form submits with the actual html content from <div id="comment-1"> ? ...

Real time RSS display on web page (best practices and source codes)

Hello guys, i have a php script who parser a rss and give me the data in a know pattern. Im very new with ASP, JavaScript and Jquery so i dont have any idea of how to autoupdate the script and display the new data with a smooth animation (see this example, that exactly what i want). Thanks for the support and if you know a good script to...

Is it possible to make part of the browser transparent to display underlying desktop/windows in a web app?

I am developing a web application (meant to run work as a rich client and able to afford requiring any (even nightly build) version of Firefox of Chromium). The application interface background is meant to be transparent (showing underlying windows or desktop). How can I achieve this? Following standards does not matter but would be nic...

Changing a page element's style with javascript using the <a> tag and onclick?

I have a div block <div id='block'> <a href="#" onclick="Document.getElementById('block').style = 'display: none;';">Hide</a> </div> and I want to be have a link that will hide the block when clicked, I tried the above but it doesn't work I'm not sure how to get this to work, any ideas or guidance? ...

Nest lists in paragraphs in html

It seems that (strict) html doesn't allow nesting any non-inline elements inside a <p>, but then how am I supposed to render a paragraph that contains a list (something that occurs often in natural texts). I've seen three answers that all seem unsatisfying: Lists should not happen inside paragraphs. (I'm not going to go into a cultur...

How do I change the line-height with this code?

<font color="#FFFFFF"><span style="float: left; position: relative; top: 25px; left:100px">text here<br>and more text here....</span></font> ...

Jquery - mousedown function with multiple class elements

Hi all, Im super new to Jquery so this may be a quick one. I have a mousedown function on a class named "thumb_resize". I have multiple divs named thumb_resize. So, the first time the mousedown function gets called it works perfectly, but it breaks when I try to call it from another element. Maybe its easier if I show you: http://www....

How to convert markdown (WMD) text to plain text

Hello, I am saving both the markdown text and html versions of text in my database. I have a question and answer site. When users browse the questions they are viewing snippits of markdown. They should only be viewing plain text just like when browsing questions on stackoverflow there are no markdown text or html text shown. Is there a w...

css for disabled radio button

by default, when we put disabled="disabled" for <input type="radio".. . it will turn grey color. what is the css i need to use the change the color ? can i do this instantly with jquery ? ...

What are the good javascript libraries for drawing shapes?

I'm wanting to create various shapes in HTML pages and am looking for a decent javascript library to simplify the task. What type of js libraries exist for drawing shapes on the web? I am familiar with Raphaël for SVG - but don't really know what else is out there for SVG or non-SVG drawing. ...

Download files with Perl

I have updated my code to look like this. When i run it though it says it cannot find the specified link. Also what is a good way to test that it is indeed connecting to the page? #!/usr/bin/perl -w use strict; use LWP; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); my $browser = LWP::UserAgent->new; $browser->credentials( ...

Layout an ASP.NET web-application without the direct use of html and css

Are there possibilities to layout an ASP.NET web-application without directly using CSS and HTML ? I am mainly coming from the desktop-development world and I am in the first place familiar with the usage of layout- and container-controls like panels, tables, and so on. ...

Show textarea only when it has some value.

Hello, I have Ajax page where I get search response inside textarea. Here is the code <form onSubmit="checkDomain();return false;" id="ajaxDomainForm" action=""> <input name="domain" type="text" id="domain" onKeyUp="checkForChange();" maxlength="255"> <textarea name="domainsAvailableInput" id="domainsAvailable" readonly="readonly"></t...