html

How to place an image on top of another one

Inside a div, there is a picture that should have 10px margin in all directions from the DIV's border. On the left bottom corner of the picture there is an about-image. The picture is only displayed when its loaded in the DOM through jquery. The problem is that the existence of the about-image dislocates the picture downwards as many pix...

Can I change the vertical position of a strike-through on a website?

I'm applying the strikeout tag <s>$5,000,000</s> But the line is too low.. .it's about 1/4 from the bottom rather than through the middle. Any way I can modify this so it goes a bit more through the middle? ...

How to retrieve multiple anchors URLs with jQuery ?

Hello, I would like to create a javascript playlist with Jplayer. This is a nice and easy tool, however I never coded with javascript. Look at the javascript used in this demo. It uses a list to store MP3 and Ogg files : var myPlayList = [ {name:"Tempered Song",mp3:"http://www.miaowmusic.com/mp3/Miaow-01-Tempered-song.mp3",ogg:"ht...

HTML: How to get a child element to show behind (lower z-index) than its parent

I need for a certain dynamic element to always appear on top of another element, no matter what order in the DOM tree they are. Is this possible? I've tried z-index (with position: relative), and it doesn't seem to work. I hate to be vague, but this is the simplest way I can think of asking this question without explaining its purpose ad...

Placing an background image with padding in h2 tag

I want to create a headline (h2) with an image at the right-most area of the bounding box. I have the layout almost right except I can't push the image a little bit to the right of the element's bounding box -- how would I tweak my css so it is displayed correctly? I'm trying to do something like this: [{someHeadLineText}{dynamic space...

HTML Button calling a MVC Controller and Action Method

I know this isn't right but for the sake of illustration I'd like to do something like this: <%= Html.Button("Action", "Controller") %> My goal is to make an HTML button that will call my MVC controler's action method. Thank you, Aaron ...

Unknown margin being added to a footer in IE6 + 7

So yeah, like I said, I've spent a few hours trying to fix this bug in the footer that add's an extra 20-30px on to the bottom of the page in IE6 and 7. I've currently set all bottom margins to 0 so as to find what's causing it, I then scoured ie developer tools but came up empty. Here's the homepage design hosted on my web design play...

Move options between multiple lists

We currently have a form with the standard multi-select functionality of "here are the available options, here are the selected options, here are some buttons to move stuff back and forth." However, the client now wants the ability to not just select certain items, but to also categorize them. For example, given a list of books, they wan...

JQuery display problems?

I'm new to JQuery and was wondering how can I have Changes saved! displayed only once even if the user presses the submit button multiple times for example if a user decides to change there info three different times the text, Changes saved!Changes saved!Changes saved! is displayed i only want Changes saved! displayed once. How can I f...

Don't save form data over https

I'd like to submit data in a form, over HTTPS, without allowing the browser to save it. (credit card transactions) ...

What is the difference between learning HTML and learning a programming language?

I learned HTML and CSS about 8 months ago, and recently, about 2 months ago I started learning Python and Ruby. I find it much harder/time consuming to understand and be able to put Python and Ruby into practice than it was HTML or CSS. How is learning/understanding HTML and CSS, and being able to use them different from learning a prog...

Ctrl+r in firefox for refreshing page and it's problem to my php code

i have create a form (so it's PHP and HTML hybrid-code). it has ability to send '$_POST'. And when i click it, it work perfectly on sending and displaying input. But there's something happening when i click ctrl+r in firefox for represhing the page. I got this confim dialog : "To display this page, Firefox must send information that wi...

CSS Rollover button bug

Hi Everyone, I'm trying to create a drop down button and its almost working except one little bug. I have several big buttons that change background color when the user hovers over them and one of them, the language button, displays several suboptions inside itself when the user hovers over it. That all works fine except the language bu...

Is there anyway to show a hidden div in the last row of a html table

i have an html table. here is a simplified version: <table> <tr> <td><div style="display: none;" class="remove0">Remove Me</div></td> </tr> <tr> <td><div style="display: none;" class="remove1">Remove Me</div></td> </tr> <tr> <td><div class="remove2">Remove Me</div></td> ...

How to know when images in an html fragment have been loaded after jquery's .load() ?

If I load an html fragment that contains images with jquery's .load(), the images aren't yet loaded when my callback is called. Since I need to do some calculations based on the dimensions of the images, I need to know when they've actually been loaded. Is there a nice way to do this? ...

P tag is not displayed in html editor for Wordpress

Hi, I am developing site with wordpress and i am newbie for wordpress. WP adds p tag in editor while adding any post or pages. But i can't see the p tag in HTML mode. Can anyone suggest me what might be the problem. Thanks in advance ...

Image input onclick event being fired when enter button Pressed

I have a strange problem where an onclick event on an input image is being fired when i hit enter in input text box <form id="MyForm" action="/someaction"> <input type="image" src="someimage.jpg" onclick="doStuff();$('#MyForm').submit();" /> <input type="text" name="textInput"/> </form> When the cursor is in the text box and i hit ...

Iterating through same form elements

If a form has same tag repeatedly. How to get its value in javascript. <script> function validate() { //get all values of elmone } </script> <form> <input type="text" size="15" value="Hello World" name="elmOne"> <input type="text" size="15" value="next Hello World" name="elmOne"> <input type="button...

URI encode and HTML encode

If I have the xml/html data to post we need to encode the data to avoid the XSS validation. So should we use HTMLencode or URI encoding for this. If URI encoding is used will it cause issues as form POST automatically URI encode all the data before sending. ...

[CSS] The padding style applying to <img> in IE7 is separate from FF3?

Hi folks: I got a image like below with padding-right: 15px <td><img style="padding:0px 15px 0px 0px;..." /> <td><td>another image<td/> But the effect shows on IE and FF is a bit different. Is the way to measure is separate? Thanks. ...