html

JQuery drop down, remain down while hover over drop down

I setup a jquery dropdown menu that works perfect. It drops down when a user rolls over a link. The problem is that when the user rolls over the content area of the drop down menu, it slides back up. I need to set up the code so that the slidedown box remains in the down position while the user's cursor is still over it. Here is my HTM...

Changing the generated ASP.Net <form> id?

In my ASP.Net page I have <form id="MasterPageForm" runat="server"> However, whenever the markup is generated, it turns into <form name="aspnetForm" method="post" action="SomePage.aspx..." id="aspnetForm"> Is it possible to set what the generated HTML id for the form is? ...

Problems With Tables And PHP

I'm using this code to populate a Table: <style type="text/css"> table, td { border-color: #600; border-style: solid; } table { border-width: 0 0 1px 1px; border-spacing: 0; border-collapse: collapse; } td { margin: 0; padding: 4px; border-width: 1px 1px 0 0; background-color: #FFC; } </style> <tab...

Dynamic Selectbox not centering correctly in IE7.

I have a selectbox that is dynamically filled with an Ajax call. The user enters a zip code in a textbox and then the selectbox is filled with cities in that zip code. My problem is that the selectbox starts out empty but centered correctly. Once it is filled dynamically from the Ajax response, IE simply expands the selectbox to the r...

Passing Hidden Form Elements set via Javascript

I have a simple HTML Form that has some input fields for sending an SMS/TXT message. I also have a jQuery script that counts the number of characters entered and also works out how many SMS Credits will be used to send the message. These appear in a div as follows: <div id='message'> <span id='char'>0</span> characters, <span id='msg...

CSS List Spacing After Paragraph

If I have user generated content such as: <p>my paragraph</p> <ul><li>item1</li> <li>item2</li> </ul> This outputs with a paragraph gap between the end of the paragraph and the list like so: my paragraph item1 item2 I know I can get rid of the gap in my CSS by setting margin-top on the UL tag and margin-bottom on the ...

Pure CSS Drop down menu's 3rd tier: to match the width of its widest sibling.

Hi, I wonder why the width of the 3rd list in my drop down menu does not have the width of its longest text length. I have removed the width completely so that by default, the width of the list can match its longest text length. Does anyone know how to fix this?? This is the html, <div id="footer"> <ul> ...

How can I disable the color defined in an previously defined CSS class.

Recently when coding and HTML email, I noticed that Yahoo! started hijacking certain links and keywords, adding a <span class='yshortcuts'> which changes the colors of the text and links, which can cause some pretty bad rendering problems. The 'fix' that Yahoo! suggested is pretty ugly (adding a span within all of the links and keywo...

CSS problem height from top

using css how do I put a span on top of other spans. I have several spans in the page and at the end of the page I have this <span id="lastSpan" style=" margin-left:726px; margin-top:30px;"></span> problem with that is that it never goes to 30px down from top. and stuck at same height. any help will be appreciated thanks ...

Passing HTML table from JSP to Java request object

Hello, I wanted to know if there is a way in which I can pass an HTML table from my JSP page using the Java request object. More precisely, this is what my table looks like.. table id="tableid" thead tr th...column1 header.../td th...column2 header.../td /tr /thead tbody tr td...column1 data../td td..column2 data../td /tr /tbody ...

Safari: Prevent two print dialogs when printing an Iframe

My site has a "print this page" button. I load a static print template HTML file into a hidden iframe, copy the HTML into that page using jQuery, and call window.print() from the Iframe page. All is well, except on Safari, which wants to print the parent frame as well, so I get two print dialogs opening. I've tried calling window.print...

Partial uploads, upload only header.

Is there a way in PHP use a HTML form to upload only the header of the file. The length of the header is defined within the first few bytes of the file, I want only that part nothing else. After I have received the last byte of the header, I don't want any more of the file. Is there a graceful way to do this in PHP or am I going to have ...

Aligning text vertically inside a label div

I'm trying to recode one of my older forms. It was filled with tables that I want to replace with CSS. However I'm having trouble having text and a form element aligned vertically together. As the picture shows the text defaults to starting at the top instead of in the middle. The blue highlights around the row is dreamweavers interpre...

Ideal way to change all img links to point to cookieless domain in PHP

I have a PHP site using MVC, which builds HTML dynamically for most requests. I'm updating my site to host images/static content on a cookieless domain. Currently the images/css are written out as links to relative URLs. The best I can think of for now is to change all html that writes out <img> tags and css links to use a PHP function ...

How do i stop text wrapping around some floated divs?

i floated 3 images in divs in the middle of a long section of text. i want to float them so the site keeps it's 'liquid' design, adapting to any width browser window. But if text starts wrapping to the left of them on wide windows, it looks bad. i'd like them to float, but still be able to clear text around them so they look like a block...

Encoding rules for URL with the `javascript:` pseudo-protocol?

Is there any authoritative reference about the syntax and encoding of an URL for the pseudo-protocol javascript:? (I know it's not very well considered, but anyway it's useful for bookmarklets). First, we know that standard URLs follow the syntax: scheme://username:password@domain:port/path?query_string#anchor but this format doesn...

javascript in the <body>

I used to believe that you should not insert javascript blocks <script language="javascript"> <!-- //--> </script> into the body part of a (what, HTML, XHTML?) document, but rather into the head. But is that still true? ...

What are the benefits of using sessionStorage?

Just wondering what are the actual benefits of using HTML5's sessionStorage when storing HTML content to be used in a Javascript carousel? Is it performance related? Load Times? Bandwidth? ...

How Can i put span tag inside RESX file?

I have xml file "Strings.resx" for translation and i want to make some text highlighted i tried to put span some thing like this <span style="background: red;color: #000000;">VERDERGAAT</span> and it doesn't work. ...

jQuery - If I'm moving a div with the keyboard...

Yo! If I have a div with a fixed height and width, which I am moving using keypress (or keydown/keyup). Can I get the window to "follow" that div? I know you can auto scroll a page, but can you get the co-ordinates of a div and scroll the page as the div moves? Cheers :) ...