html

Div's background Image's position is not changing when links are hovered over..whats wrong in the following css ?

CSS and Mark up ...

Small remake of this regexp to allow these special character in beginning...

I have this regexp: var desExp = /^\s*([\wåäö][^\w]*){3}.*$/gm; This is for validating a textarea. Currently, you cant use the three Swedish language letters in the beginning. The letters are å, ä, ö, Å, Ä, Ö. Also, I would like it to allow the minus sign and the star (multiplication) sign: - and * Is there any remake to allow ...

copy td background color and set div to the color when clicked

How can i take the bgcolor and title of a td and then set a div to that color and write out the title next to the div <div id="boxcolor1">change color</div><div id="boxtext1">write td title here</div> <table id="box1"><tr><td title="Maroon" bgcolor="#5A0014"></td></tr></table> I'm sure it's possible but i can't see it working for me...

Firefox text opacity background issue

Take a look at this screenshot from Firefox: The two left and right arrows are translucent text, at 20% and 80% opacity. The text has a text-shadow style applied. The images behind them also have varying opacities applied. Other browsers are working fine - even IE6, in its own pathetic minimal way - but Firefox is drawing a strange b...

jquery shifting of popup when content increases

Hello , I have one div which is dynamic and getting the increments in the css dynamically from jquery to fit the contents if they are larger. now the problem is that there is one popup associated with the same div. if content increase that popup's comes down, I don't know how to solve this issue . please help. HTML < div id='main...

How can I make the CSS opacity property work with png images in IE6?

This code works with IE 7 and above, but not with IE6: img.myclass{ opacity: 0.5; filter: alpha(opacity=50); } What should I add to my code? Thanks ...

Make TIMESTAMP column update even though I didn't change anything?

I have a MySql table which has a timestamp column. The table also has alot of other columns. I have a "change classified" section on my page. When users change their classifieds, I want the timestamp to update its timestamp. And it does, but sometimes you don't change a classified at all, you just want it to be "renewed". How can I m...

Regex matching items following a header in HTML

What should be a fairly simple regex extraction is confounding me. Couldn't find a similar question on SO, so happy to be pointed to one if it exists. Given the following HTML: <h1 class="title">Title One</h1><p><a href="#">40.5</a><a href="#">31.3</a></p> <h1 class="title alternate">Title Two</h1><p><a href="#">12.1</a><a href="#">8...

Do HTML email templates require the use of the style attribute?

Are there scenarios where it is (for some reason) required to place the CSS rule inside the style attribute of the HTML tag directly instead of placing the CSS rule inside a selector in the STYLE element in the HEAD of the HTML email template? (I am asking for the most common CSS selectors, like type, class, ID, descendant combination...

Old javascript help needed

I have always used this code to sort items in a list then submit the order back intot the database. But the code doesn't work in Firefox, or Chrome. It jumps and then clears out the contents of the list. It's been used since 2002 works very fine in IE only.. var list; function moveUp() { list = document.forms[0].lists; var ind...

Why doesn't this javascript focus() work?

I have an index.html which has a huge form in it. The form is submitted by this javascript: byId("p").value = page; byId("nav_container").focus(); document.forms["nav_form_main"].submit(); The focus part doesn't work here... I want the browser to focus on a specific part of the page (almost at top). Any tips of what to do? PS: I ha...

top margin inside a div do not work ? help plz

Hello, I have a div that contains links (a href). All other margins are working with a href but Top margin is not working with a href. I want to place links in middle but because of not working of top margin it is not being possible. I heared by setting position or display it can work. Please suggest a cross broswer solutions for it. t...

Create fat client (RIA) with HTML - controlled environment

I realize that this question can start a discussion but that's really not my intention. We've created a Flex Application to take tests from candidates. The advantage of the Flex Application is that all state can be stored in the application running in the browser of the client. Things like time limits, navigation, scoring, ... can all be...

CSS Text underlining too long when letter-spacing is applied?

Hi, Whenever letter-spacing is applied to something with an underline or a bottom border, it seems like the underline extends beyond the text on the right. Is there any way to do prevent the underline from extending beyond the last letter in the text? For example: <span style="letter-spacing: 1em; border-bottom: 1px solid black;">Test<...

How to properly escape quotes inside html attributes?

I have a drop down on a web page which is breaking when the value string contains a quote. The value is "asd but in the DOM always appears as an empty string. I have tried every way I know to escape the string properly but to no avail. <option value=""asd">test</option> <option value="\"asd">test</option> <option value="&quot;asd">t...

How to detect "has user selected entire document or not ?" in html javascript

I'm developing a off-line web-page for iphone safari. For highlighting the user's selection in web-page. I've implemented following code. function highlight() { if (window.getSelection) { sel = window.getSelection(); if (sel.getRangeAt) { range = sel.getRangeAt(0); } document.designMode ...

HTML table with fixed headers and a fixed first column for the iPhone

All, I'm working on a web app that's optimized for an iPhone. On one of the pages, I'll have a table with hundreds of rows, and dozens of columns. I'd like to have it work so that the first column is fixed (remains visible) as the user scrolls to the right, and the headers are fixed as the user scrolls down (i.e., like "freeze panes" ...

Style for nested gridview asp.net

Hi I have am using nested GridView to show Customers in the mainGrid View and CustomerDetails in the Inner GridView. for the outer GridView there is a CellPadding set of 4px. Now when i use nested gridview, I do not want the Pading to be apllied for the cell containing the InnerGridView. Please help me with this. I am stuck on this issue...

z-index positioning

I have two div's, nested, and want to have an image placed in front of the inner-div's content, so as to look like decoration around the edges (much of it is transparent.) I thought using z-index and absolute positioning would do it, but it has not worked. My simple test is to use two nested div's each with a background image and try t...

What's a 3D doing in this HTML?

I'm trying to duplicate a mailer I got into my gmail by taking a look at its code. I see a lot of this in multiple source viewers: <td style=3D"border-bottom: 1px dotted rgb(153,157, 147); border-top: 1px solid rgb(28, 140, 78);" width=3D"90">=A0</td> <td style=3D"border-bottom: 1px dotted rgb(153,157, 147); border-top: 1px solid rgb(...