html

How to have a background image wider than the content area of a website (without scrollbars)

I've been given a design for a website, and am trying to implement it. One problem I've run into is that the design has some background images (one for the header, one for the body, and one for the footer of the site) that are wider than the main content area of the site. Simply putting them in as background images doesn't work, since ...

Facebook like login form

Hello everybody, I've already asked question similar to this some time ago, I thought I solved my problem but now it appears I didn't. Dealing with this problem for some time now and I have absolutely no idea how to do it. The answer I got from previous question works but when I resize the window the password label drifts away when you ...

Delete <dt> without <dd> with jquery

I have a definition list and I need to delete all the <dt> tags who doesn't have any <dd> In this particular case: Herramientas, Suplementos, Repuestos, Herramientas and Anti pinchaduras The list can vary wildly because it's stock dependent (any category <dt> can get empty) I tried this $('dt+dt').each(function() { $(this).remove(); ...

Label Direction

I have a Grid with GridTemplateColumn that contains Label. the grid direction set to rtl and I want the lable's direction to be ltr. how can I do that ? I tried: <asp:Label style="direction:ltr" ID="Label1" runat="server" Text="Label"/> but it didn't work ...

How to make Input TextBox with Style Mathon ?

How cam i find and copy for this ? ...

XSLT to convert XML schema to HTML

I've made an XML schema but I don't know if I need an XSL stylesheet to show it in HTML. Do I need one? If I do, has anyone got an example which I could see and learn how to make one for my XML schema? ...

How to remove more than one spaces in between words and sentences of contents source code?

How to remove More Than One Spaces In Between Words of contents in dreamweaver source view. when i copy any data from MS word and paste in Dreaweaver. dreamweaver shows many unneeded spaces in source code. which is showing also in html output like extra space betwwen word and extra space after "." fullstop. ...

Integrating a GWT Dialog into an existing HTML application

Hi all, I have a situation where I need to integrate a gwt dialog (which to the best of my understanding is implemented as a div with z-index manipulation) into an existing html page. There are two scenarios: 1. Which is the preferrable and more complicated is where i give the host html page another page which they embed as an iframe and...

Need help with layout (jQuery)

I already have this layout created using CSS, but its plagued with issues in IE6 and 7. So I'd like help recreating this layout using jQuery (and jQuery Only) for max compatibility. The only difficult part is the vertically and horizontally resizable (on browser resize as well) content area. Edited to add: I need to use jQuery for res...

Div over iframe that is from iframe itself

Hi, I have a div that is contain inside an iframe from a external html <iframe src="test.html"> The html based "context menu" need to be on top of the iframe but the html code of the context menu is in the iframe itself. A pure CSS solution is preferred. ...

Pagination in JavaScript generated HTML page - not for the faint of heart

I am working with some legacy (circa 2003) javascript and html code and need some help paginating the html output that the following code generates. To see this in action - visit the site and click on the Capacity tab. Enter values in each of the fields and click on the Capacity Chart button. The bigger the numbers the larger the output...

How to add anchor tag to a URL from text input

I want to be able to take user inputted text in a comment field and check for URL type expression, and if it exists, add an anchor tag (to url) when the comment is displayed. I am using PHP on the server-side, and Javascript (with jQuery) on client, so should I wait to check for URL until right before it is displayed? Or add the anchor ...

Inject String into Page Source in Real Time...Possible ?

Hi, I wonder if we can add a string into pagesource in real time.. to give an example, and the thing I want to do is to control timestamps of Divx Videos.. Let me give u an example.. http://www.movshare.net/embed/v5alr3gpmu2nt/?width=720&amp;height=306 when we push play button in this video link it will generate following paramete...

Fastest Method to Learn Web Design for a Developer

I am a Web developer and in my projects I have noticed that my weakest point is not being good at the front-end design. Relying on other designers can be annoying if they are not able to produce as quickly as I want. My perspective on HTML/CSS is that it is basically a big hack that amazingly works. There are too many CSS and browser ...

Why does the <link> ‘title’ attribute cause browsers to ignore my styles?

The following html document (together with the CSS) fails to render the styles in b.css. <!doctype html> <html> <head> <link rel="stylesheet" media="screen" type="text/css" title="A" href="a.css" /> <link rel="stylesheet" media="screen" type="text/css" title="B" href="b.css" /> </head> <body> <div id="A">A</di...

Position of Div in relation to the Top of the Viewport

Hi Everyone: I am wondering how I can get the amount of pixels (or measurement in general) from a div to the top of the window in Javascript. I am not looking for an offset y in relation to the document, simply to the top of where the browser is displaying. I tried the "answered" solution here: http://stackoverflow.com/questions/21170...

javascript, can't retrieve sibling nodes

I've been at this for a while and I can't seem to crack it.. I have some javascript trying to hide sibling divs, besides the one that is passed through the function. Here's the html: <div id = "chat_content"> <div id = "chat_content_1">This is div one</div> <div id = "chat_content_2">This is div two</div> <div id = "chat_content_3">T...

Convert Plain Text Hyperlinks into HTML Hyperlinks in PHP

I have a simple commenting system here... http://affbuzz.com/comments/7299a55137def55917a5dc6c4fe0f261af8a4217 ...and people can submit hyperlinks inside the plain text field. When I display these records back from the database and into the web page, what RegExp in PHP can I use to convert these links into HTML-type anchor links? Bonu...

Javascript Array in Class = How to make it valid

I am using this jQuery validation library on my website. It requires me to put the validation rules in the class part of the input tag. ie <input class="validate[required,custom[onlyLetter],length[0,100]]" name="firstname" type="text" /> Now this causes me to end up with code in mine that looks similar such as: <input type="text" ...

Disabling browser print options (headers, footers, margins) from page?

I have seen this question asked in a couple of different ways on SO and several other websites, but most of them are either too specific or out-of-date. I'm hoping someone can provide a definitive answer here without pandering to speculation. Is there a way, either with CSS or javascript, to change the default printer settings when some...