html

Overflow auto/scroll doesn't work correctly in FF with huge innerhtml value

This works as expected on 30 rows but increases block height over 50% after inserting e.g. 100 rows into it. Can anyone explain what happens? I noticed this bug in FF only. <!DOCTYPE html> <html style="height:100%;"> <head> <title></title> </head> <body style="height:100%;background:grey;padding:0;margin:0;"> <table style="heigh...

<span> tag breaking row in IE7

Hi! My code is as follows: <table> <tr> <td><div id='lunch'><a href='Lunchplace.aspx?c=1&id=110'><img style='margin-top: 3px;' src='./images/115x52_Brasseriet.jpg'class='imagealign'/><b>Brasseriet</b><br />Köttbullar med gräddsås & kokt pota...&nbsp;<span style='color:#f29400;font-size:small;float:right;'>80 Kr<span style='float:right;'...

Is there is any way to find out from where an image is loaded to browser. From server / browser cache/ proxy cache etc

Is there is any way to find out from where an image is loaded to browser. From server / browser cache or proxy cache etc. I am using asp.net MVC ...

ONLY Visible Div form elements will get submitted

I have used a JavaScript to hide the DIVs containing form elements.... <script type="text/javascript"> <!-- function showMe (it, box) { var vis = (box.checked) ? "block" : "none"; document.getElementById(it).style.display = vis; } //--> </script> When certain checkbox(s) are selected the respective DIV(s) are shown or get visible........

Please help me find the Bug here http://goo.gl/UOCY on the testimonials boxes?

I've been trying to find the bug on my site http://goo.gl/UOCY and can't figure out where the problem comes from, one of the testimonial boxes won't align to the rest of the testimonials boxes, I need help to fix it, I really have no idea of what I'm missing there. Thanks ...

AntiXss.HtmlEncode vs AntiXss.GetSafeHtmlFragment

Can anyone please let me know the difference between these two? AntiXss.HtmlEncode() vs AntiXss.GetSafeHtmlFragment() ...

Never store intermediate program state in DOM?

I managed to run into this funny bug the other day where too quick modifications of the DOM caused the entire internet explorer to crash. So i was thinking, why am i even setting these values if i'm going to change them later anyway? (the modifications are very unpredictable so completely avoiding the scenario is impossible) Some backg...

How to output HTML file from XML and XSLT stylesheet

Hi, I've created a XML data document and an XSLT stylesheet, and I want to output an HTML document based on the two. My stylesheet has the tag, and my XML document has the processor instuction (along with various "xsl:value-of" references). My question is, what are the actual "mechanics" of getting the XSLT processor (which, I understa...

horizonal and vertical alignment of div

I am using JQuery. I have a div that contains a table. I have 4 rows in the table each with one col. Each row contains a line or two of text I want to make each row with height = 100 px and have the text centered horizontally and vertically. can this be done? Thanks! ...

Adding multiple attachments to the one email

Hi, I’m just the I.T guy at work any programming language is difficult for me. Here’s my question I have found studied and now understand the following HTML code: <a href='mailto:?Subject=ONDERWERP&Body=BIJLAGEN:&Attachment="C:\test\1.txt" '> Attach with double-quotes! </a> However this invokes a new email with only one attachm...

HTML5 local storage sort

I am using local storage to store user entries and am displaying the entries on another page. I need a way to sort them based on the most recent date and time of edit. Is there a way to do this with HTML5. If not, what's the easiest/most effective way to do so? Thanks for the inputs. ...

Image and text not vertical align to middle

I tried many "Display" param in CSS and seem none able to set a proper alignment, please help me to solve it. <div id="fadeshow2toggler" style="text-align:center; width:290px;"> <a href="#" class="prev"><img src="http://i31.tinypic.com/302rn5v.png"/&gt;&lt;/a&gt; <div class="status">1 of 1</div> <a href="#" class="next"><img...

How to add an HTML class to a PHP script

Hi, First off, I don't know much (quite nothing) about PHP. I'm more familiar with CSS. I'm making use of Ben Ward script Tumblr2Wordpress (here's the script on GitHub) to export my Tumblr blog in XML (so I can import it in my Wordpress blog). This script reads tumblr's API, queries elements, do a bit of formatting and export the whole...

SWT and Mark of the Web

Hi, I have a question that is somewhat similar to this one (which was never answered): http://stackoverflow.com/questions/989328/gwt-mark-of-the-web-motw I have an Online Help package built using javascript/HTML. Other teams in my company make use of this package in their apps, swapping in the content they need. One team in particular...

horizonal and vertical alignment of label in div in table row

I have code: <tr> <td align="center" style="height: 50px; text-align: center; vertical-align: middle" > <div class="hoverClass ui-widget-content ui-corner-all" style="text-align: center; vertical-align: middle;width:100%;height:100%"> <label style="text-align: center; vertical-align: middle" >Streetligh...

What is an effective way to deal with iphone orientation change while displaying an image

Disclaimer: I know the question of locking orientation has been asked, and solved. But that's only half my question. I'm building an iphone website for a small indie game developer. They want to be able to show off screenshots from some of their iphone games. This is somewhat of a problem though. All the screenshots are taken from the g...

How to use html entities in CSS content property ?

Good day, I'm stuck with a problem this morning. I found out that content property which is nice but I can't use HTML entities in it. More specifically, I would like to use the &eacute; This is what I tried: content: 'test with eacute \233'; but the result is test with eacute ÿ I've also tried \0233, \0233c, \233c I don't want to ch...

How to obtain user input on a clock interface

We would like to capture the user input pertaining to the hour & minute hands on a clock. What kind of clock interfaces are available to achieve this? (e.g. select 9.30 AM on the clock or select 3.45 PM on the clock) ...

IMG not showing above background color?

I have 3 divs, each with a z-index higher than the previous and all overlain on eachother. The bottom div has an image, the next div has a background-color with opacity:0.7 and the topmost div has another image. The problem is the top-most image also appears underneath the background-color of the div beneath it, in Chrome, FF and IE. ...

How do I add data to a table in my code behind and display in html?

I would like to pull data from my server and add to a table object. Loop thru the data afterwhich I would like to display the results on the aspx page. DataTable dTable = new DataTable(); dTable.Columns.Add("idNum", typeof(Int64)); dTable.Columns.Add("Name", typeof(String)); dTable.Columns.Add("Age", typeof(Int64)); //Connection/Comma...