html

jQuery, CSS: Two divs, how can I make them "show"next to each other?

Hi, my client has asked me to make exactly what's happening in this jsFiddle example. All I need is to make them appear next to each other. As you see when one is fired it displays in the correct place, but when the other is fired, it pushes the other down. How can I ensure they always show next to each other? Note: This is VERY si...

Getting the height of a frame in javascript

I'm currently working in a system with a bit of a legacy presentation layer -- it uses frames (actual, in a frameset frames). To get some event handling up and running I would like to get events when the frame resizes or at least be able to measure the height of the frame somehow. There seems to be no cross browser way to do this. Has ...

Equal row lengths in a table

I have a table made of of several records, with the rows having different number of records per row. What I'd like to have is for the rows with less records, I want to have them being equal in length to the longest row. Currently what I have comes out like below: I've done this using this bit of code: <table> {% for...

Removing unclosed opening <p>tags from xhtml document

I have a big xhtml document with lots of tags. I have observed that a few unclosed opening paragraph tags are repeating unnecessarily and I want to remove them or replace them with blank space. i just want to code to identify unclosed paragraph tags and delete them. Here's a small sample to show what I mean: <p><strong>Company Registra...

Recommended max-width for 1024x768

What is recommended width for wrapper blocks (main containers) on 1024x768 resolution? There should not be horizontal scroll on that width in most available browsers. ...

Tooltip of an "img tag" inside an "a tag"

Hello. I'd like to know the difference between title attr of the tag "a" and alt attr of the tag img. Also, wich should I use when I have an image inside an a? Just like in this case: <a class="duplicar" href="#"><img src="Images/btnSegDuplicar.gif" alt ="Duplicar" width="76" height="20" /></a> Right now, as you can see, I'm using t...

how to return xml data document constructed on the webservice to clientside ajax jquery call

I have a webmethod which is trying to construct xml data document and return to clientside but i am not able to guess whether the error is on clientside call or webservice return method.please can anyone help to sortout this logic [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Xml)] public XmlDataDocument GetList(stri...

How to get content currently being displayed in browser viewport

How can I get an indication of what part of a long document is currently being displayed? E.g. if my html contains 1,000 lines 1 2 3 ... 999 1000 and the user is near the middle showing the 500th line then I would like to get "500\n501\n502" or something like that. Obviously most scenarios would be more complex than t...

html table. colgroup tag not working??

Hi, My problem is simple. I want different styles on each column of a table. I've read that you could do that by using <colgroup> or <col> but i had no luck I have an exemple here and nothing seems to change. am i doing something wrong? will this work on xhtml? Thxs for your help :) BTW: i know i could add a "class" attribute on each...

stop word-wrap in html

i don't want word wrap but this is being. i have set width more than text length. but this is being break. so how can i stop word break. css .menu{ float:left; width:120px; height:34px; padding:12px 6px 0 6px; color:#cc8d50; } ...

Removing unclosed opening <p>tags from xhtml document

Possible Duplicate: Removing unclosed opening <p>tags from xhtml document I am having big xhtml Document consisting lots of tags. I have observed that few unclosed opening paragraph tags are repeating unnecessarily and i want to remove them or want to replace them with blank space. i just want to code to identifying unclosed...

C# method to convert html-markup into JavaScript-compatible string

I believe there should exist a known method for converting this: <div class="singlePane pane"> <div class="tripleColumn"> <!-- TODO: --> <div class="col"> <div class="captionedLink"> <div class="icon" style="background-position: -26px 0px;"> blah blah INTO THIS: \r\n \u003Cdiv class=\"singlePane pane\"\u00...

Open a new browser window/iframe and create new document from HTML in TEXTAREA?

I'm trying to write a web application using the new offline capabilities of HTML5. In this application, I'd like to be able to edit some HTML—a full document, not a fragment—in a <textarea>, press a button and then populate a new browser window (or <iframe>, haven't decided yet) with the HTML found in the <textarea>. The new content is n...

pure css hover show another element possible?

<a href=""> text here always show <div style="display:none;"> hide text here </div> </a> a:hover{ //when hover show 'hide text here' ; when not hover, hide it again } possible to use pure css to do this effect? ...

Submitting a dynamic form using jQuery and AJAX

Hi guys, I am cloning a HTML drop down list using jQuery, the problem I have now is that there is no limit to the amount of cloned sections, and I have to capture all of the sections into a mySQL database. How can I get all of those different sections with different ID's into a mySQL table, since I am using POST, how will the receiving ...

problem with the css overflow: hidden property

Hi everyone! I'm having a problem with displaying a popup that's rendered within the html and then just toggled to show and hide it. My problem is that this popup sits in a div that has an overflow: hidden property and it means that some of the popup background graphics cross over the width of the overflow: hidden div. this causes a di...

Nine-patch images for web development

I'm wondering if there is something like 9-patch in Android, but for web development? Disclosure: I have no idea about web development at all, but I was curious to know if it exists. And a simple web search with the term 9-patch didn't bring up any related results, so I figured it has either another term or it doesn't exist or is not us...

Tool for displaying text/code ratio in html

I am looking for a firefox/firebug plugin (or any OFFLINE tool is OK) to display the ratio of real text/markup. There are online tools, like http://www.seochat.com/seo-tools/code-to-text-ratio/ and this Firefox plugin: https://addons.mozilla.org/en-US/firefox/addon/150366/ (this is online too). ...

Using HtmlElement with HTMLDocument referencing a jEditPane that contains HTML to modify elements?

I am writing a start page for my app in HTML, and I know using jEditPane I can render HTML. I know a little about how to use HTMLEditorKit and how to convert the jEditPane document to an HTMLDocument, but how do I select and change elements on the HTML page? I see there is something called HTMLElement but I don't know how to use it in th...

Unexpected gap between CSS header elements

I'm currently redesigning a website and have run into an issue with some elements in the header. The header contains a logo, some text and a navigation bar. Between the bottom of the logo and the top of the navigation bar there is a relatively thick gap, shown in this screenshot: I don't want the gap, I don't know where it's come from...